metrics/teststat: replace `x = x <op> y` with `x <op>= y` (#769)
Iskander (Alex) Sharipov authored 5 years ago
Peter Bourgon committed 5 years ago
63 | 63 | z = math.Sqrt(-math.Log((1.0 - y) / 2.0)) |
64 | 64 | x = (((c[3]*z+c[2])*z+c[1])*z + c[0]) / ((d[1]*z+d[0])*z + 1.0) |
65 | 65 | } |
66 | x = x - (math.Erf(x)-y)/(2.0/math.SqrtPi*math.Exp(-x*x)) | |
67 | x = x - (math.Erf(x)-y)/(2.0/math.SqrtPi*math.Exp(-x*x)) | |
66 | x -= (math.Erf(x) - y) / (2.0 / math.SqrtPi * math.Exp(-x*x)) | |
67 | x -= (math.Erf(x) - y) / (2.0 / math.SqrtPi * math.Exp(-x*x)) | |
68 | 68 | } |
69 | 69 | |
70 | 70 | return x |