*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> sqrt (3)              
Title
Content
Arch
Section
 

SQRT(3)

Contents


NAME    [Toc]    [Back]

     cbrt, cbrtf, sqrt, sqrtf -- cube root and square root functions

LIBRARY    [Toc]    [Back]

     Math Library (libm, -lm)

SYNOPSIS    [Toc]    [Back]

     #include <math.h>

     double
     cbrt(double x);

     float
     cbrtf(float x);

     double
     sqrt(double x);

     float
     sqrtf(float x);

DESCRIPTION    [Toc]    [Back]

     The cbrt() and the cbrtf() functions compute the cube root of x.

     The sqrt() and the sqrtf() functions compute the non-negative square root
     of x.

RETURN VALUES    [Toc]    [Back]

     The cbrt() and the cbrtf() functions return the requested cube root.  The
     sqrt() and the sqrtf() functions return the requested square root unless
     an error occurs.  On the VAX or Tahoe processor an attempt to take the
     sqrt() of negative x causes an error; in this event, the global variable
     errno is set to EDOM and a reserved operand fault is generated.

ERROR (due to Roundoff etc.)    [Toc]    [Back]

     The cbrt() function is accurate to within 0.7 ulps.

     The sqrt() function on a VAX is accurate to within 0.501 ulps.  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.

SEE ALSO    [Toc]    [Back]

      
      
     math(3)

STANDARDS    [Toc]    [Back]

     The sqrt() function conforms to ISO/IEC 9899:1990 (``ISO C89'').

HISTORY    [Toc]    [Back]

     The cbrt() function appeared in 4.3BSD.


FreeBSD 5.2.1			  May 6, 1991			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
cbrt Tru64 Square and cube root functions
sqrt Tru64 Square and cube root functions
sqrt IRIX cube root, square root
sqrt IRIX cube root, square root
sqrt IRIX cube root, square root
cplxexp IRIX exponential, logarithm, power, square root functions for the C++ complex library
cbrt Linux cube root function
sqrt Linux square root function
dlabad IRIX take as input the values computed by SLAMCH for underflow and overflow, and returns the square root of each of
slabad IRIX take as input the values computed by SLAMCH for underflow and overflow, and returns the square root of each of
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service