|
sqrtfunction
<cmath>
double sqrt ( double x ); float sqrt ( float x ); long double sqrt ( long double x ); Compute square root Returns the square root of x.In C++, this function is overloaded in <complex> and <valarray> (see complex sqrt and valarray sqrt). Parameters
Return ValueSquare root of x.PortabilityIn C, only the double version of this function exists with this name.Example
Output:
See also
|