United States-English |
|
|
HP-UX Reference > Eexp10(3M)HP-UX 11i Version 3: February 2007 |
|
NAMEexp10(), exp10f(), exp10l(), exp10w(), exp10q() — base-10 exponential functions DESCRIPTIONIntegrity Server Onlyexp10() 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. USAGETo 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 for HP Integrity servers at the following site: http://www.hp.com/go/fp. RETURN VALUEexp10(±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. |
Printable version | ||
|