Skip to content

Commit

Permalink
remove higher order test
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreener64 authored and wsmoses committed Dec 7, 2024
1 parent 34e06cd commit 31d9fc7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -875,14 +875,6 @@ end
tonest(x,y) = (x + y)^2

@test autodiff(Forward, (x,y) -> autodiff(Forward, Const(tonest), Duplicated(x, 1.0), Const(y))[1], Const(1.0), Duplicated(2.0, 1.0))[1] 2.0

f_nest(x) = 2 * x^4
deriv(f, x) = first(first(autodiff(Reverse, f, Active(x))))
f′(x) = deriv(f_nest, x)
f′′(x) = deriv(f′, x)

@test f′(2.0) == 64
@test f′′(2.0) == 96
end

@testset "Hessian" begin
Expand Down

0 comments on commit 31d9fc7

Please sign in to comment.