- #1
joshuad
- 5
- 0
Homework Statement
Taking step size h = 0.2, use Euler’s Method to determine y(1.6), given that
dy/dx = ln(2y+x) ; y(1)=1.2
Record your results to 5 decimal places at each step.
Homework Equations
N/A
The Attempt at a Solution
My question is to do with the method, not the solution, specifically the 'Record your results to 5 decimal places at each step' part. I know that basically you need to use 2 iterations to get an approximation for y(1.6). In the calculations themselves do I use the full values displayed on my calculator, or do I use the value rounded to 5 decimal places?
For example:
y'(1,1.2) = 1.22377543162
then to get y(1.2) we use y[n+1] = y[n] + hy'[n]
so y(1.2) = 1.2 + 0.2( y'[n] )
My question is at this point, do I use 1.22377543162 -or- do I use 1.22378 for y'[n] to calculate y(1.2)?
Please Help! :)