Equal
Equal(x, y)
x == y
yields
True
ifx
andy
are known to be equal, orFalse
ifx
andy
are known to be unequal.
lhs == rhs
represents the equation
lhs = rhs
.
See
Examples
>> a==aTrue
>> a==ba == b
>> 1==1True
Lists are compared based on their elements:
>> {{1}, {2}} == {{1}, {2}}True>> {1, 2} == {1, 2, 3}False
Symbolic constants are compared numerically:
>> E > 1True
>> Pi == 3.14False
>> Pi ^ E == E ^ PiFalse
>> N(E, 3) == N(E)True
>> {1, 2, 3} < {1, 2, 3}{1, 2, 3} < {1, 2, 3}
>> E == N(E)True
>> {Equal(Equal(0, 0), True), Equal(0, 0) == True}{True, True}
>> {Mod(6, 2) == 0, Mod(6, 4) == 0, (Mod(6, 2) == 0) == (Mod(6, 4) == 0), (Mod(6, 2) == 0) != (Mod(6, 4) == 0)}{True,False,False,True}
>> a == a == aTrue
>> {Equal(), Equal(x), Equal(1)}{True, True, True}
Related terms
Implementation status
- ✅ - full supported