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

SubtractFrom


subtracts dx from x and returns the new value of x.
  • is equivalent to .
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Subtract from a numerical value:
Subtract from a symbolic value:
Subtract from all values in a list:
Find the last prime below one million:
SubtractFrom is a short form of this assignment:
PreDecrement is a special case of SubtractFrom:
AddTo is closely related:
A variable to be decremented must have an initial value:
New in 1