Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 45903
Kernel: Python 3

polynomial.add(poly)

polynomial + poly

A polynomial which denotes the sum (or disjunction) of both polynomials.

Preconditions:

  • None

See also:

Examples

import vcsn ctx = vcsn.context('lal_char, q') poly = lambda p: ctx.polynomial(p) poly('a+b') + poly('a+b')

2a2b\left\langle 2\right\rangle a \oplus \left\langle 2\right\rangle b

poly('<2>a') + poly('<3>a')

5a\left\langle 5\right\rangle a

poly('<2>a') + poly('<3>a') + poly('<-5>a')

\emptyset

poly('<2>a') + poly('\z')

2a\left\langle 2\right\rangle a