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

label.ldivide(l)

label//l

The left-quotient of l by label, i.e., the removal of a prefix. Written label \ l, or sometimes (label)1(\mathit{label})^{-1}\ell. Beware that the notation lhs // rhs is somewhat misleading, and corresponds to lhs \ rhs, i.e. lhs is the divisor, and rhs the dividend.

See also:

Examples

import sys import vcsn label = vcsn.context('law_char, q').label label('').ldivide(label('abcd'))

abcd\mathit{abcd}

label('a').ldivide(label('abcd'))

bcd\mathit{bcd}

label('a') // label('abcd')

bcd\mathit{bcd}

label('abcd') // label('abcd')

ε\varepsilon

try: label('d') // label('abcd') except Exception as e: print(e, file=sys.stderr)
{abcd}*: ldivide: invalid arguments: d, abcd