22. Services Provided by the Math Library (libm) — RTEMS POSIX API Guide 5.4-rc2 (21st August 2026) documentation

# 22. Services Provided by the Math Library (libm)

## 22.1. Introduction

This section lists the routines that provided by the Newlib Math Library (libm).

## 22.2. Standard Math Functions (math.h)

- `acos` - Arccosine

- `acosh` - Inverse hyperbolic cosine

- `asin` - Arcsine

- `asinh` - Inverse hyperbolic sine

- `atan` - Arctangent

- `atan2` - Arctangent of y/x

- `atanh` - Inverse hyperbolic tangent

- `jN` - Bessel functions (jN and yN)

- `cbrt` - Cube root

- `copysign` - Sign of Y and magnitude of X

- `cosh` - Hyperbolic cosine

- `erf` - Error function (erf and erfc)

- `exp` - Exponential

- `expm1` - Exponential of x and - 1

- `fabs` - Absolute value (magnitude)

- `floor` - Floor and ceiling (floor and ceil)

- `fmod` - Floating-point remainder (modulo)

- `frexp` - Split floating-point number

- `gamma` - Logarithmic gamma function

- `hypot` - Distance from origin

- `ilogb` - Get exponent

- `infinity` - Floating infinity

- `isnan` - Check type of number

- `ldexp` - Load exponent

- `log` - Natural logarithms

- `log10` - Base 10 logarithms

- `log1p` - Log of 1 + X

- `matherr` - Modifiable math error handler

- `modf` - Split fractional and integer parts

- `nan` - Floating Not a Number

- `nextafter` - Get next representable number

- `pow` - X to the power Y

- `remainder` - remainder of X divided by Y

- `scalbn` - scalbn

- `sin` - Sine or cosine (sin and cos)

- `sinh` - Hyperbolic sine

- `sqrt` - Positive square root

- `tan` - Tangent

- `tanh` - Hyperbolic tangent