Byte Magazine calculator benchmark
from time import * t=monotonic() m=20000 n=50 i=1400 y=.08 sum=0 for j in range(1,n+1): sum = sum + (1 + y)**(-j) print(i * sum + m * (1 + y)**(-n)) print(monotonic()-t,"seconds")
Create, edit, and import your Python scripts
Byte Magazine calculator benchmark
from time import * t=monotonic() m=20000 n=50 i=1400 y=.08 sum=0 for j in range(1,n+1): sum = sum + (1 + y)**(-j) print(i * sum + m * (1 + y)**(-n)) print(monotonic()-t,"seconds")