Question: Problem 3 A - - Group A: ONLY the students with even email IDs ( e . g . , sn 8 4 or ab

Problem 3A -- Group A: ONLY the students with even email IDs (e.g., sn84 or ab450).
Use Odeint package to solve the following equation [15 marks]
In Section 9 of the course we learned how to integrate Ordinary Differential Equations. Use the examples given in Sec09_ODEs to work through this problem.
Use odeint to solve the following third order ODE on a linear grid of 1000 points from x=0 to x=3 :
d3ydx3+d2ydx2+1tsdydx-Gy+32ysin(2y)=0
here y(x) is an unknown function, ts and G are constant parameters. The initial conditions at point x=0 are: y(0)=0,dydx(0)=1, and d2ydx2(0)=0.
Solve this equation numerically using parameter values G=1 and ts=1. Plot functions y(x) and dydx on the same plot making it as informative and professionally
looking as possible. Find the maximum value of y(x) on the plot, which we shall call ymax, and print it inside the plot window.
Now let us see how ymax changes as the parameter ts changes. Create an array of 50ts values covering the range from ts=0.1 to ts=10. For each value of ts in the
array repeat the calculation above and find the corresponding value of ymax. You should now have 50 values of ts and 50 corresponding values of ymax. Plot ymax as a
function of ts in another plot window. Using the worked example: exoplanet in Section 08, fit the ymax vs ts relationship with a polynomial of 5th order, and display
it on the same plot.
 Problem 3A -- Group A: ONLY the students with even email

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!