Magnetic field due to current loop along axis ============================================= Using the Biot—Savart law, we can calculate the magnetic field due to a current loop along its axis of symmetry. The magnetic field is directed along that axis, is proportional to the current in the loop and depends on the distance to the center of the loop and the radius of the loop. **Conditions:** #. The medium is vacuum. **Links:** #. `Physics LibreTexts — Magnetic Field of a Current Loop `__. .. TODO: link to Biot-Savart law .. py:currentmodule:: symplyphysics.laws.electricity.magnetic_field_due_to_current_loop_along_axis .. py:data:: magnetic_flux_density Radial component (i.e. along the axis of the loop) of the :attr:`~symplyphysics.symbols.electrodynamics.magnetic_flux_density` vector. Symbol: :code:`B` Latex: :math:`B` Dimension: :code:`magnetic_density` .. py:data:: current Electric :attr:`~symplyphysics.symbols.electrodynamics.current` in the loop. Symbol: :code:`I` Latex: :math:`I` Dimension: :code:`current` .. py:data:: loop_radius :attr:`~symplyphysics.symbols.classical_mechanics.radius` of the loop. Symbol: :code:`r` Latex: :math:`r` Dimension: :code:`length` .. py:data:: distance :attr:`~symplyphysics.symbols.classical_mechanics.euclidean_distance` from the point at which the magnetic field is measured to the center of the loop. Symbol: :code:`d` Latex: :math:`d` Dimension: :code:`length` .. py:data:: law :code:`B = mu_0 * I * r^2 / (2 * (d^2 + r^2)^(3/2))` Latex: .. math:: B = \frac{\mu_0 I r^{2}}{2 \left(d^{2} + r^{2}\right)^{\frac{3}{2}}}