Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cbrt(3M) — NEXTSTEP 4.0pr1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

math(3M)

SQRT(3M)  —  UNIX Programmer’s Manual

NAME

sqrt, cbrt − square root, cube root

SYNOPSIS

#include <math.h>

double sqrt(double x);

(ALSO AVAILABLE IN BSD)

double cbrt(double x);

DESCRIPTION

Sqrt(x) returns the square root of x.

Cbrt(x) returns the square root of x. Cbrt is not neither ANSI- nor POSIX-compliant. 

ERROR (due to roundoff, etc.)

Sqrt on a machine that conforms to IEEE 754 is correctly rounded in accordance with the rounding mode in force; the error is less than half an ulp in the default mode (round−to−nearest).  An ulp is one Unit in the Last Place carried. 

Cbrt is accurate to within 0.7 ulps.

SEE ALSO

math(3M)

4.3 Berkeley Distribution  —  August 1, 1992

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