Very elementary:
2 + 3 == 5
evaluates to True
and 5 == 5
evaluates to True
.
How do I check if two numerical expressions are identical?
In other words, I want a matching test that says 2 + 3
does not match 5
, but 5
does match 5
.
More generally, how do you test whether algebraic expressions are identical?