Skip to content

Commit 8279653

Browse files
committed
Don't differentiable a function at a discontinuity point
1 parent f1965ec commit 8279653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/GradientTest.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ end
168168
function f(p)
169169
sum(collect(0.0:p[1]:p[2]))
170170
end
171-
@test ForwardDiff.gradient(f, [0.2,25.0]) == [7875.0, 0.0]
171+
@test ForwardDiff.gradient(f, [0.3, 25.0]) == [3486.0, 0.0]
172172
end
173173

174174
@testset "det with branches" begin

0 commit comments

Comments
 (0)