Euler Method - Using the Method with Mathematica - Part 2

Numerical Methods for Solving Differential Equations

Euler's Method

Using 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:

²â′Ìý=ÌýxÌý+Ìý2y

y(0)Ìý=Ìý0

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.

³¢±ð³Ù'²õÌý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.