Mathematics & Science
Learning Center |
|||
Numerical Methods for Solving Differential EquationsEuler's MethodUsing the Method with Mathematica(continued from last page...) Back in the Introduction to this laboratory we went through a preliminary example "by hand". We commented that the work involved was tedious, and would be better suited to a computer. We will now use our newly defined euler program to recalculate the numerical solution to the preliminary example. As a reminder, the problem was: y′ = x + 2y and we solved it by using 4 steps, up to an x-value of x = 1. To make euler solve this problem, the appropriate command would be: prelimsol1=euler[x+2y,{x,0,1},{y,0},4]Go back to Mathematica and issue this command. Let's go look at what you should have gotten... |
|||
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 |