HP IBASIC Supplement 9-5
Using Subprograms
Built-In High-Speed Subprograms
Table 9-2 MATH Subprograms, Complex Arrays
Table 9-3 MATH Subprograms, Complex Numbers (1 of 2)
Filename Subprogram Name (parameter list) Description
MATH
Define
Complex
Array
Operations
Cmplx_mag(REAL
Cdata(*),Mag(*),INTEGER Sz)
Mag of complex array
Cmplx_arg(REAL Cdata(*),Arg(*),INTEGER Sz)
Cmplx_conjg(REAL A(*),B(*))
Filename Subprogram Name (parameter list)
MATH
Define
Complex
Number
Operation
Cadd(REAL Op1(*),INTEGER Row1,REAL Op2(*),
INTEGER Row2,REAL Ans(*),INTEGER Rowans)
complex Ans = complex Op1 + complex Op2
Csub(REAL Op1(*), INTEGER Row1, REAL Op2(*),
INTEGER Row2, REAL Ans(*), INTEGER Rowans)
complex Ans = complex Op1 - complex Op2
i()
C
imag
i()
C
real
i()
----------------------
in the range π– π,atan=arg
B, complex conjugate of array A goes into array B⇒
Ans
real
Rowans()Op1
real
row1()Op2
real
row2()+=
Ans
imag
Rowans()Op1
imag
row1()Op2
imag
row2()+=
ns
real
Rowans()Op1
real
row1()Op2
real
row2()–=
Ans
imag
Rowans()Op1
imag
row1()Op2
imag
row2()–=