Runge-Kutta method: Difference between revisions

m
m (→‎{{header|Sidef}}: Fix link: Perl 6 --> Rakua)
Line 1,600:
{{trans|Python}}
<lang julia>function rk4(f::Function, x₀::Float64, y₀::Float64, x₁::Float64, n)
vx = Vector{Float64}(undef, n + 1)
vy = Vector{Float64}(undef, n + 1)
vx[1] = x = x₀
vy[1] = y = y₀