clog, clogf, or clogl Subroutine

Purpose

Computes the complex natural logarithm.

Syntax

#include <complex.h>

double complex clog (z)
double complex z;

float complex clogf (z)
float complex z;

long double complex clogl (z)
long double complex z;

Description

The clog, clogf, and clogl subroutines compute the complex natural (base e) logarithm of z, with a branch cut along the negative real axis.

Parameters

Item Description
z Specifies the value to be computed.

Return Values

The clog, clogf, and clogl subroutines return the complex natural logarithm value, in the range of a strip mathematically unbounded along the real axis and in the interval [-i pi, +i pi] along the imaginary axis.