HP-UX Floating-Point Guide
202 Appendix A
The C Math Library
C Math Library Tables
float Versions of Math Functions (cont.)
float sinhf(float x); Returns hyperbolic sine of x.
float sinf(float x); Returns sine of x (x in radians). (Millicode
version available)
float sqrtf(float x); Returns nonnegative square root of x.
float tandf(float x); Returns tangent of x (x in degrees).
float tanf(float x); Returns tangent of x (x in radians).
(Millicode version available)
float tanhf(float x); Returns hyperbolic sine of x.
Manipulation Functions
double copysign(double x, double y); Returns x with its sign changed to y’s.
float copysignf(float x, float y); Returns x with its sign changed to y’s.
double nan(const char *tagp); Returns a quiet NaN.
double nextafter(double x,
double y);
Returns the next representable neighbor
of x in the direction of y.
float nextafterf(float x,
float y);
Returns the next representable neighbor
of x in the direction of y.
Floating-Point Classification Macros and Function
int isfinite(floating-type x); Returns a nonzero value just when
−infinity < x < +infinity; returns 0
otherwise (when |x| = infinity or x is
NaN).
int fpclassify(floating-type x); Returns the IEEE class of x.
int isinf(floating-type x); Returns a nonzero integer if x is an
infinity. Otherwise returns zero.
int isnan(floating-type x); Returns a nonzero integer if x is NaN
(not-a-number). Otherwise returns zero.
Function What It Does