Homework #3: Constraint OR Rigid Body Dynamics
(25pt) Problem A: A Bead on a Wire
Simulate the motion of a particle and visualize the result. The particle is defined in a Caresian coordinate system p=(x,y), and it is constrained by a unit circle centered at the origin. Use the initial position (0, 1), the initial velocity (0, 0), and gravitational force (0,-mg). Constants are given as m=1Kg, and g=9.8m/sec^2.