Skip to content

Commit 016b17e

Browse files
committed
fix vect with Polynomials
1 parent b0e601b commit 016b17e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/abstractalgebra.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,9 @@ function expand(expr, variable_type::Type=DynamicPolynomials.PolyVar{true})
173173
to_term(expr, to_mpoly(expr, variable_type)...)
174174
end
175175

176+
## Hack to fix https://github.com/JuliaAlgebra/MultivariatePolynomials.jl/issues/169
177+
178+
Base.promote_rule(::Type{S}, ::Type{T}) where {S<:Symbolic, T<:MP.AbstractPolynomialLike}= Any
179+
Base.promote_rule(::Type{T}, ::Type{S}) where {S<:Symbolic, T<:MP.AbstractPolynomialLike}= Any
180+
176181
Base.@deprecate polynormalize(x) expand(x)

0 commit comments

Comments
 (0)