WOLFRAM
Products
Wolfram|One
Mathematica
Wolfram Notebook Assistant + LLM Kit
Wolfram|Alpha Notebook Edition
System Modeler
All Products
Consulting & Solutions
Wolfram Consulting
Industry Solutions
Solutions for Education
Learning & Support
Wolfram U Courses
Wolfram Language Resources
Wolfram Community
Support FAQs
Contact Support
Company
About Wolfram
Careers
Events
Educational Programs
All Sites and Resources
Wolfram|Alpha
Wolfram Cloud
Your Account
Your Account
User Portal
Search
Close
Enable JavaScript to interact with content and submit forms on Wolfram websites.
Learn how
Legacy Documentation
The Mathematical Explorer
TM
(2001)
This is documentation for an obsolete product.
Current products and services
Equal
lhs
==
rhs
returns
True
if
lhs
and
rhs
are identical.
lhs
==
rhs
is used to represent a symbolic equation, to be manipulated using functions like
Solve
.
lhs
==
rhs
returns
True
if
lhs
and
rhs
are identical expressions.
lhs
==
rhs
returns
False
if
lhs
and
rhs
are determined to be unequal by comparisons between numbers or other raw data, such as strings.
Approximate numbers are considered equal if they differ in at most their last eight binary digits (roughly their last two decimal digits).
2
==
2.
gives
True
.
==
==
gives
True
if all the
are equal.
Equal[
e
]
gives
True
.
For exact numeric quantities,
Equal
internally uses numerical approximations to establish inequality.
In
StandardForm
,
lhs
==
rhs
can be input as
lhs
\
[Equal]
rhs
or
lhs
rhs
.
See
The Mathematica Book
on the web:
Section 1.5.5
andÂ
Section 1.5.6
.
See also:
SameQ
,
Unequal
,
Element
.
Further Examples