We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe19d26 commit 92344ecCopy full SHA for 92344ec
test/extensions/homotopy_continuation.jl
@@ -151,15 +151,15 @@ end
151
@variables x=0.25 y=0.125
152
a = sin(x^2 - 4x + 1)
153
b = cos(3log(y) + 4)
154
- @mtkbuild sys = NonlinearSystem([(a^2 - 4a * b + 4b^2) / (a - 0.25) ~ 0
+ @mtkbuild sys = NonlinearSystem([(a^2 - 5a * b + 6b^2) / (a - 0.25) ~ 0
155
(a^2 - 0.75a + 0.125) ~ 0])
156
prob = HomotopyContinuationProblem(sys, [])
157
@test prob[x] ≈ 0.25
158
@test prob[y] ≈ 0.125
159
sol = solve(prob, allrootsalg).u[1]
160
@test SciMLBase.successful_retcode(sol)
161
@test sol[a]≈0.5 atol=1e-6
162
- @test sol[b]≈0.25 atol=1e-6
+ @test isapprox(sol[b], 0.25; atol = 1e-6) || isapprox(sol[b], 0.5 / 3; atol = 1e-6)
163
end
164
165
@testset "Rational functions" begin
0 commit comments