You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MP.variables(::Union{AbstractVector{PT},Type{<:AbstractVector{PT}}}) where {C,M<:Monomial,PT<:Union{MonomialLike,Term{C,M},Polynomial{C,Term{C,M}}}} =variables(PT)
70
70
MP.nvariables(::Union{AbstractVector{PT},Type{<:AbstractVector{PT}}}) where {C,M<:Monomial,PT<:Union{MonomialLike,Term{C,M},Polynomial{C,Term{C,M}}}} =nvariables(PT)
71
71
72
-
#TODO replace by MP function
73
-
function_error_for_negative_degree(deg)
74
-
if deg <0
75
-
throw(ArgumentError("The degree should be a nonnegative number but the provided degree `$deg` is negative."))
76
-
end
77
-
end
78
-
79
-
# Based on fillZfordeg!() from MultivariatePolynomials.jl by Benoit Legat
0 commit comments