Legacy Documentation

Mathematica® Teacher's Edition (2002)

This is documentation for an obsolete product.
Current products and services
 Documentation /  Mathematica Teacher's Edition /  Built-in Functions /  Programming /  Tests /

Equal

FilledSmallSquare lhs == rhs returns True if lhs and rhs are identical.

FilledSmallSquare lhs == rhs is used to represent a symbolic equation. It is manipulated using functions like Solve.
FilledSmallSquare lhs == rhs returns True if lhs and rhs are identical expressions.
FilledSmallSquare lhs == rhs returns False if lhs and rhs are determined to be unequal by comparisons between numbers or other raw data, such as strings.
FilledSmallSquare Approximate numbers are considered equal if they differ in, at most, their last eight binary digits (roughly their last two decimal digits).
FilledSmallSquare 2 == 2. gives True.
FilledSmallSquare == == gives True if all the are equal.
FilledSmallSquare Equal[e] gives True.
FilledSmallSquare For exact numeric quantities, Equal internally uses numerical approximations to establish inequality.
FilledSmallSquare In StandardForm and InputForm, lhs == rhs can be input as lhs \[Equal] rhs or lhs rhs.
FilledSmallSquare It can also be input as lhs \[LongEqual] rhs or lhs rhs.
FilledSmallSquare See The Mathematica Book on the web: Section 1.5.5 and Section 1.5.6.
FilledSmallSquare See also: SameQ, Unequal, Element.