[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    sqrt(3M) manual page Table of Contents

Name

sqrt, cbrt - square root, cube root

Synopsis

cc [ flag ... ] file ... -lm [ library ... ]

#include <math.h>

double sqrt(double x);

double cbrt(double x);

MT-Level

MT-Safe

Description

sqrt(x) returns the square root of x, correctly rounded according to ANSI/IEEE 754-1985.

cbrt(x) returns the cube root of x. cbrt() is accurate to within 0.7 s.

Return Values

For exceptional cases, matherr(3M) tabulates the values to be returned as dictated by various Standards.

See Also

matherr(3M)


Table of Contents