Skip to content

Times

(e1 * e2 * ...) computes the product of all expressions in the function.

Attributes[Times] := {Flat, Listable, NumericFunction, OneIdentity, Orderless, Protected}

Simple examples

Simplification rules apply automatically:

In[1]:= (3 + x^2*0)/(2)
Out[1]= (3)/(2)
In[2]:= a^2*a^c
Out[2]= a^(2 + c)
In[3]:= (((a)/(b))/(c))/(d)
Out[3]= (a)/(b*c*d)

Further examples

Rational numbers are suppported (explicit rational declaration added for clarity):

In[1]:= Rational[1, -2]*Rational[-2, 3]*-2
Out[1]= (-2)/(3)
The product of nothing is defined to be one:
In[2]:= Times[]
Out[2]= 1