weldx.core.
MathematicalExpression
Mathematical expression using sympy syntax.
Construct a MathematicalExpression.
expression (Union[Expr, str]) – A sympy expression or a string that can be evaluated as one.
Union
Expr
str
parameters (Optional[Dict]) – A dictionary containing constant values for variables of the expression.
Optional
Dict
Methods
equals
Compare the instance with another object for equality and return the result.
evaluate
Evaluate the expression for specific variable values.
get_variable_names
Get a list of all expression variables.
set_parameter
Define an expression parameter as constant value.
Attributes
expression
Return the internal sympy expression.
num_parameters
Get the expressions number of parameters.
num_variables
Get the expressions number of free variables.
parameters
Return the internal parameters dictionary.