EqualsEval
expr1 == expr2
expr1 == expr2 returns True if expr1 and expr2 evaluate to the same expression. Returns False if expr1 and expr2 evaluate to different expressions and neither contain an undefined variable. Returns expr1 == expr2 otherwise.
| Example | in | out |
|---|---|---|
| Two expressions that evaluate to the same expression. | CalcPlus[1,1] == 2 |
True |
| Two expressions that do not evaluate to the same expression. | 1+1 == 2 |
False |
| Two expressions that do not evaluate to the same expression containing an undefined variable. | x+2 == 2 x |
x+2 == 2 x |