HP-UX Floating-Point Guide

198 Appendix A
The C Math Library
C Math Library Tables
Other Transcendental Functions (cont.)
double log10(double x); Returns base 10 logarithm of x. (Millicode
version available)
double log1p(double x); Returns log(1 + x).
double log2(double x); Returns base 2 logarithm of x.
double logb(double x); Returns the exponent of x as an
integer-valued double-precision number;
formally, the integral part of log
2
|x|.
double pow(double x, double y); Returns x to the power y. (Millicode
version available)
double scalb(double x, double n); Returns x*(2**n), computed efficiently.
double scalbn(double x, int n); Returns x*(2**n), computed efficiently.
double sinh(double x); Returns hyperbolic sine of x.
double tanh(double x); Returns hyperbolic tangent of x.
double y0(double x); Returns Bessel function of x of the second
kind of order 0.
double y1(double x); Returns Bessel function of x of the second
kind of order 1.
double yn(int n, double x); Returns Bessel function of x of the second
kind of order n.
Miscellaneous Mathematical Functions
double cbrt(double x); Returns cube root of x.
double ceil(double x); Returns smallest integral value not less
than x.
double fabs(double x); Returns absolute value of x.
Function What It Does