expansion
.add(
exp
)
An expansion which denotes the sum (or disjunction) of both denoted series.
Preconditions:
See also:
import vcsn e1 = vcsn.Z.expression('<3>abc+<4>d(a+<3>c)') x1 = e1.expansion() e2 = vcsn.Z.expression('<5>abc+<-2>d(<2>a+c)') x2 = e2.expansion()
x1
x2
x1 + x2
The sum of the expansions is the expansion of the sum.
(e1 + e2).expansion()