SameTest

SameTest

is an option whose setting gives a pairwise comparison function to determine whether expressions should be considered the same.

Details

  • SameTest->f specifies that f[e1,e2] should be evaluated whenever it is necessary to determine whether pairs of expressions e1, e2 should be considered the same.

Examples

open allclose all

Basic Examples  (2)

Union of a set of integers:

In[1]:=
Click for copyable input
Out[1]=

Union considering comparison modulo 3:

In[2]:=
Click for copyable input
Out[2]=

Find a fixed point to a tolerance:

In[1]:=
Click for copyable input
Out[1]=

Scope  (5)

See Also

SameQ  FixedPoint  Union  Intersection  AntisymmetricMatrixQ  AntihermitianMatrixQ  Complement  HermitianMatrixQ  NormalMatrixQ  OrthogonalMatrixQ  SymmetricMatrixQ  UnitaryMatrixQ  ZeroTest

Introduced in 1991
(2.0)