HP C/iX Library Reference Manual (30026-90004)
Chapter 4 39
HP C/iX Library Header Descriptions
Header File Contents
The following identifiers are declared in this header file:
Table 4-6. Math Library Functions <math.h>
Name Type Description
abs() function Computes the absolute value of an integer.
acos() function Returns the arc cosine in radians of an input value.
asin() function Returns the arc sine of an input value.
atan2() function Returns the arc tangent of the input Cartisian coordinates.
atan() function Returns the arc tangent of the input value.
ceil() function Computes the ceiling function that finds the smallest integer that
is greater than or equal to a specified real number.
cos() function Returns a cosine value for an input angle.
cosh() function Computes the hyperbolic cosine of an angle.
DOMAIN macro An integral constant returned through errno when the result is
outside the domain of the returned data type.
erf()
a
function Returns the statistical error function of the input value.
erfc()
b
function Returns the complementary error function of the input value.
errno global
variable
A global external int variable that provides additional
information regarding errors encountered in library routines.
exp() function Returns a base number raised to the power of the argument.
fabs() function Computes the absolute value of a floating-point number.
floor() function Computes the largest integer value less than or equal to its
argument.
fmod() function Returns the floating-point remainder of a division operation.
frexp() function Breaks a floating-point number into a normalized fraction and an
integral power of 2.
gamma() function Returns the log gamma of the input value.
hypot() function Returns the length of the hypotenuse of a right triangle.
HUGE macro The identifier for the maximum value of a single-precision
floating-point number. Provided for System V compatibility.
HUGE_VAL macro The ANSI C identifier for the maximum value (+ infinity) of a
single-precision floating-point number. Returned from math
library functions when the result is too large.
j0() function Returns Bessel functions of
x
of the first kind of order zero.
j1()
c
function Returns Bessel functions of
x
of the first kind of order one.