Heun Method - Exercise 2 Solution
Numerical Methods for Solving Differential Equations
Heun's Method
Mathematica Implementation
(continued from听last page...)
Solution to Exercise 2
Solution Name |
Differential Equation |
Initial Condition |
Solve up to |
Number of Steps |
---|---|---|---|---|
heunex2 | 测鈥�听=听虫听-听测 | y(0)听=听0.5 | x听=听1 | 20 |
Your solution, in tabular form, should have looked something like this:

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

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...