summaryrefslogtreecommitdiffstats
path: root/Lib/statistics.py
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2019-08-04 18:52:04 (GMT)
committerGitHub <noreply@github.com>2019-08-04 18:52:04 (GMT)
commit8183bb8150edcac6a7525bfb7708d08837ecb095 (patch)
tree951045e615d44b0d443893a248ae758e754047c5 /Lib/statistics.py
parent86f1a18abfee5939452f468d80de998918e2afd2 (diff)
downloadcpython-8183bb8150edcac6a7525bfb7708d08837ecb095.zip
cpython-8183bb8150edcac6a7525bfb7708d08837ecb095.tar.gz
cpython-8183bb8150edcac6a7525bfb7708d08837ecb095.tar.bz2
bpo-36324: Update comments to include the target hash sums (GH-15110)
Diffstat (limited to 'Lib/statistics.py')
-rw-r--r--Lib/statistics.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/statistics.py b/Lib/statistics.py
index 8a6be7c..77291dd6 100644
--- a/Lib/statistics.py
+++ b/Lib/statistics.py
@@ -892,6 +892,7 @@ class NormalDist:
q = p - 0.5
if fabs(q) <= 0.425:
r = 0.180625 - q * q
+ # Hash sum: 55.88319_28806_14901_4439
num = (((((((2.50908_09287_30122_6727e+3 * r +
3.34305_75583_58812_8105e+4) * r +
6.72657_70927_00870_0853e+4) * r +
@@ -914,6 +915,7 @@ class NormalDist:
r = sqrt(-log(r))
if r <= 5.0:
r = r - 1.6
+ # Hash sum: 49.33206_50330_16102_89036
num = (((((((7.74545_01427_83414_07640e-4 * r +
2.27238_44989_26918_45833e-2) * r +
2.41780_72517_74506_11770e-1) * r +
@@ -932,6 +934,7 @@ class NormalDist:
1.0)
else:
r = r - 5.0
+ # Hash sum: 47.52583_31754_92896_71629
num = (((((((2.01033_43992_92288_13265e-7 * r +
2.71155_55687_43487_57815e-5) * r +
1.24266_09473_88078_43860e-3) * r +