Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

to encourage a drive for change by developing new ideas;

Answered: 1 week ago

Question

4 What are the alternatives to the competences approach?

Answered: 1 week ago