polynomial
.multiply(p)
Create a polynomial which denotes the product of both polynomials.
Preconditions:
None
See also:
automaton.multiply
expression.multiply
import vcsn ctx = vcsn.context('law_char, z') poly = ctx.polynomial poly('\e+<2>a+<3>b') * poly('c+d+<5>e')
c⊕d⊕⟨5⟩e⊕⟨2⟩ac⊕⟨2⟩ad⊕⟨10⟩ae⊕⟨3⟩bc⊕⟨3⟩bd⊕⟨15⟩be\mathit{c} \oplus \mathit{d} \oplus \left\langle 5\right\rangle \mathit{e} \oplus \left\langle 2\right\rangle \mathit{ac} \oplus \left\langle 2\right\rangle \mathit{ad} \oplus \left\langle 10\right\rangle \mathit{ae} \oplus \left\langle 3\right\rangle \mathit{bc} \oplus \left\langle 3\right\rangle \mathit{bd} \oplus \left\langle 15\right\rangle \mathit{be}c⊕d⊕⟨5⟩e⊕⟨2⟩ac⊕⟨2⟩ad⊕⟨10⟩ae⊕⟨3⟩bc⊕⟨3⟩bd⊕⟨15⟩be