Mathematica > Core Language > Expressions > Testing Expressions >
Mathematica > Core Language > Procedural Programming > Conditionals > Testing Expressions >

Equal (Equal)

lhsEqualrhs
returns True if lhs and rhs are identical.
  • lhsEqualrhs is used to represent a symbolic equation, to be manipulated using functions like Solve.
  • lhsEqualrhs returns True if lhs and rhs are ordinary identical expressions.
  • lhsEqualrhs 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 precision or higher 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.
  • e1Equale2Equale3 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 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team