Skip to content

Latest commit

 

History

History
73 lines (57 loc) · 2.12 KB

clog-clogf-clogl.md

File metadata and controls

73 lines (57 loc) · 2.12 KB
title description ms.date api_name api_location api_type topic_type f1_keywords helpviewer_keywords ms.assetid
clog, clogf, clogl
API reference for clog, clogf, and clogl; which retrieve the natural logarithm of a complex number, with a branch cut along the negative real axis.
11/04/2016
clog
clogf
clogl
msvcrt.dll
msvcr80.dll
msvcr90.dll
msvcr100.dll
msvcr100_clr0400.dll
msvcr110.dll
msvcr110_clr0400.dll
msvcr120.dll
msvcr120_clr0400.dll
ucrtbase.dll
api-ms-win-crt-math-l1-1-0.dll
DLLExport
apiref
clog
clogf
clogl
complex/clog
complex/clogf
complex/clogl
clog function
clogf function
clogl function
870b9b0b-6618-46f3-bfcf-da595cbd5e18

clog, clogf, clogl

Retrieves the natural logarithm of a complex number, with a branch cut along the negative real axis.

Syntax

_Dcomplex clog(
   _Dcomplex z
);
_Fcomplex clog(
   _Fcomplex z
);  // C++ only
_Lcomplex clog(
   _Lcomplex z
);  // C++ only
_Fcomplex clogf(
   _Fcomplex z
);
_Lcomplex clogl(
   _Lcomplex z
);

Parameters

z
The base of the logarithm.

Return value

The natural logarithm of z. The result is unbounded along the real axis and in the interval [-iπ, +iπ] along the imaginary axis.

The possible return values are:

z parameter Return value
Positive The logarithm (base 10) of z
Zero - INF
Negative NaN
NaN NaN
+ INF + INF

Remarks

Because C++ allows overloading, you can call overloads of clog that take and return _Fcomplex and _Lcomplex values. In a C program, clog always takes and returns a _Dcomplex value.

Requirements

Routine C header C++ header
clog, clogf, clogl <complex.h> <ccomplex>

For more compatibility information, see Compatibility.

See also

Alphabetical function reference
cexp, cexpf, cexpl
cpow, cpowf, cpowl
clog10, clog10f, clog10l