Question: Please Show Work and the programming language is MATLAB 3. a. (15 points) Use Heun's method with h = 0.5 to solve the following
\
Please Show Work and the programming language is MATLAB
3. a. (15 points) Use Heun's method with h = 0.5 to solve the following initial-value dy dx problem numerically over the interval from x = 0 to 2.5: = yr-lly where y(0) = l. Iterate the corrector to E,-1%. (Note that ytrie(x)-e3 b. (10 points) Use Midpoint method with h = 0.5 to solve the same ODE above over the x3-1.1x interval from x-0 to 2.5. (10 points) Compare the results in parts (a) and (b). Comment about which method gives the best results and why. Do you observe any divergent behaviour? If so, how c. r3-1.1x would you avoid it? Use y,re(x) =e3 as the true solution 3. a. (15 points) Use Heun's method with h = 0.5 to solve the following initial-value dy dx problem numerically over the interval from x = 0 to 2.5: = yr-lly where y(0) = l. Iterate the corrector to E,-1%. (Note that ytrie(x)-e3 b. (10 points) Use Midpoint method with h = 0.5 to solve the same ODE above over the x3-1.1x interval from x-0 to 2.5. (10 points) Compare the results in parts (a) and (b). Comment about which method gives the best results and why. Do you observe any divergent behaviour? If so, how c. r3-1.1x would you avoid it? Use y,re(x) =e3 as the true solution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
