Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

Math constants
[Math Library]


Defines

#define FLT_RADIX   2
 FLT_RADIX specifies the radix of the exponent representation.
#define DBL_MAX_EXP   +1024
 DBL_MAX_EXP is the maximum value of base FLT_RADIX in the exponent part of a double.
#define DBL_MIN_EXP   -1021
 DBL_MIN_EXP is the minimum value of base FLT_RADIX in the exponent part of a double.
#define DBL_MAX   1.7976931348623157E+308
 DBL_MAX is the maximum value of a double.
#define DBL_MIN   2.2250738585072014E-308
 DBL_MIN is the minimum value of a double.
#define DBL_MANT_DIG   53
 DBL_MANT_DIG specifies the number of base FLT_RADIX digits in the mantissa part of a double.
#define EDOM   0x01
 EDOM - an input argument is outside the defined domain of the mathematical function.
#define ERANGE   0x03
 ERANGE - the result of the function is too large (overflow) or too small (underflow) to be represented in the available space.
#define DBL_EXP_BIAS   1023
 Exponent bias.
#define DBL_EXP_INFNAN   2047
 The biggest one.
#define HUGE_VAL
 Some constants (Hart & Cheney).
#define M_PI   3.14159265358979323846264338327950288
 Pi, the ratio of a circles circumference to its diameter.
#define M_2PI   6.28318530717958647692528676655900576
 Two times of pi.
#define M_3PI_4   2.35619449019234492884698253745962716
 pi * 3 / 4
#define M_PI_2   1.57079632679489661923132169163975144
 Pi divided by two.
#define M_3PI_8   1.17809724509617246442349126872981358
 pi * 3 / 8
#define M_PI_4   0.78539816339744830961566084581987572
 Pi divided by four.
#define M_PI_8   0.39269908169872415480783042290993786
 Pi divided by eight.
#define M_1_PI   0.31830988618379067153776752674502872
 The reciprocal of pi (1/pi).
#define M_2_PI   0.63661977236758134307553505349005744
 Two times the reciprocal of pi.
#define M_4_PI   1.27323954473516268615107010698011488
 Four times the reciprocal of pi.
#define M_E   2.71828182845904523536028747135266250
 The base of natural logarithms.
#define M_LOG2E   1.44269504088896340735992468100189213
 The logarithm to base 2 of M_E.
#define M_LOG10E   0.43429448190325182765112891891660508
 The logarithm to base 10 of M_E.
#define M_LN2   0.69314718055994530941723212145817657
 The natural logarithm of 2.
#define M_LN10   2.30258509299404568401799145468436421
 The natural logarithm of 10.
#define M_SQRT2   1.41421356237309504880168872420969808
 The square root of two.
#define M_1_SQRT2   0.70710678118654752440084436210484904
 The reciprocal of the square root of two.
#define M_EULER   0.57721566490153286060651209008240243
 The Euler/Mascheroni constant.
#define POLYNOM1(x, a)   ((a)[1]*(x)+(a)[0])
 macros for constructing polynomials
#define POLYNOM2(x, a)   (POLYNOM1((x),(a)+1)*(x)+(a)[0])
 macros for constructing polynomials
#define POLYNOM3(x, a)   (POLYNOM2((x),(a)+1)*(x)+(a)[0])
 macros for constructing polynomials
#define POLYNOM4(x, a)   (POLYNOM3((x),(a)+1)*(x)+(a)[0])
 macros for constructing polynomials
#define POLYNOM5(x, a)   (POLYNOM4((x),(a)+1)*(x)+(a)[0])
 macros for constructing polynomials
#define POLYNOM6(x, a)   (POLYNOM5((x),(a)+1)*(x)+(a)[0])
 macros for constructing polynomials
#define POLYNOM7(x, a)   (POLYNOM6((x),(a)+1)*(x)+(a)[0])
 macros for constructing polynomials
#define POLYNOM8(x, a)   (POLYNOM7((x),(a)+1)*(x)+(a)[0])
 macros for constructing polynomials
#define POLYNOM9(x, a)   (POLYNOM8((x),(a)+1)*(x)+(a)[0])
 macros for constructing polynomials
#define POLYNOM10(x, a)   (POLYNOM9((x),(a)+1)*(x)+(a)[0])
 macros for constructing polynomials
#define POLYNOM11(x, a)   (POLYNOM10((x),(a)+1)*(x)+(a)[0])
 macros for constructing polynomials
#define POLYNOM12(x, a)   (POLYNOM11((x),(a)+1)*(x)+(a)[0])
 macros for constructing polynomials
#define POLYNOM13(x, a)   (POLYNOM12((x),(a)+1)*(x)+(a)[0])
 macros for constructing polynomials
#define M_LN_MAX_D   (M_LN2 * DBL_MAX_EXP)
 The mystery of mathematics.
#define M_LN_MIN_D   (M_LN2 * (DBL_MIN_EXP - 1))
 The mystery of mathematics - 1.
#define DEG_TO_RAD(x)   ((x) * 0.017453292519943295769236907684886)
 From degree to radiant.
#define RAD_TO_DEG(x)   ((x) * 57.295779513082320876798154814105)
 From radiant to degree.
#define errno   (*__errno())
 Integer variable errno, which is set by system calls and some library functions in the event of an error to indicate what went wrong.

Define Documentation

#define DBL_EXP_BIAS   1023
 

#define DBL_EXP_INFNAN   2047
 

#define DBL_MANT_DIG   53
 

#define DBL_MAX   1.7976931348623157E+308
 

#define DBL_MAX_EXP   +1024
 

#define DBL_MIN   2.2250738585072014E-308
 

#define DBL_MIN_EXP   -1021
 

#define DEG_TO_RAD  )     ((x) * 0.017453292519943295769236907684886)
 

#define EDOM   0x01
 

#define ERANGE   0x03
 

#define errno   (*__errno())
 

#define FLT_RADIX   2
 

#define HUGE_VAL
 

Value:

(__extension__                                                                                                                          \
        ((union { unsigned __l __attribute__((__mode__(__DI__))); double __d; })        \
        { __l: 0x7ff0000000000000ULL }).__d)

#define M_1_PI   0.31830988618379067153776752674502872
 

#define M_1_SQRT2   0.70710678118654752440084436210484904
 

#define M_2_PI   0.63661977236758134307553505349005744
 

#define M_2PI   6.28318530717958647692528676655900576
 

#define M_3PI_4   2.35619449019234492884698253745962716
 

#define M_3PI_8   1.17809724509617246442349126872981358
 

#define M_4_PI   1.27323954473516268615107010698011488
 

#define M_E   2.71828182845904523536028747135266250
 

#define M_EULER   0.57721566490153286060651209008240243
 

#define M_LN10   2.30258509299404568401799145468436421
 

#define M_LN2   0.69314718055994530941723212145817657
 

#define M_LN_MAX_D   (M_LN2 * DBL_MAX_EXP)
 

#define M_LN_MIN_D   (M_LN2 * (DBL_MIN_EXP - 1))
 

#define M_LOG10E   0.43429448190325182765112891891660508
 

#define M_LOG2E   1.44269504088896340735992468100189213
 

#define M_PI   3.14159265358979323846264338327950288
 

#define M_PI_2   1.57079632679489661923132169163975144
 

#define M_PI_4   0.78539816339744830961566084581987572
 

#define M_PI_8   0.39269908169872415480783042290993786
 

#define M_SQRT2   1.41421356237309504880168872420969808
 

#define POLYNOM1 x,
 )     ((a)[1]*(x)+(a)[0])
 

#define POLYNOM10 x,
 )     (POLYNOM9((x),(a)+1)*(x)+(a)[0])
 

#define POLYNOM11 x,
 )     (POLYNOM10((x),(a)+1)*(x)+(a)[0])
 

#define POLYNOM12 x,
 )     (POLYNOM11((x),(a)+1)*(x)+(a)[0])
 

#define POLYNOM13 x,
 )     (POLYNOM12((x),(a)+1)*(x)+(a)[0])
 

#define POLYNOM2 x,
 )     (POLYNOM1((x),(a)+1)*(x)+(a)[0])
 

#define POLYNOM3 x,
 )     (POLYNOM2((x),(a)+1)*(x)+(a)[0])
 

#define POLYNOM4 x,
 )     (POLYNOM3((x),(a)+1)*(x)+(a)[0])
 

#define POLYNOM5 x,
 )     (POLYNOM4((x),(a)+1)*(x)+(a)[0])
 

#define POLYNOM6 x,
 )     (POLYNOM5((x),(a)+1)*(x)+(a)[0])
 

#define POLYNOM7 x,
 )     (POLYNOM6((x),(a)+1)*(x)+(a)[0])
 

#define POLYNOM8 x,
 )     (POLYNOM7((x),(a)+1)*(x)+(a)[0])
 

#define POLYNOM9 x,
 )     (POLYNOM8((x),(a)+1)*(x)+(a)[0])
 

#define RAD_TO_DEG  )     ((x) * 57.295779513082320876798154814105)
 

footer

otStudio - Library Reference - (C) 2020-23 Officina Turini, All Rights Reserved
Document built with Doxygen 1.4.0