write the Matlab program for solving first-order ordinary differential equation by Euler's method
Answers
Answered by
6
Answer:
The equation to be used is y’ +2y = 2 – e -4t.
y(0) = 1, which has an exact solution:
y(t) = 1 + 0.5 e -4t - 0.5 e -2t .
I did the following to solve numerically: 1+(0.5e^-4t) - (0.5e^-2(0)) y_n+1=1+0.1 and y_n+1=1+1(.001)
The step sizes are 0.1 and 0.001. (so my h in this example). The t values range from 0.1 to 5.0.
pls mark me as the brainlist
Similar questions
Hindi,
2 months ago
Math,
2 months ago
Biology,
2 months ago
India Languages,
4 months ago
Chemistry,
11 months ago