clog(), clogf(), clogl() — Calculate the complex natural logarithm

Standards

Standards / Extensions C or C++ Dependencies

C99
Single UNIX Specification, Version 3

both

z/OS V1R7
a compiler that is designed
to support C99

Format

#include <complex.h>

double complex clog(double complex z);
float complex clogf(float complex z);
long double complex clogl(long double complex z);

General description

The clog() family of functions compute the complex natural (base-e) logarithm of z, with a branch cut along the negative real axis.
Note: The following table shows the viable formats for these functions. See IEEE binary floating-point for more information about IEEE Binary Floating-Point.
Function Hex IEEE
clog X X
clogf X X
clogl X X

Returned value

The clog() family of functions return the complex natural logarithm value, in the range of a strip, mathematically unbounded along the real axis and in the interval [-i π, +i π] along the imaginary axis.

Example

For an example of a similar function see cacos(), cexp() or cpow().

Related information