分享方式:


ctanh、 、 ctanhfctanhl

計算複數的複雜雙曲正切值。

語法

_Dcomplex ctanh(
   _Dcomplex z
);
_Fcomplex ctanh(
   _Fcomplex z
);  // C++ only
_Lcomplex ctanh(
   _Lcomplex z
);  // C++ only
_Fcomplex ctanhf(
   _Fcomplex z
);
_Lcomplex ctanhl(
   _Lcomplex z
);

參數

z
代表角度的複數 (弧度)。

傳回值

z 的複雜雙曲正切值。

輸入 SEH 例外狀況 _matherr 例外
± INF、QNaN、IND none _DOMAIN
± INF (tan, tanf) 無效 _DOMAIN

備註

因為 C++ 允許多載,所以您可以呼叫採用並傳回 ctanh_Fcomplex 值的 _Lcomplex 的多載。 在 C 程式中, ctanh 會一律採用及傳回 _Dcomplex

需求

常式 C 標頭 C++ 標頭
ctanh、 、 ctanhfctanhl <complex.h> <ccomplex>

如需相容性資訊,請參閱相容性

另請參閱

依字母順序排列的函式參考
catanh、 、 catanhfcatanhl
catan、 、 catanfcatanl
csinh、 、 csinhfcsinhl
casinh、 、 casinhfcasinhl
ccosh、 、 ccoshfccoshl
cacosh、 、 cacoshfcacoshl
cacos、 、 cacosfcacosl
ctan、 、 ctanfctanl
csin、 、 csinfcsinl
casin、 、 casinfcasinl
ccos、 、 ccosfccosl
csqrt、 、 csqrtfcsqrtl