Times: Difference between revisions
Jump to navigation
Jump to search
(Cleanup after move) |
m (Text replacement - "{{APL built-ins}}" to "{{APL built-ins}}Category:Primitive functions") |
||
Line 24: | Line 24: | ||
* [http://help.dyalog.com/latest/index.htm#Language/Primitive%20Functions/Multiply.htm Dyalog] | * [http://help.dyalog.com/latest/index.htm#Language/Primitive%20Functions/Multiply.htm Dyalog] | ||
{{APL built-ins}} | {{APL built-ins}}[[Category:Primitive functions]] |
Revision as of 13:45, 30 April 2020
- This page describes the dyadic arithmetic function. For sign of a single argument, see Signum.
×
|
Times (×
), Multiply, or Product is a dyadic scalar function which gives the arithmetic product of its arguments. Times shares the glyph ×
with the monadic arithmetic function Signum.
Examples
A long, slow way to write !10
, assuming ⎕IO←1
:
×/⍳10
Properties
Multiplication is commutative and associative, but, due to floating point error, may result in small differences between mathematically equivalent expressions.
The identity element for Times is 1
.
Reduction
Reduction with Multiply gives the product of the whole list.