HP-UX Reference (11i v2 04/09) - 3 Library Functions A-M (vol 6)
e
exp10(3M) exp10(3M)
NAME
exp10( ), exp10f( ), exp10l( ), exp10w( ), exp10q( ) - base-10 exponential functions
SYNOPSIS
#include <math.h>
Itanium(R)-based System Only
double exp10(double x);
float exp10f(float x);
long double exp10l(long double x);
extended exp10w(extended x);
quad exp10q(quad x);
DESCRIPTION
Itanium-based System Only
exp10() returns 10
x
.
exp10f() is a float version of exp10(); it takes a
float argument and returns a float result.
exp10l() is a long double version of exp10(); it takes a long double argument and returns a
long double result.
exp10w() is an extended version of exp10(); it takes an extended argument and returns an
extended result.
exp10q() is equivalent to exp10l() on HP-UX systems.
USAGE
To use these functions compile either with the default
-Ae option or with the -Aa
and
-D_HPUX_SOURCE options.
To use
exp10w() or exp10q(), compile also with the -fpwidetypes option.
To use any of these functions, make sure your program includes
<math.h>, and link in the math library
by specifying -lm on the compiler or linker command line.
For more information, see the HP-UX Floating-Point Guide.
RETURN VALUE
exp10(±0) returns 1.
If x is +INFINITY,
exp10() returns +INFINITY.
If x is −INFINITY,
exp10() returns zero.
If x is NaN,
exp10() returns NaN.
exp10() returns infinity in lieu of a value whose magnitude is too large, and raises the overflow and
inexact exceptions.
exp10() raises the underflow and inexact exceptions whenever a result is tiny (essentially denormal or
zero) and thereby suffers loss of accuracy, and may raise those exceptions if the result is merely tiny.
exp10() raises the inexact exception whenever a rounded result does not equal the mathematical result.
ERRORS
No errors are defined.
SEE ALSO
cbrt(3M), exp(3M), exp2(3M), expm1(3M), log10(3M), pow(3M), sqrt(3M), math(5).
STANDARDS CONFORMANCE
These functions are not specified by any standard.
HP-UX 11i Version 2: September 2004 − 1 − Hewlett-Packard Company Section 3−−279