We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f3043d commit 71298abCopy full SHA for 71298ab
src/types.jl
@@ -62,6 +62,7 @@ end
62
Term(v::Variable) = Term(Monomial(v))
63
Term(x, v::Variable) = Term(x, Monomial(v))
64
Term(m::Monomial) = Term(1, m)
65
+MP.term(coef, mono::Monomial) = Term(coef, mono)
66
67
MP.coefficient(t::Term) = t.coefficient
68
MP.monomial(t::Term) = t.monomial
0 commit comments