Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Mathematical Functions > Arithmetic Functions > Subtract (-) >

Subtract


is equivalent to .
  • is converted to on input.
Subtract numbers:
Subtract expressions:
Subtract evaluates to Plus:
Subtract numbers:
In[1]:=
Click for copyable input
Out[1]=
 
Subtract expressions:
In[1]:=
Click for copyable input
Out[1]=
 
Subtract evaluates to Plus:
In[1]:=
Click for copyable input
Out[1]//FullForm=
If any number is approximate, the whole result will be:
Subtracting complex numbers subtracts their components:
Subtract threads element-wise over lists:
Find pairs of numbers that differ by an integer:
Verify that their differences are integers:
New in 1
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF