Rectchanges the elements of the arraysAandPinto rectangular form. The magnitude of each element is inAand the phase of each element is in the corresponding position inP. The rectangular form of the data inAandPis placed into the corresponding element of arrayC. The elements ofAandPremain unchanged. If the first character inT$is "D" or "d", the angles inPare taken to be in degrees; ifT$is null or begins with any character other than "d" or "D", the angles inPare taken to be in radians.AandPmust contain the same number of elements;Cmust contain at least as many element asAandP. IfCcontains more than this number of elements, the extra elements are unchanged or ignored.
Errors
Rectcauses an HTBasic error if its arguments are not of the types listed in the USAGE section, ifAandPcontain different numbers of elements or ifCcontains fewer elements thanAandP.