mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 11:43:34 +08:00
(Exponents and Logarithms): Describe pow10/exp10.
This commit is contained in:
parent
4bbac92a0a
commit
04a96fd464
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user