Skip to content

Commit 39767f4

Browse files
Update src/jvp.jl
1 parent c21186b commit 39767f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jvp.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function finite_difference_jvp(
9797
fx1 = f(x1)
9898
x1 = @. x - epsilon * v
9999
fx = f(x1)
100-
fx1 = @. (fx1-fx)/2epsilon
100+
fx1 = @. (fx1-fx)/(2epsilon)
101101
else
102102
fdtype_error(eltype(x))
103103
end

0 commit comments

Comments
 (0)