From 04a96fd464445c4f3825992bb50b1c94a10531e7 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 9 Jun 1998 21:20:06 +0000 Subject: (Exponents and Logarithms): Describe pow10/exp10. --- manual/math.texi | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'manual') 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 -- cgit v1.1