Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sqrt(3M) — SunOS 5.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

matherr(3M)

sqrt(3M)

NAME

sqrt, cbrt − square root, cube root

SYNOPSIS

#include <math.h>

double sqrt(double x);

double cbrt(double x);

MT-LEVEL

MT-Safe with exceptions

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 ulps. 

RETURN VALUES

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

SEE ALSO

matherr(3M)

NOTES

These functions are MT-Safe when compiled with the shared library, libm.so, but are unsafe if compiled with the archived library libm.a. 

SunOS 5.2  —  Last change: 5 Mar 1993

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026