### C Library Functions: Mathematical

Function | Header File | Description
abs | stdlib.h | Calculates the absolute value of an integer.
_cabs | math.h | Calculates the absolute value of a complex number.
ceil ceilf ceill | math.h | Calculates the double value representing the smallest integer that is greater than or equal to a number.
div | stdlib.h | Calculates the quotient and remainder of an integer.
erf | math.h | Calculates the error function.
erfc | math.h | Calculates the error function for large numbers.
exp expf expl | math.h | Calculates an exponential function.
fabs fabsf fabsl | math.h | Calculates the absolute value of a floating-point number.
floor floorf floorl | math.h | Calculates the double value representing the largest integer that is less than or equal to a number.
fmod fmodf fmodl | math.h | Calculates the floating point remainder of one argument divided by another.
frexp frexpf frexpl | math.h | Separates a floating-point number into its mantissa and exponent.
_fsqrt | math.h | Calculates the square root of a number.
_fyl2x | builtin.h | Calculates the base-2 logarithm of x and multiplies it by y.
_fyl2xp1 | builtin.h | Calculates the base-2 logarithm of x+1 and multiplies it by y.
_f2xm1 | builtin.h | Calculates ((2**x)-1).
gamma | math.h | Calculates the gamma function.
hypot | math.h | Calculates the hypotenuse.
labs | stdlib.h | Calculates the absolute value of a long integer.
ldexp ldexpf ldexpl | math.h | Multiplies a floating-point number by an integral power of 2.
ldiv | stdlib.h | Calculates the quotient and remainder of a long integer.
llabs | stdlib.h | Calculates the absolute value of a long long integer.
lldiv | stdlib.h | Calculates the quotient and remainder of a long long integer.
log logf logl | math.h | Calculates the natural logarithm.
log10 log10f log10l | math.h | Calculates base 10 logarithm.
max | stdlib.h | Compares two values and returns the larger of the two.
min | stdlib.h | Compares two values and returns the smaller of the two.
modf modff modfl | math.h | Calculates the signed fractional portion of the argument.
pow powf powl | math.h | Calculates the value of an argument raised to a power.
sqrt sqrtf sqrtl | math.h | Calculates the square root of a number.

Trigonometric Functions

Function | Header File | Description
acos acosf acosl | math.h | Calculates the arccosine.
asin asinf asinl | math.h | Calculates the arc sine.
atan atanf atanl | math.h | Calculates the arctangent.
atan2 atanf atanl | math.h | Calculates the arctangent.
cos cosf cosl | math.h | Calculates the cosine.
cosh coshf coshl | math.h | Calculates the hyperbolic cosine.
_facos | builtin.h math.h | Calculates the arccosine.
_fasin | builtin.h math.h | Calculates the arcsine.
_fcos | builtin.h math.h | Calculates the cosine.
_fcossin | builtin.h math.h | Calculates the cosine and stores the sine.
_fpatan | builtin.h math.h | Calculates the arctangent.
_fptan | builtin.h math.h | Calculates the tangent.
_fsin | builtin.h math.h | Calculates the sine.
_fsincos | builtin.h math.h | Calculates the sine and stores the cosine.
sin sinf sinl | math.h | Calculates the sine.
sinh sinhf sinhl | math.h | Calculates the hyperbolic sine.
tan tanf tanl | math.h | Calculates the tangent.
tanh tanhf tanhl | math.h | Calculates the hyperbolic tangent.

Bit Rotation

Function | Header File | Description
_crotl | stdlib.h builtin.h | Rotates a character value to the left.
_crotr | stdlib.h builtin.h | Rotates a character value to the right by a specified number of bits.
_llrotl | stdlib.h builtin.h | Rotates a long long integer value to the left by a specified number of bits.
_llrotr | stdlib.h builtin.h | Rotates a long long integer value to the right by a specified number of bits.
_lrotl | stdlib.h builtin.h | Rotates a long integer value to the left by a specified number of bits.
_lrotr | stdlib.h builtin.h | Rotates a long integer value to the right by a specified number of bits.
_rotl | stdlib.h builtin.h | Rotates an integer value to the left by a specified number of bits.
_rotr | stdlib.h builtin.h | Rotates an integer value to the right by a specified number of bits.
_srotl | stdlib.h builtin.h | Rotates a short integer value to the left by a specified number of bits.
_srotr | stdlib.h builtin.h | Rotates a short integer value to the right by a specified number of bits.

Bessel Functions

Function | Header File | Description
j0 | math.h | 0 order differential equation of the first kind.
j1 | math.h | 1st order differential equation of the first kind.
jn | math.h | nth order differential equation of the first kind.
y0 | math.h | 0 order differential equation of the second kind.
y1 | math.h | 1st order differential equation of the second kind.
yn | math.h | nth order differential equation of the second kind.

Alphabetical Listing of IBM C and C++ Compilers Functions and Macros