SQRT(3M) — MATHEMATICAL LIBRARY
NAME
sqrt, cbrt − square root, cube root
SYNOPSIS
#include <math.h>
double sqrt(double x);
double cbrt(double x);
DESCRIPTION
sqrt(x) returns the square root of x, correctly rounded according to ANSI/IEEE 754-1985. In addition, sqrt() may also set errno and call matherr(3M).
cbrt(x) returns the cube root of x. cbrt() is accurate to within 0.7 ulps.
RETURN VALUES
For exceptional cases, matherr(3M) tabulates the values to be returned as dictated by various Standards.
SEE ALSO
Sun Release 4.1 — Last change: 22 Jul 1994