Question: Problem 1 ( 1 5 points ) : Consider the simple pendulum discussed in the class: + sin = 0 , 0 < < And

Problem 1(15 points): Consider the simple pendulum discussed in the class: + sin =0,0<< And the initial conditions are (0)= , =0. Write a computer program to numerically solve this nonlinear equation using Euler's (forward difference) finite difference scheme. I suggest using MATLAB or Python. Take =2.0,= 32.2,=4 in the numerical computation. Plot and tabulate the numerical results for two different time steps \Delta =0.05,\Delta =0.025 along with the exact linear solution. For submission, you need to provide a figure like the one we showed in class that compares the numerical solutions () with the analytical solution of the simple pendulum (linearized equations). You also need to submit the MATLAB (Python, or any other coding language) codes you used to calculate the results.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!