Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Expressions > Testing Expressions >
Mathematica > Core Language > Procedural Programming > Conditionals > Testing Expressions >

UnsameQ

lhsUnsameQrhs
yields True if the expression lhs is not identical to rhs, and yields False otherwise.
  • e1UnsameQe2UnsameQe3 gives True if no two of the ei are identical.
Test whether two expressions are not identically the same:
NotEqual remains symbolic unless literal values are given:
Full form:
Test whether two expressions are not identically the same:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
NotEqual remains symbolic unless literal values are given:
In[3]:=
Click for copyable input
Out[3]=
 
Full form:
In[1]:=
Click for copyable input
Out[1]=
Test equivalence of strings:
Numbers in different representations are not the same:
NotEqual nevertheless treats them as equal:
Test whether multiple expressions are all distinct:
Construct the permanent analog of the totally antisymmetric tensor:
1 appears at positions corresponding to permutations:
New in 2
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team