Teilen über


csqrt, csqrtfcsqrtl

Ruft das Argument einer komplexen Zahl mit einem Achsenabschnitt auf der negativen reellen Achse ab

Syntax

_Dcomplex csqrt(
   _Dcomplex z
);
_Fcomplex csqrt(
   _Fcomplex z
);  // C++ only
_Lcomplex csqrt(
   _Lcomplex z
);  // C++ only
_Fcomplex csqrtf(
   _Fcomplex z
);
_Lcomplex csqrtl(
   _Lcomplex z
);

Parameter

z
Eine komplexe Zahl.

Rückgabewert

Die Quadratwurzel von z. Das Ergebnis ist in der rechten Hälftenebene.

Eingabe SEH-Ausnahme _matherr-Ausnahme
± QNaN, IND none _DOMAIN
-INF none _DOMAIN

Hinweise

Da C++ das Überladen zulässt, können Sie Überladungen von csqrt aufrufen, die _Fcomplex - und _Lcomplex -Werte verwenden und zurückgeben. In einem C-Programm nimmt csqrt immer einen _Dcomplex -Wert an, und gibt auch einen solchen zurück.

Anforderungen

Routine C-Header C++-Header
csqrt, csqrtfcsqrtl <complex.h> <ccomplex>

Weitere Informationen zur Kompatibilität finden Sie unter Kompatibilität.

Weitere Informationen

Alphabetische Funktionsreferenz
catanh, catanhfcatanhl
ctanh, ctanhfctanhl
catan, catanfcatanl
csinh, csinhfcsinhl
casinh, casinhfcasinhl
ccosh, ccoshfccoshl
cacosh, cacoshfcacoshl
cacos, cacosfcacosl
ctan, ctanfctanl
csin, csinfcsinl
casin, casinfcasinl
ccos, ccosfccosl