4. Solenoid/Toroid Magnetic Field Tool
Computes magnetic field using Ampère’s law: \( B=\mu_0 n I \) for a (long) solenoid (\(n=N/L\)), or \( B=\mu_0 N I /(2\pi r) \) for a toroid (inside the core region). Includes a finite-length (fringe) on-axis approximation for solenoids and an interactive diagram.
1e-7, pi, sqrt(2), sin(), cos(), tan(), log(), ln(), abs().
Use * for multiplication.