sqrt


Calculates the square root

[Classification]

Mathematical library

[Syntax]

#include <math.h>

double __far sqrt(double x);

[Return value]

Returns the square root of x.

sqrt returns a Not-a-Number (NaN) and sets macro EDOM to global variable errno if x is a negative number.

[Description]

This function calculates the square root of x.