Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News Sign UpSign In
| Download
Views: 45856
Kernel: Python 3

expression | exp

Build the tuple of expressions, ie the kk-tape expression whose behavior is the Cartesian product of the behaviors of the input expressions.

See also:

Examples

import vcsn exp = vcsn.context('lan, q').expression e1 = exp('abc') e1

abca \, b \, c

e2 = exp('(<2>x)*') e2

(2x)\left( \left\langle 2 \right\rangle \,x\right)^{*}

e1 | e2

abc|(2x) \left. a \, b \, c \middle| \left( \left\langle 2 \right\rangle \,x\right)^{*} \right.

(e1 | e2).automaton()
Image in a Jupyter notebook
e1.automaton() | e2.automaton()
Image in a Jupyter notebook