Difference between revisions of "Times"

From APL Wiki
Jump to navigation Jump to search
Line 11: Line 11:
 
== Properties ==
 
== Properties ==
  
Subtraction is commutative: swapping the arguments don't affect the result, e.g. using [[Commute]], <source lang=apl inline>*⍨</source>.
+
Product is commutative: swapping the arguments don't affect the result, e.g. using [[Commute]], <source lang=apl inline>*⍨</source>.
  
 
=== Reduction and scan ===
 
=== Reduction and scan ===

Revision as of 07:45, 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. 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]
Primitive functions
Scalar
Monadic ConjugateNegateSignumReciprocalMagnitudeExponentialNatural LogarithmFloorCeilingFactorialNotPi TimesRollTypeImaginarySquare Root
Dyadic AddSubtractTimesDivideResiduePowerLogarithmMinimumMaximumBinomialComparison functionsBoolean functions (And, Or, Nand, Nor) ∙ GCDLCMCircularComplexRoot
Non-Scalar
Structural ShapeReshapeTallyDepthRavelEnlistTableCatenateReverseRotateTransposeRazeMixSplitEncloseNestCut (K)PairLinkPartitioned EnclosePartition
Selection FirstPickTakeDropUniqueIdentitySelectReplicateExpandSet functions (IntersectionUnionWithout) ∙ Bracket indexingIndex
Selector Index generatorGradeIndex OfInterval IndexIndicesDeal
Computational MatchNot MatchMembershipFindNub SieveEncodeDecodeMatrix InverseMatrix DivideFormatExecuteMaterialiseRange
Primitive operators Monadic EachCommuteConstantReplicateExpandReduceWindowed ReduceScanOuter ProductKeyI-beamSpawnFunction axis
Dyadic BindCompositions (Compose, Reverse Compose, Beside, Withe, Atop, Over) ∙ Inner ProductPowerAtUnderRankDepthVariantStencilCut (J)
Quad names
Arrays Index originMigration levelAtomic vector
Functions Name classCase convertUnicode convert
Operators SearchReplace