expansion
.complement
¶An expansion which denotes the complement of this expansion.
See also:
References:
import vcsn
e = vcsn.B.expression('a*b')
e.expansion()
e.expansion().complement()
e.complement().expansion()
e.complement().derived_term()
Note that complementing an expansion "determinizes" it: each first is mapped to a monomial. Note in the following example that the label $a$ maps to a two-term polynomial ($a$ and $b$), but in the complement, it has a single-term polynomial ($a+b$, observe $\oplus$ vs. $+$).
e = vcsn.B.expression('aa+ab')
x = e.expansion()
x
x.complement()
e.derived_term()
e.complement().derived_term()