HP 3000 Manuals

CLOG (or CLOG') [ Compiler Library/XL Reference Manual ] MPE/iX 5.0 Documentation


Compiler Library/XL Reference Manual

CLOG (or CLOG') 

CLOG calculates the natural logarithm of a complex number.

Declaration 

Complex numbers in HP FORTRAN 77/XL programs are represented as an
ordered pair of real numbers:  one for the real part a and one for the
imaginary part b.  Thus, complex numbers occupy eight bytes.

     TYPE complex=RECORD
                   realpart:REAL;
                   imagpart:REAL;
                  END;

     FUNCTION CLOG(VAR x:complex):complex; EXTERNAL;

Accuracy 

Depends on the accuracy of ALOG, SQRT, and ATAN2.

Attributes 

Parameter:                Any nonzero complex number representable in two
                          real numbers; both parts must not be zero.

Result:                   A complex number.

HP FORTRAN 77/XL:         Intrinsic function:  Y=CLOG(X).

Error:                    See the ALOG, SQRT, and ATAN2 error
                          descriptions.



MPE/iX 5.0 Documentation