READ THIS! This program simulates the movement of a proton through a magnetic field. u is the velocity of the proton. d the distance of the magnetic field. B the magnetic field. θ is the angle of the final velocity with the axis x if the proton leaves the magnetic field from the ending of the right side. Click Start to start the motion when you have put your values.Click Stop to stop the motion.Click CLEAR to clear the pen. Make sure that θ is not NaN.
The magnetic field makes the proton have a circular motion.If the proton leaves the magnetic field the motion will be linear.