Delta Banner

Mathematics & Science Learning Center
Computer Laboratory

 

Numerical Methods for Solving Differential Equations

Euler's Method

Using the Method with Mathematica

(continued from last page...)

Your first use of euler should have gone like this:

prelimsol1=euler[x+2y,{x,0,1},{y,0},4]

{{0, 0}, {0.25, 0}, {0.5, 0.0625},
{0.75, 0.21875}, {1., 0.515625}}

The result looks a little confusing because it's in Mathematica's list format, but it can soon be cleaned up if you issue the command:

MatrixForm[prelimsol1]

Go back and try it now!

Let's go look at what you should have gotten...


Compass If you're lost, impatient, want an overview of this laboratory assignment, or maybe even all three, you can click on the compass button on the left to go to the table of contents for this laboratory assignment.
 
 

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