<math.h>
The <math.h
> include file declares
all the floating-point math functions:
Note:
- The Bessel functions are a group of functions named
j0
,j1
,jn
,y0
,y1
, andyn
. - 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.