ILE C/C++ Run-Time Library Functions


<math.h>

The <math.h> include file declares all the floating-point math functions:

acos
asin
atan
atan2
Bessel
ceil
cos
cosh
erf
erfc
exp
fabs
floor
fmod
frexp
gamma
hypot
ldexp
log
log10
modf
pow
sin
sinh
sqrt
tan
tanh

Notes:

  1. The Bessel functions are a group of functions named j0, j1, jn, y0, y1, and yn

  2. Floating point numbers are only guaranteed 15 significant digits. This can greatly affect expected results if multiple floating point numbers are used in a calculation.

<math.h> defines the macro HUGE_VAL, which expands to a positive double expression, and possibly to infinity on systems that support infinity.

For all mathematical functions, a domain error occurs when an input argument is outside the range of values that are allowed for that function. In the event of a domain error, errno is set to the value of EDOM.

A range error occurs if the result of the function cannot be represented in a double value. If the magnitude of the result is too large (overflow), the function returns the positive or negative value of the macro HUGE_VAL, and sets errno to ERANGE. If the result is too small (underflow), the function returns zero.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]