bpo-36324: Update comments to include the target hash sums (GH-15110) (GH-15112)
(cherry picked from commit 8183bb8150
)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
This commit is contained in:
parent
1d2b4dba6c
commit
d7d607c000
|
@ -892,6 +892,7 @@ class NormalDist:
|
||||||
q = p - 0.5
|
q = p - 0.5
|
||||||
if fabs(q) <= 0.425:
|
if fabs(q) <= 0.425:
|
||||||
r = 0.180625 - q * q
|
r = 0.180625 - q * q
|
||||||
|
# Hash sum: 55.88319_28806_14901_4439
|
||||||
num = (((((((2.50908_09287_30122_6727e+3 * r +
|
num = (((((((2.50908_09287_30122_6727e+3 * r +
|
||||||
3.34305_75583_58812_8105e+4) * r +
|
3.34305_75583_58812_8105e+4) * r +
|
||||||
6.72657_70927_00870_0853e+4) * r +
|
6.72657_70927_00870_0853e+4) * r +
|
||||||
|
@ -914,6 +915,7 @@ class NormalDist:
|
||||||
r = sqrt(-log(r))
|
r = sqrt(-log(r))
|
||||||
if r <= 5.0:
|
if r <= 5.0:
|
||||||
r = r - 1.6
|
r = r - 1.6
|
||||||
|
# Hash sum: 49.33206_50330_16102_89036
|
||||||
num = (((((((7.74545_01427_83414_07640e-4 * r +
|
num = (((((((7.74545_01427_83414_07640e-4 * r +
|
||||||
2.27238_44989_26918_45833e-2) * r +
|
2.27238_44989_26918_45833e-2) * r +
|
||||||
2.41780_72517_74506_11770e-1) * r +
|
2.41780_72517_74506_11770e-1) * r +
|
||||||
|
@ -932,6 +934,7 @@ class NormalDist:
|
||||||
1.0)
|
1.0)
|
||||||
else:
|
else:
|
||||||
r = r - 5.0
|
r = r - 5.0
|
||||||
|
# Hash sum: 47.52583_31754_92896_71629
|
||||||
num = (((((((2.01033_43992_92288_13265e-7 * r +
|
num = (((((((2.01033_43992_92288_13265e-7 * r +
|
||||||
2.71155_55687_43487_57815e-5) * r +
|
2.71155_55687_43487_57815e-5) * r +
|
||||||
1.24266_09473_88078_43860e-3) * r +
|
1.24266_09473_88078_43860e-3) * r +
|
||||||
|
|
Loading…
Reference in New Issue