(C) 1998 AROS - The Amiga Research OS


NAME
#include <math.h>

double sqrt ()

SYNOPSIS
double val

FUNCTION
Compute the square root of val.

INPUTS
val
Must be >= 0.0.

RESULT
The square root of val.

EXAMPLE
double s;
double val;

// calculate
s = sqrt (val);

if (s*s == val)
    printf ("%g is the square root of %g\n", s, val);
else
    printf ("Error: sqrt(%g) returned %g\n", val, s);
SEE ALSO
pow()

NOTES

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
20.05.1997 aros
Added a couple of floating point math functions from fdlibm by Sun.