SameTest

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

DetailsDetails

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

ExamplesExamplesopen allclose all

Basic Examples  (2)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]=
Introduced in 1991
(2.0)