Where Online Learning is simpler!
The C and C++ Include Header Files
cat -n /usr/include/python3.14/pymath.h
1 // Symbols and macros to supply platform-independent interfaces to mathematical 2 // functions and constants. 3 4 #ifndef Py_PYMATH_H 5 #define Py_PYMATH_H 6 7 /* High precision definition of pi and e (Euler) 8 * The values are taken from libc6's math.h. 9 */ 10 #ifndef Py_MATH_PIl 11 #define Py_MATH_PIl 3.1415926535897932384626433832795029L 12 #endif 13 #ifndef Py_MATH_PI 14 #define Py_MATH_PI 3.14159265358979323846 15 #endif 16 17 #ifndef Py_MATH_El 18 #define Py_MATH_El 2.7182818284590452353602874713526625L 19 #endif 20 21 #ifndef Py_MATH_E 22 #define Py_MATH_E 2.7182818284590452354 23 #endif 24 25 /* Tau (2pi) to 40 digits, taken from tauday.com/tau-digits. */ 26 #ifndef Py_MATH_TAU 27 #define Py_MATH_TAU 6.2831853071795864769252867665590057683943L 28 #endif 29 30 // Py_IS_NAN(X) 31 // Return 1 if float or double arg is a NaN, else 0. 32 // Soft deprecated since Python 3.14, use isnan() instead. 33 #define Py_IS_NAN(X) isnan(X) 34 35 // Py_IS_INFINITY(X) 36 // Return 1 if float or double arg is an infinity, else 0. 37 // Soft deprecated since Python 3.14, use isinf() instead. 38 #define Py_IS_INFINITY(X) isinf(X) 39 40 // Py_IS_FINITE(X) 41 // Return 1 if float or double arg is neither infinite nor NAN, else 0. 42 // Soft deprecated since Python 3.14, use isfinite() instead. 43 #define Py_IS_FINITE(X) isfinite(X) 44 45 // Py_INFINITY: Value that evaluates to a positive double infinity. 46 #ifndef Py_INFINITY 47 # define Py_INFINITY ((double)INFINITY) 48 #endif 49 50 /* Py_HUGE_VAL should always be the same as Py_INFINITY. But historically 51 * this was not reliable and Python did not require IEEE floats and C99 52 * conformity. The macro was soft deprecated in Python 3.14, use Py_INFINITY instead. 53 */ 54 #ifndef Py_HUGE_VAL 55 # define Py_HUGE_VAL HUGE_VAL 56 #endif 57 58 /* Py_NAN: Value that evaluates to a quiet Not-a-Number (NaN). The sign is 59 * undefined and normally not relevant, but e.g. fixed for float("nan"). 60 */ 61 #if !defined(Py_NAN) 62 # define Py_NAN ((double)NAN) 63 #endif 64 65 #endif /* Py_PYMATH_H */