sasoptpy.Expression.set_name

Expression.set_name(self, name=None)[source]

Specifies the name of the expression

Parameters
namestring

Name of the expression

Returns
namestring

Name of the expression after resolving conflicts

Examples

>>> x = so.Variable(name='x')
>>> e = x**2 + 2*x + 1
>>> e.set_name('expansion')