HTBasic Help
×
Menu
Index
Polar
Polar form of a complex array.
 
Loading        LOADSUB ALL FROM "POLAR.HTS"
or LOADSUB FROM "MATHLIB.HTS"
or LOADSUB Polar FROM "MATHLIB.HTS"
 
Usage                COMPLEX C(*)
REAL A(*),P(*)
CALL Polar(C(*),T$,A(*),P(*))
Description                
Polar changes the elements of the array C into polar form. The magnitude of each element in C is placed into the corresponding element of array A and the phase of each element is placed into the corresponding element of array P. The elements of C remain unchanged. If the first character in T$ is "D" or "d", the angles in P are output in degrees; if T$ is null or begins with any character other than "d" or "D", the angles in P are output in radians. A and P must contain at least as many elements as C. If A or P contains more elements than C, the extra elements are unchanged or ignored.
 
Errors                
Polar causes an HTBasic error if its arguments are not of the types listed in the USAGE section, above, or if A or P contain fewer elements than C.
 
See Also
Rect