ctan, ctanf, ctanl

Visual Studio 2015
 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at ctan, ctanf, ctanl.

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   
);  

Parameters

z
A complex number that represents the angle, in radians.

The tangent of z.

InputSEH Exception_matherr Exception
± ∞, QNAN, INDnone_DOMAIN
± ∞ (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.

RoutineC headerC++ header
ctan, ctanf, ctanl<complex.h><ccomplex>

For more compatibility information, see Compatibility in the Introduction.

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

Show: