Difference between revisions of "Times"

From APL Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by 2 users not shown)
Line 18: Line 18:
  
 
[[Reduction]] with Multiply gives the product of the whole list.
 
[[Reduction]] with Multiply gives the product of the whole list.
 +
 +
== See also ==
 +
* [[Divide]]
 +
* [[Add]]
 +
* [[Power]]
  
 
== External links ==
 
== External links ==
Line 23: Line 28:
 
=== Documentation ===
 
=== Documentation ===
  
* [http://help.dyalog.com/latest/index.htm#Language/Primitive%20Functions/Multiply.htm Dyalog]
+
* [https://help.dyalog.com/latest/index.htm#Language/Primitive%20Functions/Multiply.htm Dyalog]
 +
* [http://microapl.com/apl_help/ch_020_020_060.htm APLX]
 +
* J [https://www.jsoftware.com/help/dictionary/d110.htm Dictionary], [https://code.jsoftware.com/wiki/Vocabulary/star#dyadic NuVoc] (as <source lang=j inline>*</source>)
 
{{APL built-ins}}[[Category:Primitive functions]][[Category:Scalar dyadic functions]]
 
{{APL built-ins}}[[Category:Primitive functions]][[Category:Scalar dyadic functions]]

Latest revision as of 05:09, 25 May 2021

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.

See also

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