|
|
|
Product num1 num2
(Product num1 num2 num3 ...)
num1 * num2
outputs the product of its inputs.
It's a non-commutative primitive (like all binary math functions), so the order or arguments does matter, if one arg is a list and the other a scalar.
Examples:
2*3 ;6 ;-) 2*pi ;6.28319 ;-) [1 2 3]*[4 5 6] ;[4 10 18] ;-) 0+[1 2 3]*[4 5 6] ;32 ;-) ==scalar product! 1*[2 3 4] ;24 ;-) multiply all numbers in a list [2 3 4]*2 ;[4 6 8] ;-) Product 2 3 ;6 ;-) Product 2 pi ;6.28319 ;-) Product [1 2 3] [4 5 6] ;[4 10 18] ;-) 0+Product [1 2 3] [4 5 6] ;32 ;-) ==scalar product! |
|
|
|