From: Forrest Voight Date: Tue, 24 Jan 2012 22:49:23 +0000 (-0500) Subject: fixed ierf X-Git-Tag: 0.8.3~60 X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=a6ce02f2bca577074cf275e689fad9ad53f5b0c0;p=p2pool.git fixed ierf --- diff --git a/p2pool/util/math.py b/p2pool/util/math.py index b87e963..6b152d9 100644 --- a/p2pool/util/math.py +++ b/p2pool/util/math.py @@ -104,7 +104,7 @@ def find_root(y_over_dy, start, steps=10, bounds=(None, None)): return guess def ierf(z): - return find_root(lambda x: (erf(x) - z)/(2*math.e**(-guess**2)/math.sqrt(math.pi)), 0) + return find_root(lambda x: (erf(x) - z)/(2*math.e**(-x**2)/math.sqrt(math.pi)), 0) try: from scipy import special