| title |
clog, clogf, clogl | Microsoft Docs |
| ms.custom |
|
| ms.date |
11/04/2016 |
| ms.reviewer |
|
| ms.suite |
|
| ms.technology |
|
| ms.tgt_pltfrm |
|
| ms.topic |
article |
| apiname |
|
| apilocation |
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 |
|
| apitype |
DLLExport |
| f1_keywords |
clog |
clogf |
clogl |
complex/clog |
complex/clogf |
complex/clogl |
|
| dev_langs |
|
| helpviewer_keywords |
clog function |
clogf function |
clogl function |
|
| ms.assetid |
870b9b0b-6618-46f3-bfcf-da595cbd5e18 |
| caps.latest.revision |
9 |
| author |
corob-msft |
| ms.author |
corob |
| manager |
ghogen |
| translation.priority.mt |
cs-cz |
de-de |
es-es |
fr-fr |
it-it |
ja-jp |
ko-kr |
pl-pl |
pt-br |
ru-ru |
tr-tr |
zh-cn |
zh-tw |
|
Retrieves the natural logarithm of a complex number, with a branch cut along the negative real axis.
_Dcomplex clog(
_Dcomplex z
);
_Fcomplex clog(
_Fcomplex z
); // C++ only
_Lcomplex clog(
_Lcomplex z
); // C++ only
_Fcomplex clogf(
_Fcomplex z
);
_Lcomplex clogl(
_Lcomplex z
);
z
The base of the logarithm.
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 base 10 logarithm of z |
| Zero |
- ∞ |
| Negative |
NaN |
| NaN |
NaN |
| + ∞ |
+ ∞ |
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.
| Routine |
C header |
C++ header |
clog, clogf, clogl |
<complex.h> |
<ccomplex> |
For more compatibility information, see Compatibility in the Introduction.
Alphabetical Function Reference
cexp, cexpf, cexpl
cpow, cpowf, cpowl
clog10, clog10f, clog10l