Minus

-x
is the arithmetic negation of x.

DetailsDetails

  • -x is converted to Times[-1, x] on input.

ExamplesExamplesopen allclose all

Basic Examples (4)Basic Examples (4)

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
New to Mathematica? Find your learning path »
Have a question? Ask support »