Polarchanges the elements of the arrayCinto polar form. The magnitude of each element inCis placed into the corresponding element of arrayAand the phase of each element is placed into the corresponding element of arrayP. The elements ofCremain unchanged. If the first character inT$is "D" or "d", the angles inPare output in degrees; ifT$is null or begins with any character other than "d" or "D", the angles inPare output in radians.AandPmust contain at least as many elements asC. IfAorPcontains more elements thanC, the extra elements are unchanged or ignored.
Errors
Polarcauses an HTBasic error if its arguments are not of the types listed in the USAGE section, above, or ifAorPcontain fewer elements thanC.