| title |
ctan, ctanf, ctanl |
| description |
API reference for ctan, ctanf, and ctanl; which retrieve the tangent of a complex number. |
| ms.date |
11/04/2016 |
| api_name |
|
| api_location |
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 |
|
| api_type |
|
| topic_type |
|
| f1_keywords |
ctan |
ctanf |
ctanl |
complex/ctan |
complex/ctanf |
complex/ctanl |
|
| helpviewer_keywords |
ctan function |
ctanf function |
ctanl function |
|
Retrieves the tangent of a complex number.
_Dcomplex ctan(
_Dcomplex z
);
_Fcomplex ctan(
_Fcomplex z
); // C++ only
_Lcomplex ctan(
_Lcomplex z
); // C++ only
_Fcomplex ctanf(
_Fcomplex z
);
_Lcomplex ctanl(
_Lcomplex z
);
z
A complex number that represents the angle, in radians.
The tangent of z.
| Input |
SEH exception |
_matherr exception |
| ± INF, QNaN, IND |
none |
_DOMAIN |
± INF (tan, tanf) |
INVALID |
_DOMAIN |
Remarks
Because C++ allows overloading, you can call overloads of ctan that take and return _Fcomplex and _Lcomplex values. In a C program, ctan always takes and returns a _Dcomplex value.
| Routine |
C header |
C++ header |
ctan, ctanf, ctanl |
<complex.h> |
<ccomplex> |
For more compatibility information, see Compatibility.
Alphabetical function reference
catanh, catanhf, catanhl
ctanh, ctanhf, ctanhl
catan, catanf, catanl
csinh, csinhf, csinhl
casinh, casinhf, casinhl
ccosh, ccoshf, ccoshl
cacosh, cacoshf, cacoshl
cacos, cacosf, cacosl
csin, csinf, csinl
casin, casinf, casinl
ccos, ccosf, ccosl
csqrt, csqrtf, csqrtl