csqrt csqrtf csqrtl
如需 Visual Studio 2017 的最新文件請參閱 Visual Studio 2017 文件。
與分支沿著負真實軸擷取複雜數字的平方根。
語法
_Dcomplex csqrt(
_Dcomplex z
);
_Fcomplex csqrt(
_Fcomplex z
); // C++ only
_Lcomplex csqrt(
_Lcomplex z
); // C++ only
_Fcomplex csqrtf(
_Fcomplex z
);
_Lcomplex csqrtl(
_Lcomplex z
);
參數
z
複數。
傳回值
平方根z
。 結果是以正確的半平面。
輸入 | SEH 例外狀況 | _matherr 例外狀況 |
---|---|---|
± QNAN、 IND | 無 | _DOMAIN |
- ∞ | 無 | _DOMAIN |
備註
因為 C++ 允許多載,所以您可以呼叫採用並傳回 csqrt
和 _Fcomplex
值的 _Lcomplex
的多載。 在 C 程式中,csqrt
一律採用並傳回_Dcomplex
值。
需求
常式 | C 標頭 | C++ 標頭 |
---|---|---|
csqrt , csqrtf , csqrtl |
<complex.h> | <>> |
如需更多的相容性資訊,請參閱<簡介>中的 Compatibility 。
另請參閱
依字母順序排列的函式參考
catanh catanhf catanhl
ctanh ctanhf ctanhl
catan catanf catanl
csinh csinhf csinhl
casinh casinhf casinhl
ccosh ccoshf ccoshl
cacosh cacoshf cacoshl
cacos cacosf cacosl
ctan ctanf ctanl
csin csinf csinl
casin casinf casinl
ccos ccosf ccosl