Pi Times: Difference between revisions

From APL Wiki
Jump to navigation Jump to search
No edit summary
m (Text replacement - "http://help.dyalog.com" to "https://help.dyalog.com")
Line 16: Line 16:
=== Documentation ===
=== Documentation ===


* [http://help.dyalog.com/latest/#Language/Primitive%20Functions/Pi%20Times.htm Dyalog]
* [https://help.dyalog.com/latest/#Language/Primitive%20Functions/Pi%20Times.htm Dyalog]
* [http://microapl.com/apl_help/ch_020_020_230.htm APLX]
* [http://microapl.com/apl_help/ch_020_020_230.htm APLX]
* [https://www.jsoftware.com/help/dictionary/dodot.htm J Dictionary], [https://code.jsoftware.com/wiki/Vocabulary/odot NuVoc]
* [https://www.jsoftware.com/help/dictionary/dodot.htm J Dictionary], [https://code.jsoftware.com/wiki/Vocabulary/odot NuVoc]
{{APL built-ins}}[[Category:Primitive functions]][[Category:Scalar monadic functions]]
{{APL built-ins}}[[Category:Primitive functions]][[Category:Scalar monadic functions]]

Revision as of 14:31, 14 July 2020

Pi Times () is a monadic scalar function which gives the argument times the mathematical constant pi . Its glyph , which is shared with the dyadic arithmetic function Circular, alludes to pi being the ratio of a circle's circumference to its diameter. The phrase "some value times " appears frequently in mathematical formulas related to a circle or trigonometric functions while raised to some power is rare, which explains the design decision behind this function.

A circular apple pie

Examples

The value of can be obtained by giving the argument of 1.

      ○1
3.141592654

As a pun, ○1 is often called apple pie, jokingly using an unconventional pronunciation of the name APL in conjunction with the homophones pi/pie.

External links

Documentation

APL built-ins [edit]
Primitives (Timeline) Functions
Scalar
Monadic ConjugateNegateSignumReciprocalMagnitudeExponentialNatural LogarithmFloorCeilingFactorialNotPi TimesRollTypeImaginarySquare RootRound
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 axisIdentity (Null, Ident)
Dyadic BindCompositions (Compose, Reverse Compose, Beside, Withe, Atop, Over) ∙ Inner ProductDeterminantPowerAtUnderRankDepthVariantStencilCutDirect definition (operator)Identity (Lev, Dex)
Quad names Index originComparison toleranceMigration levelAtomic vector