diff options
Diffstat (limited to 'lib/libm/man/sqrt.3')
-rw-r--r-- | lib/libm/man/sqrt.3 | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/libm/man/sqrt.3 b/lib/libm/man/sqrt.3 index 95ee61327a8..8bd7ac029b2 100644 --- a/lib/libm/man/sqrt.3 +++ b/lib/libm/man/sqrt.3 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)sqrt.3 6.4 (Berkeley) 5/6/91 -.\" $Id: sqrt.3,v 1.2 1995/10/28 00:57:01 deraadt Exp $ +.\" $Id: sqrt.3,v 1.3 1997/04/05 04:18:50 tholo Exp $ .\" .Dd May 6, 1991 .Dt SQRT 3 @@ -65,11 +65,15 @@ and functions compute the non-negative square root of x. .Sh RETURN VALUES -Exceptional conditions are handled by -.Xr matherr 3 . +If x is negative, +.Fn sqrt "x" +and +.Fn sqrtf "x" +sets the global variable +.Va errno +to EDOM. .Sh SEE ALSO -.Xr math 3 , -.Xr matherr 3 +.Xr math 3 .Sh HISTORY The .Fn cbrt |