68 774
Assignments Done
Successfully Done
In January 2019

Answer to Question #67987 in Python for garrett

Question #67987
Define a function, forward_euler, that uses forward Euler to solve ODEs of the form: y'+py=q and accepts the following arguments in order specified: p is the coefficient of y(x), q is right-hand side of differential equation, y0 is the initial value of y at t = 0 (default should be 0.0), N is the number of equally-spaced times after t = 0 to be used for the approximation (default should be 25), and t_max is the end point for approximation (default should be 10.0). The function should return y, an np.array of the approximate y(t) values, and t, an np.array of the correspond times at which y(t) is evaluated.
Expert's answer
Dear garrett, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions