This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Write a computer program to solve the following initial value problem on the interval [0,1]: y'(t) = 2*t*y(t), for 0<t<1; y(0)=1 using Euler's method. Have the program prompt the user for the number of steps N, then use h=1/N as the step size. Make a table of the values y(1) for N=10, N=1000, and N=100,000. Problem H11.2. Write a computer program to solve the initial value problem of Extra Problem H11.1 using Heun's method. As before, have the program prompt for the number of steps N and use h=1/N as the step size. Make a table of the values y(1) for N=10, N=1000, and N=100,000. Compare the results with those of Problem H11.1 and with the exact value: e=2.71828 18284 59045 23536 02874. ......
View Full
Document
 Fall '09
 Wickerhauser
 Math, Applied Mathematics, Addition

Click to edit the document details