This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Equal ()

lhsrhs
returns True if lhs and rhs are identical.
  • lhsrhs is used to represent a symbolic equation, to be manipulated using functions like Solve.
  • lhsrhs returns True if lhs and rhs are identical expressions.
  • lhsrhs returns False if lhs and rhs are determined to be unequal by comparisons between numbers or other raw data, such as strings.
  • Approximate numbers with machine- or higher precision are considered equal if they differ in at most their last seven binary digits (roughly their last two decimal digits).
  • For numbers below machine precision the required tolerance is reduced in proportion to the precision of the numbers.
  • e1e2e3 gives True if all the ei are equal.
  • For exact numeric quantities, Equal internally uses numerical approximations to establish inequality. This process can be affected by the setting of the global variable $MaxExtraPrecision.
New in 1 | Last modified in 4.1