HPlogo HP-UX Reference > E

exp10(3M)

HP-UX 11i Version 2: December 2007 Update
» 

Technical documentation

 » Table of Contents

 » Index

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 10x.

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.

STANDARDS CONFORMANCE

These functions are not specified by any standard.