Difference between revisions of "Square Root"
(Created page with "{{BuiltinSquare Root√}} (<source lang=j inline>%:</source> in J) is a monadic scalar function that returns the wikipedia:square root of its argument,...") 
(No difference)

Revision as of 14:02, 19 May 2020
√

Square Root (√
) (%:
in J) is a monadic scalar function that returns the square root of its argument, that is, a number whose square is the argument. As there are two such numbers for any nonzero argument (negating one possible result gives another), the result returned is taken to have either a positive real part, or, if the real part is zero, a nonnegative imaginary part; in particular, if the result is real then it will be zero or greater. Square Root may also be defined in terms of the Power function, by raising the argument to the power onehalf. It is considered a case of the dyadic function Root (which uses the same glyph), with a default left argument of 2. Square Root is defined in J, dzaima/APL, and Extended Dyalog APL.
History
The radical symbol for the square root has been used in mathematics for centuries, and was suggested early in APL's development by Eugene McDonnell, who stated that "when I designed the APL printer trains for the IBM 1403 printer, I included the radical symbol √ on the train, in the expectation that one day this function would be added to APL."^{[1]} It was featured in J following McDonnell's design but written with the ASCII bigraph %:
. More recently, it was added with the radical symbol first to Extended Dyalog APL and then to dzaima/APL in 2018.
External links
 J Dictionary, NuVoc
References