Kernel: Python 3
expression.is_valid
Whether all the starred sub-expressions have a constant-term that admits a star value.
Postconditions:
expression.constant_term does not throw an exception.
See also:
Examples
The following funtion will help display the result of is_valid
.
In [1]:
In all the values have a star-power, so expressions are always valid.
In [2]:
In , is the only weight that admits a star.
In [3]:
In (and ), only weights such that admit a star.
In [4]: