Hi, Please can someone provide me with a Python code that does the following. I
ID: 3547685 • Letter: H
Question
Hi,
Please can someone provide me with a Python code that does the following. I have included required modules in the links below, one of which i am not sure whether or not it needs to be used. Please can you make the code as compatible as possible, i.e please don't use the latest version of Python. Thank you.
If you need any more information, please comment.
http://www.filedropper.com/runkut4 Runge-Kutta code
http://www23.zippyshare.com/v/42105319/file.html
a) Modify the provided Runge-Kutta code to use the Euler method, instead and integrate the system
y'= z
z' = -y
with y(0) = 0, z(0) = 1 over the interval [0,20] with 200 steps.
b) Do the same using the 4th order Runge-Kutta method with the provided
code.
c) Plot y from both methods and (on a separate plot) their absolute errors. What do you observe? What is the correct solution? What do you think is the reason for these results? Roughly how many points do we need for the Euler method
Explanation / Answer
I ca give you the C code if you want!
Moreover, in (a) a few question marks appear!
Please rectify them and tell us what they mean. :)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.