Oscillating magnetic field causes a magnet to rotate and precess