polynomial
.add(
poly
)
A polynomial which denotes the sum (or disjunction) of both polynomials.
Preconditions:
None
See also:
automaton.add
expression.add
import vcsn ctx = vcsn.context('lal_char, q') poly = lambda p: ctx.polynomial(p) poly('a+b') + poly('a+b')
⟨2⟩a⊕⟨2⟩b\left\langle 2\right\rangle a \oplus \left\langle 2\right\rangle b⟨2⟩a⊕⟨2⟩b
poly('<2>a') + poly('<3>a')
⟨5⟩a\left\langle 5\right\rangle a⟨5⟩a
poly('<2>a') + poly('<3>a') + poly('<-5>a')
∅\emptyset∅
poly('<2>a') + poly('\z')
⟨2⟩a\left\langle 2\right\rangle a⟨2⟩a