7.12.7.5 The sqrt functions

Synopsis

1

#include <math.h>
double sqrt(double x);
float sqrtf(float x);
long double sqrtl(long double x);

Description

2

The sqrt functions compute the nonnegative square root of x. A domain error occurs if the argument is less than zero.

Returns

3

The sqrt functions return (sqrt)(x).