Runge-Kutta method: Difference between revisions

Content added Content deleted
Line 1,596: Line 1,596:
y(10.0) = 675.999949 error: 5.098329e-05</pre>
y(10.0) = 675.999949 error: 5.098329e-05</pre>


== Alternative version ==
=== Alternative version ===
{{trans|Python}}
{{trans|Python}}
<lang julia>function rk4(f::Function, x₀::Float64, y₀::Float64, x₁::Float64, n)
<lang julia>function rk4(f::Function, x₀::Float64, y₀::Float64, x₁::Float64, n)