Skip to content

Commit 1bb28aa

Browse files
fix: support BasicSymbolic in is_groebner_basis
1 parent 6a7fa15 commit 1bb28aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/SymbolicsGroebnerExt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module SymbolicsGroebnerExt
33
using Groebner
44
const Nemo = Groebner.Nemo
55
using Symbolics
6-
using Symbolics: Num, symtype
6+
using Symbolics: Num, symtype, BasicSymbolic
77
import Symbolics.PrecompileTools
88

99
"""
@@ -68,7 +68,7 @@ julia> @variables x y;
6868
julia> 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...)
7474
end

0 commit comments

Comments
 (0)