description | title | ms.date | api_name | api_location | api_type | topic_type | f1_keywords | helpviewer_keywords | ms.assetid | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: csqrt, csqrtf, csqrtl |
csqrt, csqrtf, csqrtl |
11/04/2016 |
|
|
|
|
|
|
b65f086b-0f55-4622-a7a3-4e79d9c9c05c |
Retrieves the square root of a complex number, with a branch cut along the negative real axis.
_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
A complex number.
The square root of z
. The result is in the right half-plane.
Input | SEH exception | _matherr exception |
---|---|---|
± QNaN, IND | none | _DOMAIN |
- INF | none | _DOMAIN |
Because C++ allows overloading, you can call overloads of csqrt
that take and return _Fcomplex
and _Lcomplex
values. In a C program, csqrt
always takes and returns a _Dcomplex
value.
Routine | C header | C++ header |
---|---|---|
csqrt , csqrtf , csqrtl |
<complex.h> | <ccomplex> |
For more compatibility information, see Compatibility.
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
ctan
, ctanf
, ctanl
csin
, csinf
, csinl
casin
, casinf
, casinl
ccos
, ccosf
, ccosl