find the magnetic moment of the rod.