Times

From APL Wiki
Jump to navigation Jump to search
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 ⎕IO1:

×/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.

External links

Documentation

APL built-ins [edit]
Primitive functions
Scalar
Monadic ConjugateNegateSignumReciprocalMagnitudeExponentialNatural LogarithmFloorCeilingFactorialNotPi TimesImaginaryRollType
Dyadic AddSubtractTimesDivideResiduePower (function)LogarithmMinimumMaximumBinomialComparison functionsBoolean functions (And, Or, Nand, Nor) ∙ GCDLCMCircularComplex
Non-Scalar
Structural ShapeReshapeTallyDepthRavelEnlistTableCatenateReverseRotateTransposeRazeMixSplitEncloseNestCut (K)PairPartitioned EnclosePartition
Selection FirstPickTakeDropUniqueIdentitySelectReplicateExpandSet functions (IntersectionUnionWithout) ∙ Bracket indexSquad Indexing
Selector Index generatorGradeIndex OfInterval IndexIndicesDeal
Computational MatchNot MatchMembershipFindNub SieveEncodeDecodeMatrix InverseMatrix DivideFormatExecuteMaterialise
Primitive operators Monadic EachCommuteConstantReplicateReduceWindowed ReduceScanOuter ProductKeyI-beamSpawnFunction axis
Dyadic Inner ProductPower (operator)Rank (operator)BindBesideReverse ComposeAtopOverAtVariantStencil
Quad names
Arrays Index originMigration level
Functions
Operators