Skip to content

Commit 6a727da

Browse files
authored
Correct variable permutation for rational solutions (#5744)
1 parent 5490509 commit 6a727da

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ lib4ti2_jll = "1493ae25-0f90-5c0e-a06c-8c5077d6d66f"
3434

3535
[compat]
3636
AbstractAlgebra = "0.48.0"
37-
AlgebraicSolving = "0.10.3"
37+
AlgebraicSolving = "0.10.4"
3838
CodecZlib = "0.7.8"
3939
Compat = "4.13.0"
4040
Distributed = "1.6"

test/Rings/solving.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,15 @@ end
131131
@test issetequal(pts_swapped, [K.([0, 1]), K.([0, -1]), K.([2, 1]), K.([2, -1])])
132132
end
133133

134+
# issue 5741
135+
let
136+
P, (x,y,z) = polynomial_ring(QQ, [:x,:y,:z])
137+
I = ideal(P,[(x-1)*x, y-2, z-3])
138+
rat_sols = rational_solutions(I)
139+
@test isequal(map(point -> map(gen -> evaluate(gen, point), gens(I)), rat_sols),
140+
[QQFieldElem[0,0,0],[0,0,0]])
141+
end
142+
134143
let
135144
K = algebraic_closure(QQ)
136145
R, (x, y) = polynomial_ring(K, [:x, :y])

0 commit comments

Comments
 (0)