NAME

clog - complex log


SYNOPSIS

val=complex clog(a)


INPUT PARAMETERS

a - complex
     number


RETURN VALUES

val - complex
      result of complex log


DESCRIPTION

     Clog returns the principal value of log(a) for an arbitrary
     complex a.  An equivalent formula is
                cmplx(log(cabs(a)),atan2(a.im,a.re)).
     The imaginary part is between -J and J.


DIAGNOSTICS

     Clog(0) returns the machine equivalent of minus infinity.


LIBRARY

sepmath