sqrt


Square root function

[Classification]

Mathematical library

[Syntax]

#include <math.h>

double sqrt(double x);

[Return value]

Returns the positive square root of x.

sqrtf returns a Not a Nuber(NaN) and sets macro EDOM to global variable errno if x is a negative real number.

[Description]

This function calculates the square root of x.