Return a (finite) approximation of the series denoted by the expression.
This is equivalent to calling expression.derived_term().shortest
. See its documentation for more details.
See also:
import vcsn
e = vcsn.B.expression('[ab]*a[ab]')
e.shortest()
e.shortest(4)
e.shortest(len = 4)
e.shortest(num = 10, len = 4)
e.shortest(num = 10, len = 3)
e = vcsn.Z.expression('(<2>a)*')
e.shortest(len = 3)
e.shortest(num = 10)