Go to the first, previous, next, last section, table of contents.


sqrt

Syntax

#include <math.h>

double sqrt(double x);

Description

This function computes the square root of x.

Return Value

The square root of x. If x is negative or a NaN, the return value is NaN and errno is set to EDOM.

Portability

ANSI, POSIX


Go to the first, previous, next, last section, table of contents.