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