 |
TimesBy
x
*=
c multiplies x by c and returns the new value of x.
TimesBy has the attribute HoldFirst. x
*=
c is equivalent to x
=
x
*
c. See the Mathematica book: Section 2.4.4. See also: DivideBy, AddTo, Set.
Further Examples
This initializes the variable i to the value 7, multiplies it, checks its value, and clears it.
In[1]:= 
Out[1]= 
In[2]:= 
Out[2]= 
In[3]:= 
Out[3]= 
In[4]:= 
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT. SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION. | | | |
 | |
|