We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e6126f commit 0580b79Copy full SHA for 0580b79
contents/forward_euler_method/code/julia/euler.jl
@@ -1,5 +1,5 @@
1
function solve_euler(timestep::Float64, n::Int64)
2
- euler_result = Vector{Float64}(n)
+ euler_result = Vector{Float64}(undef, n)
3
4
# Setting the initial condition
5
euler_result[1] = 1;
0 commit comments