![]() |
|||
Mathematics & Science
Learning Center |
|||
Numerical Methods for Solving Differential EquationsThe Runge-Kutta MethodMathematica Implementation(continued from last page...) We will test our RK4 program by having it create numerical solutions to the same differential equations that we solved using our Euler program in the last lab. Recall that the command-syntax used with your Euler program for this task was: euler[f,{x,x0,xn},{y,y0},steps] so for your new program, (since we made no changes to the input format when we adapted it to the Runge-Kutta method, other than its name,) you would use a command of the form: RK4[f,{x,x0,xn},{y,y0},steps] Of course, for such a command to work you must have evaluated your RK4 program during your current session with the Mathematica kernel! Use it to solve each of the initial value problems given in the table below. For each exercise, do the following:
ExercisesIf you've finished the above exercises, then you may either return to the beginning of this laboratory, jump to the Table of Contents of all of the differential equations laboratories, or simply quit. |
|||
ODE Laboratories: A Sabbatical Project by Christopher A. Barker ©2009 San Joaquin Delta College, 5151 Pacific Ave., Stockton, CA 95207, USA e-mail: cbarker@deltacollege.edu |
|||