Runge-Kutta method: Difference between revisions

m
Line 458:
which itself takes <math>(t, y)</math> as argument and returns the next <math>(t, y)</math>.
 
Notice how we have to use sprintf to deal with floating point rounding. See perlfaq4.
<lang perl>sub runge_kutta {
my ($yp, $dt) = @_;
1,935

edits