MathematicalExpression.
equals
Compare the instance with another object for equality and return the result.
If the other object is not a MathematicalExpression this function always returns ‘False’. The function offers the choice to compare for structural or mathematical equality by setting the ‘structural_expression_equality’ parameter accordingly. Additionally, the comparison can be limited to the expression only, if ‘check_parameters’ is set to ‘False’.
other (Any) – Arbitrary other object.
Any
check_parameters (bool) – Set to ‘True’ if the parameters should be included during the comparison. If ‘False’, only the expression is checked for equality.
bool
check_structural_equality (bool) – Set to ‘True’ if the expression should be checked for structural equality. Set to ‘False’ if mathematical equality is sufficient.
‘True’ if both objects are equal, ‘False’ otherwise