weight
.ldivide(w)
¶w
//
weight
¶The left quotient of w
by weight
. Written weight \ w
, or sometimes $(\mathit{weight})^{-1}w$. Is equivalent to right quotient on commutative weightsets. 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:
import sys
import vcsn
weight = vcsn.context('lal, q').weight
weight('3').ldivide(weight('4'))
weight('3') // weight('4')
weight('3') / weight('4')
weight('2') // weight('4')
try:
weight('0') // weight('4')
except Exception as e:
print(e, file=sys.stderr)