git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
3077ada
)
fixed ierf
author
Forrest Voight
<forrest@forre.st>
Tue, 24 Jan 2012 22:49:23 +0000 (17:49 -0500)
committer
Forrest Voight
<forrest@forre.st>
Tue, 24 Jan 2012 22:49:23 +0000 (17:49 -0500)
p2pool/util/math.py
patch
|
blob
|
history
diff --git
a/p2pool/util/math.py
b/p2pool/util/math.py
index
b87e963
..
6b152d9
100644
(file)
--- 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