lcapy.utils.term_const

lcapy.utils.term_const(expr, var)

Extract constant term from expression and return tuple of constant and the rest of the expression.