Provide me the right solution of the following question-
Question - A slender, 470- g bar magnet 20.0 cm long has a magnetic moment of 5.60 A m2. It is held at an angle of 45o to the direction of a uniform magnetic field. When released, it begins to rotate about its center with an initial angular acceleration of 1.64 x 103 rad/s2.
Part A- What is the magnitude of the magnetic field?
I need guide to solve the above question.