|
Syntax
#include <math.h>
double sqrt(double x);
long double sqrtl(long double x);
Description
Calculates the positive square root.
sqrt calculates the positive square root of the argument x.
sqrtl is the long double version; it takes a long double argument and returns a long double result. Error handling for these functions can be modified through the functions _matherr and _matherrl.
This function can be used with bcd and complex types.
Return Value
On success, sqrt and sqrtl return the value calculated, the square root of x. If x is real and positive, the result is positive. If x is real and negative, the global variable errno is set to
EDOM Domain error
Se ci capisci, questa č la funzione dello standard che calcola la radice quadrata, ti ho messo anche la descrizione. Purtroppo č in inglese, visto che ho il compilatore in inglese, ma non mi pare difficile das capire.
Cmq se hai problemi dillo.
__________________
Xbox GamerTag: Falux || Psn: Falux79 || -=Krynn=-
|