Share via


csqrt, csqrtf, csqrtl

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 Keine _DOMAIN
-INF Keine _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, csqrtf, csqrtl <complex.h> <ccomplex>

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

Siehe auch

Alphabetische Funktionsreferenz
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