This header is part of the mathematics library.
This section is incomplete
Reason: recheck add more from B.11 Mathematics <math.h>
most efficient floating-point type at least as wide as
float (typedef) [edit]
most efficient floating-point type at least as wide as
double (typedef) [edit]
[edit] Constants
indicates value too big to be representable (infinity) by
float,
double and
long double respectively
(macro constant) [edit]
evaluates to positive infinity or the value guaranteed to overflow a
float (macro constant) [edit]
evaluates to a quiet NaN of type
float (macro constant) [edit]
indicates that the fma function generally executes about as fast as, or faster than, a multiply and an add of double operands
(macro constant) [edit]
evaluates to
ilogb (x) if x is zero or NaN, respectively
(macro constant) [edit]
defines the error handling mechanism used by the common mathematical functions
(macro constant) [edit]
Classification
(C99)(C99)(C99)(C99)(C99)
indicates a floating-point category
(macro constant) [edit]
[edit] Functions
Basic operations
computes absolute value of a floating-point value (
\(\small{|x|}\)|x|)
(function) [edit]
computes remainder of the floating-point division operation
(function) [edit]
computes signed remainder of the floating-point division operation
(function) [edit]
computes signed remainder as well as the three last bits of the division operation
(function) [edit]
computes fused multiply-add operation
(function) [edit]
determines larger of two floating-point values
(function) [edit]
determines smaller of two floating-point values
(function) [edit]
determines positive difference of two floating-point values (
\({\small\max{(0, x-y)} }\)max(0, x-y))
(function) [edit]
returns a NaN (not-a-number)
(function) [edit]
Exponential functions
computes
e raised to the given power (
\({\small e^x}\)ex)
(function) [edit]
computes
2 raised to the given power (
\({\small 2^x}\)2x)
(function) [edit]
computes
e raised to the given power, minus one (
\({\small e^x-1}\)ex-1)
(function) [edit]
computes natural (base-
e) logarithm (
\({\small \ln{x} }\)ln(x))
(function) [edit]
computes common (base-
10) logarithm (
\({\small \log_{10}{x} }\)log10(x))
(function) [edit]
computes base-2 logarithm (
\({\small \log_{2}{x} }\)log2(x))
(function) [edit]
computes natural (base-
e) logarithm of 1 plus the given number (
\({\small \ln{(1+x)} }\)ln(1+x))
(function) [edit]
Power functions
computes a number raised to the given power (
\(\small{x^y}\)xy)
(function) [edit]
computes square root (
\(\small{\sqrt{x} }\)√x)
(function) [edit]
computes cube root (
\(\small{\sqrt[3]{x} }\)3√x)
(function) [edit]
computes square root of the sum of the squares of two given numbers (
\(\scriptsize{\sqrt{x^2+y^2} }\)√x2
+y2
)
(function) [edit]
Trigonometric functions
computes sine (
\({\small\sin{x} }\)sin(x))
(function) [edit]
computes cosine (
\({\small\cos{x} }\)cos(x))
(function) [edit]
computes tangent (
\({\small\tan{x} }\)tan(x))
(function) [edit]
computes arc sine (
\({\small\arcsin{x} }\)arcsin(x))
(function) [edit]
computes arc cosine (
\({\small\arccos{x} }\)arccos(x))
(function) [edit]
computes arc tangent (
\({\small\arctan{x} }\)arctan(x))
(function) [edit]
computes arc tangent, using signs to determine quadrants
(function) [edit]
Hyperbolic functions
computes hyperbolic sine (
\({\small\sinh{x} }\)sinh(x))
(function) [edit]
computes hyperbolic cosine (
\({\small\cosh{x} }\)cosh(x))
(function) [edit]
computes hyperbolic tangent (
\({\small\tanh{x} }\)tanh(x))
(function) [edit]
computes inverse hyperbolic sine (
\({\small\operatorname{arsinh}{x} }\)arsinh(x))
(function) [edit]
computes inverse hyperbolic cosine (
\({\small\operatorname{arcosh}{x} }\)arcosh(x))
(function) [edit]
computes inverse hyperbolic tangent (
\({\small\operatorname{artanh}{x} }\)artanh(x))
(function) [edit]
Error and gamma functions
computes error function
(function) [edit]
computes complementary error function
(function) [edit]
computes gamma function
(function) [edit]
computes natural (base-
e) logarithm of the gamma function
(function) [edit]
Nearest integer floating-point operations
computes smallest integer not less than the given value
(function) [edit]
computes largest integer not greater than the given value
(function) [edit]
rounds to nearest integer not greater in magnitude than the given value
(function) [edit]
(C99)(C99)(C99)(C99)(C99)(C99)(C99)(C99)(C99)
rounds to nearest integer, rounding away from zero in halfway cases
(function) [edit]
rounds to an integer using current rounding mode
(function) [edit]
(C99)(C99)(C99)(C99)(C99)(C99)(C99)(C99)(C99)
rounds to an integer using current rounding mode with
exception if the result differs
(function) [edit]
Floating-point manipulation functions
breaks a number into significand and a power of
2 (function) [edit]
multiplies a number by
2 raised to a power
(function) [edit]
breaks a number into integer and fractional parts
(function) [edit]
(C99)(C99)(C99)(C99)(C99)(C99)
computes efficiently a number times
FLT_RADIX raised to a power
(function) [edit]
extracts exponent of the given number
(function) [edit]
extracts exponent of the given number
(function) [edit]
(C99)(C99)(C99)(C99)(C99)(C99)
determines next representable floating-point value towards the given value
(function) [edit]
produces a value with the magnitude of a given value and the sign of another given value
(function) [edit]
Classification and comparison
classifies the given floating-point value
(function macro) [edit]
checks if the given number has finite value
(function macro) [edit]
checks if the given number is infinite
(function macro) [edit]
checks if the given number is NaN
(function macro) [edit]
checks if the given number is normal
(function macro) [edit]
checks if the given number is negative
(function macro) [edit]
checks if the first floating-point argument is greater than the second
(function macro) [edit]
checks if the first floating-point argument is greater or equal than the second
(function macro) [edit]
checks if the first floating-point argument is less than the second
(function macro) [edit]
checks if the first floating-point argument is less or equal than the second
(function macro) [edit]
checks if the first floating-point argument is less or greater than the second
(function macro) [edit]
checks if two floating-point values are unordered
(function macro) [edit]
[edit] Synopsis
This section is incomplete
Reason:
- add synopses from B.11 Mathematics <math.h>
- place obligatory and optional parts in different sections
#define __STDC_VERSION_MATH_H__ 202311L
// TODO: ...