Heun Method - Exercise 4 Solution

Numerical Methods for Solving Differential Equations

Heun's Method

Mathematica Implementation

(continued fromÌýlast page...)

Solution to Exercise 4

Solution
Name
Differential
Equation
Initial
Condition
Solve
up to
Number
of Steps
heunex4 ²â′Ìý=Ìý(³æÌý-Ìý²â)2 y(0)Ìý=Ìý0.5 xÌý=Ìý0.5 20

Your solution, in tabular form, should have looked something like this:

Table

And your plot of this solution should have looked something like this (though your points may not have been this size, or in color):

Plot

If your solution doesn't match what you see here, then go back toÌýMathematicaÌýand carefully check the parameters that you passed to theÌýheunÌýprogram. If necessary, change them, and reevaluate the commands.

±·´Ç·É,Ìýback to the exercises...


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.