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

expansion | xpn

Build a tuple of expansions, ie the kk-tape expansion which is the Cartesian product of the input expansions.

See also:

References:

Examples

import vcsn def xpn(e): return vcsn.context('lan, q').expression(e).expansion() x1 = xpn('abc') x1

a[bc]a \odot \left[b \, c\right]

x2 = xpn('(<2>x)*') x2

1x[2(2x)]\left\langle 1\right\rangle \oplus x \odot \left[\left\langle 2\right\rangle \left( \left\langle 2 \right\rangle \,x\right)^{*}\right]

x1 | x2

aε[bc|ε]ax[2bc|(2x)]a|\varepsilon \odot \left[ \left. b \, c \middle| \varepsilon \right. \right] \oplus a|x \odot \left[\left\langle 2\right\rangle \left. b \, c \middle| \left( \left\langle 2 \right\rangle \,x\right)^{*} \right. \right]