Euler Method - Using the Method with Mathematica - Part 3

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.