Anonymous user
Runge-Kutta method: Difference between revisions
m
→{{header|REXX}}: used HTML to render the equations.
m (→{{header|REXX}}: used HTML to render the equations.) |
|||
Line 2,863:
=={{header|REXX}}==
<big><big> y'(t) = t<sup>2</sup> √<span style="text-decoration: overline"> y(t) </span></big></big>
The exact solution: <big><big> y(t) = (t<sup>2</sup>+4)<sup>2</sup> ÷ 16 </big></big>
<lang rexx>/*REXX program uses the Runge─Kutta method to solve the equation: y'(t) = t² √[y(t)] */
numeric digits 40; f= digits() % 4 /*use 40 decimal digs, but only show 10*/
|