Times

From APL Wiki
Revision as of 15:07, 26 April 2020 by Adám Brudzewsky (talk | contribs) (Adám Brudzewsky moved page Product to Times over redirect: Use common name)
Jump to navigation Jump to search
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. Product 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

Product 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

APL built-ins [edit]
Primitives (Timeline) Functions
Scalar
Monadic ConjugateNegateSignumReciprocalMagnitudeExponentialNatural LogarithmFloorCeilingFactorialNotPi TimesRollTypeImaginarySquare Root
Dyadic AddSubtractTimesDivideResiduePowerLogarithmMinimumMaximumBinomialComparison functionsBoolean functions (And, Or, Nand, Nor) ∙ GCDLCMCircularComplexRoot
Non-Scalar
Structural ShapeReshapeTallyDepthRavelEnlistTableCatenateReverseRotateTransposeRazeMixSplitEncloseNestCut (K)PairLinkPartitioned EnclosePartition
Selection FirstPickTakeDropUniqueIdentityStopSelectReplicateExpandSet functions (IntersectionUnionWithout) ∙ Bracket indexingIndexCartesian ProductSort
Selector Index generatorGradeIndex OfInterval IndexIndicesDealPrefix and suffix vectors
Computational MatchNot MatchMembershipFindNub SieveEncodeDecodeMatrix InverseMatrix DivideFormatExecuteMaterialiseRange
Operators Monadic EachCommuteConstantReplicateExpandReduceWindowed ReduceScanOuter ProductKeyI-BeamSpawnFunction axis
Dyadic BindCompositions (Compose, Reverse Compose, Beside, Withe, Atop, Over) ∙ Inner ProductDeterminantPowerAtUnderRankDepthVariantStencilCutDirect definition (operator)
Quad names Index originComparison toleranceMigration levelAtomic vector