Divide

From APL Wiki
Revision as of 07:46, 26 April 2020 by A (talk | contribs) (Divide built-in)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This page describes the dyadic arithmetic function. For reciprocal of a single argument, see Reciprocal.
÷

Divide (÷), or Over is a dyadic scalar function which gives the arithmetic product of its arguments. Divide shares the glyph ÷ with the monadic arithmetic function Reciprocal, and its result is the left argument over the right argument.

Examples

      2 0 5÷4 0 2
0.5 1 2.5
 
      3j1 2.5 4j5÷2 1j1 .2
1.5J0.5 1.25J¯1.25 20J25
 
      ⎕DIV←1
      2 0 5÷4 0 0
0.5 0 0

Properties

Division is anti-commutative: swapping the arguments yield the reciprocal of the result.

Reduction and scan

Reduction with Division gives the alternating 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