pystencils.sympyextensions.math.is_constant#
- pystencils.sympyextensions.math.is_constant(expr)#
Simple version of checking if a sympy expression is constant. Works also for piecewise defined functions - sympy’s is_constant() has a problem there, see: sympy/sympy#16662