Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Defining Variables and Functions > Assignments >

TimesBy (*=)

x*=c
multiplies x by c and returns the new value of x.
  • x*=c is equivalent to x=x*c.
Multiply by a numerical value:
Multiply by a symbolic value:
Multiply all values in a list by a scalar:
Multiply all values in a list by another list:
Find the first power of two above one million:
TimesBy is a short form of this assignment:
DivideBy is closely related:
A variable to be multiplied must have an initial value:
New in 1
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team