 |
Index for Section 3 |
|
 |
Alphabetical listing for S |
|
sqrt(3)
NAME
sqrt, cbrt - Square and cube root functions
LIBRARY
Math Library (libm.a)
SYNOPSIS
#include <math.h>
double sqrt (double x);
float sqrtf (float x);
double cbrt (double y);
float cbrtf (float y);
DESCRIPTION
sqrt() and sqrtf() compute the rounded square root of x. For platforms
supporting a signed zero, sqrt (-0) = 0.
cbrt() and cbrtf() return the rounded cube root of y.
_____________________________________________________________
Function Exceptional Argument Routine Behavior
_____________________________________________________________
sqrt(), sqrtf() x < 0 invalid argument
_____________________________________________________________