Everything

clogf / clog / clogl


Calculates the natural logarithm of a complex number.

[Format]

#include <complex.h>

float complex clogf(float complex z);

double complex clog(double complex z);

long double complex clogl(long double complex z);

[Parameters]

z Complex number for which natural logarithm is to be computed

[Return values]

Normal: Natural logarithm of z

Abnormal: Domain error: Returns not-a-number.

[Remarks]

A domain error occurs if z is negative.

A range error occurs if z is 0.0.

The clog function returns the natural logarithm in the infinite range on the real axis and in the range [–iπ, +iπ] on the imaginary axis.