title | description | ms.date | api_name | api_location | api_type | topic_type | f1_keywords | helpviewer_keywords | ms.assetid | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ctan, ctanf, ctanl | API reference for ctan, ctanf, and ctanl; which retrieve the tangent of a complex number. | 11/04/2016 |
|
|
|
|
|
| d3cbd25c-1e93-4a6d-8154-da42921f7223 |
Retrieves the tangent of a complex number.
_Dcomplexctan( _Dcomplexz ); _Fcomplexctan( _Fcomplexz ); // C++ only_Lcomplexctan( _Lcomplexz ); // C++ only_Fcomplexctanf( _Fcomplexz ); _Lcomplexctanl( _Lcomplexz );
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 |
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 referencecatanh
, 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