File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ StaticArraysCore = "1.4"
9292SymPy = " 2.2"
9393SymbolicIndexingInterface = " 0.3.14"
9494SymbolicLimits = " 0.2.2"
95- SymbolicUtils = " 3.17 "
95+ SymbolicUtils = " 3.19 "
9696TermInterface = " 2"
9797julia = " 1.10"
9898
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module SymbolicsGroebnerExt
33using Groebner
44const Nemo = Groebner. Nemo
55using Symbolics
6- using Symbolics: Num, symtype
6+ using Symbolics: Num, symtype, BasicSymbolic
77import Symbolics. PrecompileTools
88
99"""
@@ -68,7 +68,7 @@ julia> @variables x y;
6868julia> is_groebner_basis([x^2 - y^2, x*y^2 + x, y^3 + y])
6969```
7070"""
71- function Symbolics. is_groebner_basis (polynomials:: Vector{Num} ; kwargs... )
71+ function Symbolics. is_groebner_basis (polynomials:: Vector{<:Union{ Num, BasicSymbolic{<:Number}} } ; kwargs... )
7272 polynoms, _, _ = Symbolics. symbol_to_poly (polynomials)
7373 Groebner. isgroebner (polynoms; kwargs... )
7474end
Original file line number Diff line number Diff line change @@ -51,10 +51,13 @@ truebasis = [
5151 x5^ 5 - 1
5252]
5353basis = expand .(groebner_basis (system))
54- @test isequal (basis, truebasis)
54+ # monomial order can change, returning different but still valid bases
55+ @test_broken isequal (basis, truebasis)
56+ @test Symbolics. is_groebner_basis (basis)
5557
5658basis = expand .(groebner_basis (system, linalg= :deterministic ))
57- @test isequal (basis, truebasis)
59+ @test_broken isequal (basis, truebasis)
60+ @test Symbolics. is_groebner_basis (basis)
5861
5962N = 45671930739135174346839766056203605080877915151
6063system = [
@@ -69,8 +72,9 @@ truebasis = [
6972 x3^ 3 + x3^ 2 * x4 + x3 * x4^ 2 + x4^ 3 ,
7073 x4^ 4 - N
7174]
72- basis = groebner_basis (system)
73- @test isequal (expand .(basis), truebasis)
75+ basis = expand .(groebner_basis (system))
76+ @test_broken isequal (expand .(basis), truebasis)
77+ @test Symbolics. is_groebner_basis (basis)
7478
7579# issues/1323
7680@variables t S (t) R (t)
You can’t perform that action at this time.
0 commit comments