ParameterExpression

class ParameterExpression(symbol_map, expr)[source]

ParameterExpression class to enable creating expressions of Parameters.

Create a new ParameterExpression.

Not intended to be called directly, but to be instantiated via operations on other Parameter or ParameterExpression objects.

Parameters
  • symbol_map (dict) – Mapping of Parameter instances to the sympy.Symbol serving as their placeholder in expr.

  • expr (sympy.Expr) – Expression of sympy.Symbols.

Attributes

ParameterExpression.parameters

Returns a set of the unbound Parameters in the expression.

Methods

ParameterExpression.__mul__(other)

ParameterExpression.bind(parameter_values)

Binds the provided set of parameters to their corresponding values.

ParameterExpression.conjugate()

Return the conjugate, which is the ParameterExpression itself, since it is real.

ParameterExpression.subs(parameter_map)

Returns a new Expression with replacement Parameters.