Skip to content

Commit 6a5a885

Browse files
test: make homotopy continuation test more robust
1 parent 92344ec commit 6a5a885

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/extensions/homotopy_continuation.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ end
164164

165165
@testset "Rational functions" begin
166166
@variables x=2.0 y=2.0
167-
@parameters n = 4
167+
@parameters n = 5
168168
@mtkbuild sys = NonlinearSystem([
169-
0 ~ (x^2 - n * x + n) * (x - 1) / (x - 2) / (x - 3)
169+
0 ~ (x^2 - n * x + 6) * (x - 1) / (x - 2) / (x - 3)
170170
])
171171
prob = HomotopyContinuationProblem(sys, [])
172172
sol = solve_allroots_closest(prob)
@@ -184,7 +184,7 @@ end
184184
0 ~ ((y - 3) / (y - 4)) * (n / (y - 5)) + ((x - 1.5) / (x - 5.5))^2
185185
],
186186
[x, y],
187-
[n])
187+
[n]; defaults = [n => 4])
188188
sys = complete(sys)
189189
prob = HomotopyContinuationProblem(sys, [])
190190
sol = solve(prob, singlerootalg)

0 commit comments

Comments
 (0)