In: Advanced Math
Solve the frictionless pendulum equation use Runge- kuta 4 or forward Euler
ly'' = -g*sin(y)
where g is gravitational acceleration and l is the length of the pendulum. The function y(t) represents the angle of the pendulum with respect to the vertial and y'(t0 the angular velocity. You will need to write the second-order equation as a system of two first-order equations, and you will need to write a function file that will evaluate this system of equations. Plot the solutions y1(t) and y2(t) on the same set of axes. Give an interpretation of y2(t). Set the length to be 1m, and use as initial conditions an initial displacement of pi/2 radians and a 0 rad/sec angular velocity