aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-06-09 21:20:06 +0000
committerUlrich Drepper <drepper@redhat.com>1998-06-09 21:20:06 +0000
commit04a96fd464445c4f3825992bb50b1c94a10531e7 (patch)
tree3a6eed94fd27bf22c1b2f146a24d2c16e5711e61 /manual
parent4bbac92a0a58c00a8c8c99241cde3d4a3ddb3f5c (diff)
downloadglibc-04a96fd464445c4f3825992bb50b1c94a10531e7.zip
glibc-04a96fd464445c4f3825992bb50b1c94a10531e7.tar.gz
glibc-04a96fd464445c4f3825992bb50b1c94a10531e7.tar.bz2
(Exponents and Logarithms): Describe pow10/exp10.
Diffstat (limited to 'manual')
-rw-r--r--manual/math.texi27
1 files changed, 17 insertions, 10 deletions
diff --git a/manual/math.texi b/manual/math.texi
index c184192..1991bfb 100644
--- a/manual/math.texi
+++ b/manual/math.texi
@@ -1011,26 +1011,33 @@ magnitude of the result is too large to be representable.
@comment math.h
@comment ISO
-@deftypefun double exp10 (double @var{x})
-@deftypefunx float exp10f (float @var{x})
-@deftypefunx {long double} exp10l (long double @var{x})
-These functions return the value of @code{10} raised to the power @var{x}.
-Mathematically, @code{exp10 (x)} is the same as @code{exp (x * log (10))}.
+@deftypefun double exp2 (double @var{x})
+@deftypefunx float exp2f (float @var{x})
+@deftypefunx {long double} exp2l (long double @var{x})
+These functions return the value of @code{2} raised to the power @var{x}.
+Mathematically, @code{exp2 (x)} is the same as @code{exp (x * log (2))}.
The function fails, and sets @code{errno} to @code{ERANGE}, if the
magnitude of the result is too large to be representable.
@end deftypefun
@comment math.h
-@comment ISO
-@deftypefun double exp2 (double @var{x})
-@deftypefunx float exp2f (float @var{x})
-@deftypefunx {long double} exp2l (long double @var{x})
-These functions return the value of @code{2} raised to the power @var{x}.
+@comment GNU
+@deftypefun double exp10 (double @var{x})
+@deftypefunx float exp10f (float @var{x})
+@deftypefunx {long double} exp10l (long double @var{x})
+@deftypefunx double pow10 (double @var{x})
+@deftypefunx float pow10f (float @var{x})
+@deftypefunx {long double} pow10l (long double @var{x})
+These functions return the value of @code{10} raised to the power @var{x}.
Mathematically, @code{exp2 (x)} is the same as @code{exp (x * log (2))}.
The function fails, and sets @code{errno} to @code{ERANGE}, if the
magnitude of the result is too large to be representable.
+
+All these functions are GNU extensions. The name @code{pow10} is used
+in some old code but the name @code{exp10} clearly is more in the sense
+of the ISO library designers and therefore should probably be preferred.
@end deftypefun