37 lines
813 B
Groff
37 lines
813 B
Groff
'\"macro stdmacro
|
|
.if n .pH sqrt 5/8/95
|
|
.nr X
|
|
.if \nX=0 .ds x} sqrt 2 "Essential Utilities" "\&"
|
|
.if \nX=1 .ds x} sqrt 2 "Essential Utilities"
|
|
.if \nX=2 .ds x} sqrt 2 "" "\&"
|
|
.if \nX=3 .ds x} sqrt "" "" "\&"
|
|
.TH \*(x}
|
|
.SH NAME
|
|
_sqrt_s, _sqrt_d \- single and double precision sqrt function.
|
|
.SH SYNOPSIS
|
|
.B #include <unistd.h>
|
|
.br
|
|
.B float _sqrt_s (float v)
|
|
.br
|
|
.B double _sqrt_d (double v)
|
|
.br
|
|
.SH DESCRIPTION
|
|
These single/double precision routines listed above are available in
|
|
libc. These should not be confused with the standard math library
|
|
square root functions [see
|
|
.B sqrt
|
|
(3M)].
|
|
.PP
|
|
If
|
|
.I v
|
|
is a negative, the
|
|
.I sqrt
|
|
functions will return a NaN, but won't set the
|
|
.I errno
|
|
value. This is done since the ABI doesn't specify a errno value
|
|
if the
|
|
.I v
|
|
is negative.
|
|
.SH SEE ALSO
|
|
.B sqrt(3M), errno(3C)
|