sasoptpy.Expression.mult¶
-
Expression.mult(self, other)[source]¶ Multiplies the
Expressionby a scalar value- Parameters
- other
Expressionor int Second expression to be multiplied
- other
- Returns
- r
Expression A new
Expressionthat represents the multiplication
- r
Notes
This method is mainly for internal use.
It is preferable to use regular Python operation, instead of calling this method:
>>> e = 3 * (x-y) >>> f = 3 >>> g = e*f >>> print(g) 9 * x - 9 * y