mirror of
https://git.rtems.org/rtems-docs/
synced 2025-05-15 09:06:41 +08:00
94 lines
1.7 KiB
ReStructuredText
94 lines
1.7 KiB
ReStructuredText
.. SPDX-License-Identifier: CC-BY-SA-4.0
|
|
|
|
.. Copyright (C) 1988, 2002 On-Line Applications Research Corporation (OAR)
|
|
|
|
Services Provided by the Math Library (libm)
|
|
############################################
|
|
|
|
Introduction
|
|
============
|
|
|
|
This section lists the routines that provided by the Newlib Math Library
|
|
(libm).
|
|
|
|
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
|