fix t1 computation in threshold for pol

This commit is contained in:
thomaslavaur 2025-05-30 10:17:46 +02:00
parent 5070dbf597
commit 8d341328cd
2 changed files with 2 additions and 2 deletions

View File

@ -239,7 +239,7 @@ total_stake = F(5000)
# compute t0,t1 via Taylor approx as before
R = RealField(500)
t0 = F(int((((- ln(R(0.95))) * R(p))) / R(total_stake) ))
t1 = F(int((((- ln(R(0.95))**2) * R(p))) / R(total_stake)**2 ))
t1 = F(int((((- ln(R(0.95))**2) * R(p))) / ( R(2) * R(total_stake)**2 )))
value = F(50)

View File

@ -220,7 +220,7 @@ if total_stake >= p:
exit()
t0 = F(int((((- ln(R(0.95))) * R(p))) / R(total_stake) ))
t1 = F(int((((- ln(R(0.95))**2) * R(p))) / R(1/2) * R(total_stake)**2 ))
t1 = F(int((((- ln(R(0.95))**2) * R(p))) / (R(2) * R(total_stake)**2 )))
value = F(50)