Difference between revisions of "Root"

From APL Wiki
Jump to navigation Jump to search
(Created page with "{{Built-in|Root|√}} (<source lang=j inline>%:</source> in J) is a dyadic scalar function that computes the nth root; <source lang=apl inli...")
 
 
Line 1: Line 1:
 
{{Built-in|Root|√}} (<source lang=j inline>%:</source> in [[J]]) is a [[dyadic]] [[scalar function]] that computes the [[wikipedia:nth root|nth root]]; <source lang=apl inline>X√Y</source> is equal to <source lang=apl inline>Y*÷X</source>, the right [[argument]] raised to the [[power]] of the [[reciprocal]] of the left argument. The positioning of arguments resembles the [[Comparison with traditional mathematics#Explicitness|mathematical notation]] <math>\sqrt[x]{y}</math>. Root shares the [[glyph]] <source lang=apl inline>√</source> with the monadic function [[Square Root]], which is the same as Root with the default left argument of 2. Root is defined in [[J]], [[NARS2000]], [[dzaima/APL]], and [[Extended Dyalog APL]].
 
{{Built-in|Root|√}} (<source lang=j inline>%:</source> in [[J]]) is a [[dyadic]] [[scalar function]] that computes the [[wikipedia:nth root|nth root]]; <source lang=apl inline>X√Y</source> is equal to <source lang=apl inline>Y*÷X</source>, the right [[argument]] raised to the [[power]] of the [[reciprocal]] of the left argument. The positioning of arguments resembles the [[Comparison with traditional mathematics#Explicitness|mathematical notation]] <math>\sqrt[x]{y}</math>. Root shares the [[glyph]] <source lang=apl inline>√</source> with the monadic function [[Square Root]], which is the same as Root with the default left argument of 2. Root is defined in [[J]], [[NARS2000]], [[dzaima/APL]], and [[Extended Dyalog APL]].
 +
 +
== See also ==
 +
* [[Divide]]
 +
* [[Logarithm]]
  
 
== External links ==
 
== External links ==

Latest revision as of 07:51, 9 July 2020

Root () (%: in J) is a dyadic scalar function that computes the nth root; XY is equal to YX, the right argument raised to the power of the reciprocal of the left argument. The positioning of arguments resembles the mathematical notation . Root shares the glyph with the monadic function Square Root, which is the same as Root with the default left argument of 2. Root is defined in J, NARS2000, dzaima/APL, and Extended Dyalog APL.

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, Atop, Over) ∙ Inner ProductPowerAtUnderRankDepthVariantStencilCut (J)
Quad names
Arrays Index originMigration levelAtomic vector
Functions Case convertUnicode convert
Operators SearchReplace