numpoly.isconstant#
- numpoly.isconstant(poly: numpoly.typing.PolyLike) bool[source]#
Check if a polynomial is constant or not.
- Args:
- poly:
polynomial to check if is constant or not.
- Return:
True if polynomial has no indeterminants.
- Example:
>>> q0 = numpoly.variable() >>> numpoly.isconstant(numpoly.polynomial([q0])) False >>> numpoly.isconstant(numpoly.polynomial([1])) True