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

weight.rdivide(w)

w // weight

The right quotient of weight by w. Written weight / w, or sometimes w1(weight)ww^{-1}(\mathit{weight})w. Is equivalent to left quotient on commutative weightsets.

See also:

Examples

import sys import vcsn weight = vcsn.context('lal, q').weight weight('3').rdivide(weight('4'))

34\frac{3}{4}

weight('3') / weight('4')

34\frac{3}{4}

weight('3') // weight('4')

43\frac{4}{3}

weight('2') / weight('4')

12\frac{1}{2}

try: weight('4') / weight('0') except Exception as e: print(e, file=sys.stderr)
Q: div: division by zero