Dela via


ctan, ctanfctanl

Hämtar tangenten för ett komplext tal.

Syntax

_Dcomplex ctan(
   _Dcomplex z
);
_Fcomplex ctan(
   _Fcomplex z
);  // C++ only
_Lcomplex ctan(
   _Lcomplex z
);  // C++ only
_Fcomplex ctanf(
   _Fcomplex z
);
_Lcomplex ctanl(
   _Lcomplex z
);

Parameterar

z
Ett komplext tal som representerar vinkeln, i radianer.

Returvärde

Tangenten för z.

Indata SEH-undantag _matherr undantag
± INF, QNaN, IND none _DOMÄN
± INF (tan, tanf) OGILTIG _DOMÄN

Anmärkningar

Eftersom C++ tillåter överlagring kan du anropa överlagringar av ctan den tagning och retur _Fcomplex och _Lcomplex värden. I ett C-program ctan tar och returnerar alltid ett _Dcomplex värde.

Kravspecifikation

Rutin C-rubrik C++-rubrik
ctan, ctanfctanl <complex.h> <ccomplex>

Mer kompatibilitetsinformation finns i Kompatibilitet.

Se även

Alfabetisk funktionsreferens
catanh, , catanhfcatanhl
ctanh, , ctanhfctanhl
catan, , catanfcatanl
csinh, , csinhfcsinhl
casinh, , casinhfcasinhl
ccosh, , ccoshfccoshl
cacosh, , cacoshfcacoshl
cacos, , cacosfcacosl
csin, , csinfcsinl
casin, , casinfcasinl
ccos, , ccosfccosl
csqrt, , csqrtfcsqrtl