One more conversion from pow() to **.
This commit is contained in:
parent
183cd1fae3
commit
8ff1099684
|
@ -599,7 +599,7 @@ class Random(_random.Random):
|
||||||
# Jain, pg. 495
|
# Jain, pg. 495
|
||||||
|
|
||||||
u = 1.0 - self.random()
|
u = 1.0 - self.random()
|
||||||
return 1.0 / pow(u, 1.0/alpha)
|
return 1.0 / u ** (1.0/alpha)
|
||||||
|
|
||||||
## -------------------- Weibull --------------------
|
## -------------------- Weibull --------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue