clangcmp·5 years ago·discussDisappointing, did not see the extremely easy and quite efficient method of calculating e through continued fractions. S =[2,1,2] T =0 for P in range(200): S += [1,1,(4 + 2*P)] for x in range(len(S)-1): T = 1 / (T + S[-(x+1)]) print(S[0] + T) # value of e