The sqrt function

Name

sqrt -- 

Synopsis

#include <math.h>

double sqrt (double x );

Description

The sqrt function computes the non-negative square root of x. A domain error occurs if the argument is negative.

Returns

The sqrt function returns the value of the square root.

Implementation Notes

The sqrt function returns 0.0 for arguments <= 0.0.