(Exponents and Logarithms): Describe pow10/exp10.

This commit is contained in:
Ulrich Drepper 1998-06-09 21:20:06 +00:00
parent 4bbac92a0a
commit 04a96fd464
1 changed files with 19 additions and 12 deletions

View File

@ -1009,18 +1009,6 @@ 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 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))}.
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})
@ -1033,6 +1021,25 @@ 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 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
@comment math.h
@comment ISO