Simulate the transient behaviour of a simple pendulum and to create an animation of it's motion.
Objective: Aim- Write a program to simulate the transient behavior of a simple pendulum and to create an animation of its motion. Objective- ODE is used to describe the transient behavior of the system, a simple pendulum is an example of this. pendulum motion depends upon the newton's second law when deriving the law we…