Second Order ODE
Objective: It shows that the pendulum moment depends on the Newtons second law. the moment of a ball depends upon the damping coefficient. If the damping coefficient increases moment of ball decreases % ODE clear all close all clc % inputs b = 0.05; g = 9.81; l = 1; m = 0.1; % initial conditiond theta_0 = [0;5]; %time point…