This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
BUILT-IN MATHEMATICA SYMBOL|See Also »

SameTest

SameTest
is an option whose setting gives a pairwise comparison function to determine whether expressions should be considered the same.
  • SameTest->f specifies that should be evaluated whenever it is necessary to determine whether pairs of expressions , should be considered the same.
Union of a set of integers:
Union considering comparison modulo 3:
Find a fixed point to a tolerance:
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]=
New in 2