Mathematics & Science
Learning Center |
|||
Numerical Methods for Solving Differential EquationsHeun's MethodMathematica Implementation(continued from last page...) We will test our heun 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 Heun method, other than its name,) you would use a command of the form: heun[f,{x,x0,xn},{y,y0},steps] Of course, for such a command to work you must have evaluated your heun 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 ©2017 San Joaquin Delta College, 5151 Pacific Ave., Stockton, CA 95207, USA e-mail: cbarker@deltacollege.edu |