SQRT(3M) 1986 SQRT(3M) NNAAMMEE cbrt, sqrt - cube root, square root SSYYNNOOPPSSIISS ##iinncclluuddee <<mmaatthh..hh>> ddoouubbllee ccbbrrtt((xx)) ddoouubbllee xx;; ddoouubbllee ssqqrrtt((xx)) ddoouubbllee xx;; DDEESSCCRRIIPPTTIIOONN Cbrt(x) returns the cube root of x. Sqrt(x) returns the square root of x. DDIIAAGGNNOOSSTTIICCSS On a VAX, sqrt(negative) returns the reserved operand and sets _e_r_r_n_o to EDOM . EERRRROORR ((dduuee ttoo RRoouunnddooffff eettcc..)) Cbrt is accurate to within 0.7 _u_l_ps. Sqrt on a VAX is accurate to within 0.501 _u_l_ps. 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 default mode (round-to-nearest). An _u_l_p is one _Unit in the _Last _Place carried. SSEEEE AALLSSOO math(3M), infnan(3M) AAUUTTHHOORR W. Kahan Printed 7/27/90 May 1