]> AND Private Git Repository - 14Mons.git/blob - experiments/calculeBorneInfNbGrayCodes.py
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
initiailisation
[14Mons.git] / experiments / calculeBorneInfNbGrayCodes.py
1 from math import *  
2
3
4
5 def log_2(x):
6     return log(x)/log(2)
7
8 def bi(n):
9     o_1 = 0
10     return pow((float(n*log_2(2))/(exp(1)*log_2(log_2(n)))*(1 - o_1)),2**n)
11
12 for n in range(3,10):
13     print n, bi(n)