Question: Homework # 9 : Euler's Method Consider the following differential equation; , y ' = c * * y c = 1 + 5 2
Homework #: Euler's Method
Consider the following differential equation;
and
x
points Obtain the analytical solution via hand calculation
points Determine the value of in the domain xin by using Euler's method with hand calculations. Take the step size
points Write a python code for this question with the following goals:
a the code should give the values of in the domain using the analytical solution
b the code should give the values of in the domain using Euler's method with three different step sizes
c Plot your Euler's method results together with the analytical result
points Comment on the plot you obtained in the last step. What happens with the change in the step size? Which one of the results in b is the most acceptable and why?
Submit your homework report in a text file format, it must contain your hand calculations, your plots, and your comments. Give your code in the appendix section of your homework report.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
