TIMES INDEX

TIMES _ _ _ _ _ _ _ _ _ _ _ _ operator

The times operator is an infix or prefix n-ary multiplication operator. It is identical to *.

syntax:

<expression> times <expression> {times <express ion>}*

or times(<expression>,<expression> {,<expression>}*)

<expression> can be any valid REDUCE scalar or matrix expression. Matrix expressions must be of the correct dimensions. Compatible scalar and matrix expressions can be mixed.

examples:


var1 times var2; 

  VAR1*VAR2 


times(6,5); 

  30 


matrix aa,bb; 

aa := mat((1),(2),(x))$ 

bb := mat((0,3,1))$ 

aa times bb times 5; 

  [0   15    5 ]
  [            ]
  [0   30   10 ]
  [            ]
  [0  15*X  5*X]