HP-UX Floating-Point Guide
118 Chapter 4
HP-UX Math Libraries on HP 9000 Systems
Contents of the HP-UX Math Libraries
Other macros that test the class of a floating-point value are
• isinf, which tests whether a value is an infinity
• isnan, which tests whether a value is a NaN
• isfinite, which tests whether a value is neither infinity nor NaN
• isnormal, which tests whether a value is normalized
See the online man pages for information about these macros.
COSE Common API Functions
The C math library provides several functions that are not specified by
the ANSI C standard but that are required by the COSE Common API
Specification (Spec 1170) and the XPG4.2 specification. (The ISO/ANSI C
committee has also included them in the C9X draft standard.) These
functions are:
acosh(x) Returns inverse hyperbolic cosine of x
asinh(x) Returns inverse hyperbolic sine of x
atanh(x) Returns inverse hyperbolic tangent of
x
cbrt(x) Returns cube root of x
expm1(x) Returns exp(x) - 1
ilogb(x) Returns the integer form of the
binary exponent of the floating-point
value x
log1p(x) Returns log(1 + x)
logb(x) Returns the exponent of x as an
integer-valued double-precision
number
nextafter(x, y) Returns the next representable
neighbor of x in the direction of y
remainder(x, y) Returns exact floating-point
remainder as defined by IEEE
standard