Codebase list golang-github-go-kit-kit / 14dac5d
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
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
6363 z = math.Sqrt(-math.Log((1.0 - y) / 2.0))
6464 x = (((c[3]*z+c[2])*z+c[1])*z + c[0]) / ((d[1]*z+d[0])*z + 1.0)
6565 }
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))
6868 }
6969
7070 return x