diff options
author | 2008-12-12 00:10:26 +0000 | |
---|---|---|
committer | 2008-12-12 00:10:26 +0000 | |
commit | 854ac34ef9c3585daf16ef29bb586bb2db3b55ec (patch) | |
tree | 70f0222604c44a6c1584c2fdca81cba5e9f670ae /lib/libm/man/sqrt.3 | |
parent | - last snprintf -> bsnprintf (diff) | |
download | wireguard-openbsd-854ac34ef9c3585daf16ef29bb586bb2db3b55ec.tar.xz wireguard-openbsd-854ac34ef9c3585daf16ef29bb586bb2db3b55ec.zip |
document and mlink long double functions. ok jmc@
Diffstat (limited to 'lib/libm/man/sqrt.3')
-rw-r--r-- | lib/libm/man/sqrt.3 | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/lib/libm/man/sqrt.3 b/lib/libm/man/sqrt.3 index 8b6c63fe3eb..7b6ae4d8a69 100644 --- a/lib/libm/man/sqrt.3 +++ b/lib/libm/man/sqrt.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sqrt.3,v 1.10 2007/05/31 19:19:36 jmc Exp $ +.\" $OpenBSD: sqrt.3,v 1.11 2008/12/12 00:10:26 martynas Exp $ .\" Copyright (c) 1985, 1991 Regents of the University of California. .\" All rights reserved. .\" @@ -28,14 +28,15 @@ .\" .\" from: @(#)sqrt.3 6.4 (Berkeley) 5/6/91 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: December 12 2008 $ .Dt SQRT 3 .Os .Sh NAME .Nm cbrt , .Nm cbrtf , .Nm sqrt , -.Nm sqrtf +.Nm sqrtf , +.Nm sqrtl .Nd cube root and square root functions .Sh SYNOPSIS .Fd #include <math.h> @@ -47,6 +48,8 @@ .Fn sqrt "double x" .Ft float .Fn sqrtf "float x" +.Ft long double +.Fn sqrtl "long double x" .Sh DESCRIPTION The .Fn cbrt @@ -65,11 +68,16 @@ The .Fn sqrtf function is a single precision version of .Fn sqrt . +The +.Fn sqrtl +function is an extended precision version of +.Fn sqrt . .Sh RETURN VALUES If x is negative, -.Fn sqrt "x" -and +.Fn sqrt "x" , .Fn sqrtf "x" +and +.Fn sqrtl "x" set the global variable .Va errno to EDOM. |