The magnetic moment of a bar magnet is thus equal to
the magnetic moment of an equivalent solenoid that produces the same
magnetic field 5 2 3  The dipole in a uniform magnetic field
Let’s place a small compass needle of known magnetic moment m and
allowing it to oscillate in the magnetic field