elementary_vectors.utility¶
Utility functions¶
Functions
|
Return whether this expression is constant. |
- elementary_vectors.utility.is_constant(expression)¶
Return whether this expression is constant.
Symbolic expressions are considered constant if they do not depend on any variables.
EXAMPLES:
sage: from elementary_vectors.utility import is_constant sage: is_constant(5) True sage: var('a, b') (a, b) sage: is_constant(a) False sage: is_constant(-a) False sage: is_constant(b^2 - a) False sage: is_constant(SR(5)) True