4.4BSD/usr/share/man/cat3/sqrt.0

Compare this file to the similar file:
Show the results in this format:

SQRT(3)                     BSD Programmer's Manual                    SQRT(3)

NNAAMMEE
     ccbbrrtt, ssqqrrtt - cube root and square root functions

SSYYNNOOPPSSIISS
     ##iinncclluuddee <<mmaatthh..hh>>

     _d_o_u_b_l_e
     ccbbrrtt(_d_o_u_b_l_e _x);

     _d_o_u_b_l_e
     ssqqrrtt(_d_o_u_b_l_e _x);

DDEESSCCRRIIPPTTIIOONN
     The ccbbrrtt() function computes the cube root of _x.

     The ssqqrrtt() computes the non-negative square root of x.

RREETTUURRNN VVAALLUUEESS
     The ccbbrrtt() function returns the requested cube root.  The ssqqrrtt() function
     returns the requested square root unless an error occurs.  On the VAX or
     Tahoe processor an attempt to take the ssqqrrtt() of negative _x causes an er-
     ror; in this event, the global variable _e_r_r_n_o is set to EDOM and a re-
     served operand fault is generated.

EERRRROORR ((dduuee ttoo RRoouunnddooffff eettcc..))
     The ccbbrrtt() function is accurate to within 0.7 _u_l_p_s.

     The ssqqrrtt() function on a VAX is accurate to within 0.501 _u_l_p_s. 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 _u_l_p in the de-
     fault mode (round-to-nearest).  An _u_l_p is one _Unit in the _Last _Place car-
     ried.

SSEEEE AALLSSOO
     math(3),  infnan(3)

SSTTAANNDDAARRDDSS
     The ssqqrrtt function conforms to ANSI C X3.159-1989 (``ANSI C '').

HHIISSTTOORRYY
     The ccbbrrtt function appeared in 4.3BSD.

4.4BSD                           June 4, 1993                                1