math.h, math - mathematical declarations
#include <math.h>
The <math.h> header includes definitions for the following types:
float_t
double_t
If FLT_EVAL_METHOD equals 0, float_t and double_t are float and double, respectively. If FLT_EVAL_METHOD equals 1, they are both double. If FLT_EVAL_METHOD equals 2, they are both be long double. Other values of FLT_EVAL_METHOD are implementation-defined.
The <math.h> header provides the following constants. The values are of type double and are accurate within the precision of the double type.
M_E
M_LOG2E
M_LOG10E
M_LN2
M_LN10
M_PI
M_PI_2
M_PI_4
M_1_PI
M_2_PI
M_2_SQRTPI
M_SQRT2
M_SQRT1_2
The <math.h> header defines the following symbolic constants:
MAXFLOAT
HUGE_VAL
HUGE_VALF
HUGE_VALL
INFINITY
NAN
The following macros are defined for number classification. They represent the mutually-exclusive kinds of floating-point values. They expand to integer constant expressions with distinct values
FP_INFINITE FP_NAN FP_NORMAL FP_SUBNORMAL FP_ZERO
The following optional macros indicate whether the fma() family of functions are fast compared with direct code:
FP_FAST_FMA FP_FAST_FMAF FP_FAST_FMAL
The FP_FAST_FMA macro is defined to indicate that the fma() function generally executes about as fast as, or faster than, a multiply and an add of double operands. The other macros have the equivalent meaning for the float and long double versions.
The following macros expand to integer constant expressions whose values are returned by ilogb(x) if x is zero or NaN, respectively. The value of FP_ILOGB0 is either {INT_MIN} or -{INT_MAX}. The value of FP_ILOGBNAN is either {INT_MAX} or {INT_MIN}.
FP_ILOGB0 FP_ILOGBNAN
The following macros expand to the integer constants 1 and 2, respectively:
MATH_ERRNO MATH_ERREXCEPT
The following macro expands to an expression that has type int and the value MATH_ERREXCEPT:
math_errhandling
The value of the macro math_errhandling is constant for the duration of the program. If a macro definition is suppressed or a program defines an identifier with the name math_errhandling, the behavior is undefined.
The <math.h> header defines he following external variable:
extern int signgam;
The <math.h> header defines the structure and constants used by the matherr(3M) error-handling mechanisms.
See attributes(5) for descriptions of the following attributes:
|
Intro(3), fenv.h(3HEAD), libm(3LIB), limits.h(3HEAD), matherr(3M), attributes(5), standards(5)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |