# Difference between revisions of "Differential equations"

From JSXGraph Wiki

Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

Line 21: | Line 21: | ||

function ode() { | function ode() { | ||

− | return JXG.Math.Numerics.rungeKutta(JXG.Math.Numerics.predefinedButcher.Heun, [P.Y()], [0, 10], | + | return JXG.Math.Numerics.rungeKutta(JXG.Math.Numerics.predefinedButcher.Heun, [P.Y()], [0, 10], 500, f); |

} | } | ||

Line 27: | Line 27: | ||

g.updateDataArray = function() { | g.updateDataArray = function() { | ||

var data = ode(); | var data = ode(); | ||

− | var h = 0. | + | var h = 0.02; |

this.dataX = []; | this.dataX = []; | ||

this.dataY = []; | this.dataY = []; |

## Revision as of 10:40, 14 July 2010