Skip to content

Commit 0580b79

Browse files
berquistleios
authored andcommitted
Update forward Euler method in Julia for v1 (#380)
1 parent 0e6126f commit 0580b79

File tree

1 file changed

+1
-1
lines changed
  • contents/forward_euler_method/code/julia

1 file changed

+1
-1
lines changed

contents/forward_euler_method/code/julia/euler.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function solve_euler(timestep::Float64, n::Int64)
2-
euler_result = Vector{Float64}(n)
2+
euler_result = Vector{Float64}(undef, n)
33

44
# Setting the initial condition
55
euler_result[1] = 1;

0 commit comments

Comments
 (0)