Skip to content

Commit 71298ab

Browse files
authored
Add term method with coef and mono (#69)
1 parent 9f3043d commit 71298ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/types.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ end
6262
Term(v::Variable) = Term(Monomial(v))
6363
Term(x, v::Variable) = Term(x, Monomial(v))
6464
Term(m::Monomial) = Term(1, m)
65+
MP.term(coef, mono::Monomial) = Term(coef, mono)
6566

6667
MP.coefficient(t::Term) = t.coefficient
6768
MP.monomial(t::Term) = t.monomial

0 commit comments

Comments
 (0)