This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Minus

-x
is the arithmetic negation of x.
  • -x is converted to Times on input.
Minus automatically distributes over groupings:
Minus threads element-wise over lists:
Explicit FullForm:
Pattern match both x and -x:
Minus automatically distributes over groupings:
In[1]:=
Click for copyable input
Out[1]=
 
Minus threads element-wise over lists:
In[1]:=
Click for copyable input
Out[1]=
 
Explicit FullForm:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]//FullForm=
 
Pattern match both x and -x:
In[1]:=
Click for copyable input
Out[1]=
New in 1