Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sqrt(3M) — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

math(3M)



SQRT(3M)            RISC/os Reference Manual             SQRT(3M)



NAME
     cbrt, sqrt, fsqrt - cube root, square root

SYNOPSIS
     #include <math.h>

     double cbrt(x)
     double x;

     double sqrt(x)
     double x;

     float fsqrt(float x)
     float x;

DESCRIPTION
     cbrt(x) returns the cube root of x.

     sqrt(x) and fsqrt(x) returns the square root of x for double
     and float data types respectively.

DIAGNOSTICS
     sqrt returns the default quiet NaN when x is negative indi-
     cating the invalid operation.

ERROR (due to Roundoff etc.)
     cbrt is accurate to within 0.7 ulps.

     Sqrt on MIPS machines conforms to IEEE 754 and 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.

SEE ALSO
     math(3M)

AUTHOR
     W. Kahan
















                        Printed 11/19/92                   Page 1



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