Skip to content

Commit c21186b

Browse files
author
oscarddssmith
committed
typo
1 parent 062facc commit c21186b

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)/epsilon
100+
fx1 = @. (fx1-fx)/2epsilon
101101
else
102102
fdtype_error(eltype(x))
103103
end

0 commit comments

Comments
 (0)