Unformatted text preview: ( 29 ( 29 ' u dx du u u = = . 1. Write a program to solve the D.E. Use a function subroutine to generate F(x). 2. Solve the differential equation exactly for the cases F(x)=1 and F(x)=1. Then use your program to solve the DE numerically for these cases. 3. Calculate the error of your numerical result, u num , compared to the exact result, u ex , as a function of the step size x. Do this by plotting an error function, ,as a function of x. Be sure to use the same overall range of x as you change x. ( 29 == N i ex i num i u u N 1 2 1...
View
Full Document
 Spring '08
 Leuenberger,M
 mechanics, Work, 2m, order differential equation, Liboff 7.16

Click to edit the document details