add functions for elliptic integrals and NMR A field profile