Difference between revisions of "Times"
Jump to navigation
Jump to search
Line 4:  Line 4:  
== Examples ==  == Examples ==  
−  A long, slow way to write  +  A long, slow way to write <code>!10</code>: 
<source lang=apl>  <source lang=apl>  
×/⍳10  ×/⍳10 
Revision as of 07:38, 26 April 2020
 This page describes the dyadic arithmetic function. For sign of a single argument, see Signum.
×

Product (×
), Times, or Multiply is a dyadic scalar function which gives the arithmetic product of its arguments. Subtract shares the glyph ×
with the monadic arithmetic function Signum, and its result is the left argument times the right argument.
Examples
A long, slow way to write !10
:
×/⍳10
Properties
Subtraction is commutative: swapping the arguments don't affect the result, e.g. using Commute, *⍨
.
Reduction and scan
Reduction with Product gives the product of the whole list.