I took the solenoid magnetic field formulation that reduces the computation to very efficient elliptic integrals from here:http://users.df.uba.ar/zanellaj/ft1_2011_1c/material_auxiliar/campo_solenoide_exacto_Derby.pdfusers.df.uba.ar/zanellaj/ft1_2011_1c/material_auxiliar/campo_solenoide_exacto_Derby.pdft.me/RobeDiNik/1229TranslateMarch 2, 2025 748 1