Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/scipy/stats/_constants.py: 100%
10 statements
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-12 06:31 +0000
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-12 06:31 +0000
1"""
2Statistics-related constants.
4"""
5import numpy as np
8# The smallest representable positive number such that 1.0 + _EPS != 1.0.
9_EPS = np.finfo(float).eps
11# The largest [in magnitude] usable floating value.
12_XMAX = np.finfo(float).max
14# The log of the largest usable floating value; useful for knowing
15# when exp(something) will overflow
16_LOGXMAX = np.log(_XMAX)
18# The smallest [in magnitude] usable floating value.
19_XMIN = np.finfo(float).tiny
21# -special.psi(1)
22_EULER = 0.577215664901532860606512090082402431042
24# special.zeta(3, 1) Apery's constant
25_ZETA3 = 1.202056903159594285399738161511449990765
27# sqrt(pi)
28_SQRT_PI = 1.772453850905516027298167483341145182798
30# sqrt(2/pi)
31_SQRT_2_OVER_PI = 0.7978845608028654
33# log(sqrt(2/pi))
34_LOG_SQRT_2_OVER_PI = -0.22579135264472744