Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a function called odeSystem which takes input parameters p, q, r, ue and t where p. q and r are numbers ue is

 

Write a function called odeSystem which takes input parameters p, q, r, ue and t where p. q and r are numbers ue is a Python list defining the initial values [x(to), x' (to), y(to), y' (to)] t is a 1D NumPy array of t values over an interval [10,11]. The function uses scipy.integrate.odeint to numerically solve the system of equations: x" - q sin(r)y' + px = 0 y" + sin(r)x + p2y = 0 The function returns a 2D NumPy array of size len(t) by 3 where the column at index 0 is the array of r values, the column at index 1 is the corresponding array of x values and the column at index 2 is the corresponding array of y values.

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_2

Step: 3

blur-text-image_3

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

Elements Of Chemical Reaction Engineering

Authors: H. Fogler

6th Edition

013548622X, 978-0135486221

More Books

Students also viewed these Programming questions

Question

Where did the faculty member get his/her education? What field?

Answered: 1 week ago