Skip to content

Commit

Permalink
test an affine change of variables
Browse files Browse the repository at this point in the history
  • Loading branch information
lxvm committed Mar 3, 2024
1 parent f066ee4 commit 546833a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/derivative_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,10 @@ end

@testset "ChangeOfVariables rrule" begin
alg = QuadGKJL()
# test a simple u-substitution of x = 2u
# test a simple u-substitution of x = 2.7u + 1.3
talg = Integrals.ChangeOfVariables(alg) do f, domain
if f isa IntegralFunction{false}
IntegralFunction((x, p) -> f(x/2, p)/2), domain .* 2
IntegralFunction((x, p) -> f((x - 1.3)/2.7, p)/2.7), map(x -> 1.3 + 2.7x, domain)
else
error("not implemented")
end
Expand Down

0 comments on commit 546833a

Please sign in to comment.