sasoptpy.Expression.get_constant

Expression.get_constant(self)[source]

Returns the constant term in the expression

Examples

>>> x = so.Variable(name='x')
>>> e = 2 * x + 5
>>> print(e.get_constant())
5