Runge-Kutta method: Difference between revisions
Content added Content deleted
(Added Crystal version, translations of Run Basic and Ruby versions) |
|||
Line 488: | Line 488: | ||
=={{header|Crystal}}== |
=={{header|Crystal}}== |
||
{{trans|Run Basic and Ruby output}} |
{{trans|Run Basic and Ruby output}} |
||
<lang |
<lang ruby>y, t = 1, 0 |
||
while t <= 10 |
while t <= 10 |
||
k1 = t * Math.sqrt(y) |
k1 = t * Math.sqrt(y) |