Skip to content

Commit 7c859ed

Browse files
committed
adds test for elimination ordering GB computation over QQ
1 parent 9a2134d commit 7c859ed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/algorithms/groebner-bases.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@
5050
x2^2 + 5*x2 + 3802951800684688204490109616153//4
5151
]
5252
@test G == H
53+
R, (x,y,z) = polynomial_ring(QQ,["x","y","z"], internal_ordering=:degrevlex)
54+
I = Ideal([x+2*y+2*z-1, x^2+2*y^2+2*z^2-x, 2*x*y+2*y*z-y])
55+
G = eliminate(I, 2)
56+
H = MPolyRingElem[
57+
84*z^4 - 40*z^3 + z^2 + z
58+
]
59+
@test G == H
5360
end
5461

5562
@testset "Algorithms -> Sig Gröbner bases" begin

0 commit comments

Comments
 (0)