Skip to content

Commit 080f218

Browse files
authored
Updated the ddx_abbeff_bound formula
1 parent fc2eda2 commit 080f218

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dbn_upper_bound/python/research/ddx_abbeff_bounds.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,16 @@ def ddx_abbeff_bound(N,y=0.4,t=0.4):
5353
ddx_b_pre = 1 + 0.5*t/(xN-6)
5454
ddx_a_pre = exp(delta)/N**y
5555
ddxsum_b, ddxsum_a = 0.0, 0.0
56+
#print(ddxsum_b)
5657
for n in range(1,N+1):
58+
#print(ddxsum_b,type(N))
5759
bn = exp((t/4.0)*log(n)**2)
5860
expo_b = 0.5*(1+y) + 0.5*t*((3*y-1)/(xNp1**2+1) + log(N))
5961
expo_a = 0.5*(1-y) + 0.5*t*((2-3*y)/xN**2 + log(N))
6062
b_numerator = bn*log(n)/2.0
61-
a_numerator = bn*(0.25*t*log(n)/(xN-6) + 0.25*log(abs(1-y+I*xNp1)*abs(1+y-I*xNp1)/(4*pi*n**2)) + 0.25*(3*t+1)/(xN*(xN-6)))
63+
a_numerator = bn*(0.25*t*log(n)/(xN-6) + 0.25*log(abs(1-y+I*xNp1)*abs(1+y-I*xNp1)/(16*(pi**2)*(n**2))) + 0.25*(3*t+1)/(xN*(xN-6)))
6264
ddxsum_b += b_numerator/n**expo_b
6365
ddxsum_a += a_numerator/n**expo_a
6466
ddxsum = ddx_b_pre*ddxsum_b + ddx_a_pre*ddxsum_a
6567
return (N,ddxsum)
68+

0 commit comments

Comments
 (0)