Times: Difference between revisions

From APL Wiki
Jump to navigation Jump to search
No edit summary
Line 21: Line 21:
=== Documentation ===
=== Documentation ===


* [http://help.dyalog.com/latest/index.htm#Language/Primitive%20Functions/Subtract.htm Dyalog]
* [http://help.dyalog.com/latest/index.htm#Language/Primitive%20Functions/Multiply.htm Dyalog]
* [http://microapl.com/apl_help/ch_020_020_040.htm APLX]
* J [https://www.jsoftware.com/help/dictionary/d120.htm Dictionary], [https://code.jsoftware.com/wiki/Vocabulary/minus#dyadic NuVoc]
{{APL built-ins}}

Revision as of 07:34, 26 April 2020

This page describes the dyadic arithmetic function. For sign of a single argument, see Signum.
×

Product (×), Times, or Multiplication 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.

External links

Documentation