SYNOPSIS
#include <math.h>
DESCRIPTION
These functions constitute the C math library, libm.
The link editor searches this library under the
Please consult <fenv.h>, <complex.h>, and <tgmath.h> for other math components.
LIST OF FUNCTIONS
Algebraic Functions
Name | Description |
cube root | |
fused multiply-add | |
Euclidean distance | |
square root |
Classification Macros
Name | Description |
classify a floating-point value | |
determine whether a value is finite | |
determine whether a value is infinite | |
determine whether a value is NaN | |
determine whether a value is normalized |
Exponent Manipulation Functions
Name | Description |
extract exponent and mantissa | |
extract exponent | |
multiply by power of 2 | |
extract exponent | |
adjust exponent | |
adjust exponent |
Extremum- and Sign-Related Functions
Name | Description |
copy sign bit | |
absolute value | |
positive difference | |
maximum function | |
minimum function | |
extract sign bit |
Not a Number Functions
Name | Description |
generate a quiet NaN |
Residue and Rounding Functions
Name | Description |
integer no less than | |
integer no greater than | |
positive remainder | |
round to integer in fixed-point format | |
round to nearest integer in fixed-point format | |
round to integer in fixed-point format | |
round to nearest integer in fixed-point format | |
extract integer and fractional parts | |
round to integer (silent) | |
next representable value | |
next representable value | |
remainder | |
remainder with partial quotient | |
round to integer | |
round to nearest integer | |
integer no greater in magnitude than |
The
Silent Order Predicates
Name | Description |
greater than relation | |
greater than or equal to relation | |
less than relation | |
less than or equal to relation | |
less than or greater than relation | |
unordered relation |
Transcendental Functions
Name | Description |
inverse trigonometric function | |
inverse hyperbolic function | |
inverse trigonometric function | |
inverse hyperbolic function | |
inverse trigonometric function | |
inverse hyperbolic function | |
inverse trigonometric function | |
trigonometric function | |
hyperbolic function | |
error function | |
complementary error function | |
base e exponential | |
base 2 exponential | |
exp(x)-1 | |
bessel function | |
bessel function | |
bessel function | |
log gamma function | |
natural logarithm | |
logarithm to base 2 | |
logarithm to base 10 | |
log(1+x) | |
trigonometric function | |
hyperbolic function | |
trigonometric function | |
hyperbolic function | |
bessel function | |
bessel function | |
bessel function |
The routines in this section might not produce a result that is correctly rounded, so reproducible results cannot be guaranteed across platforms. For most of these functions, however, incorrect rounding occurs rarely, and then only in very-close-to-halfway cases.
NOTES
The math library can handle floating point exceptions in different ways depending upon the level of standards conformance that the user desires. The math library currently supports the following personality modes:
__XOPEN__ __POSIX__ __SVID__ __IEEE__
For details on these personality modes, see the
By default, floating-point exeptions are masked in processor hardware.
It enable/disable/query exceptions, use
CONFORMANCE
ANSI/ISO 9899:1999 'ISO C99'.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
PTC MKS Toolkit 10.4 Documentation Build 39.