Benchmark
from math import * from time import * def savage(): t=monotonic() a=1 for i in range(1,2500): a=tan(atan(exp(log(sqrt(a*a)))))+1 print(a) t=monotonic()-t print("Time: {0:.3f} seconds".format(t))
Create, edit, and import your Python scripts
Benchmark
from math import * from time import * def savage(): t=monotonic() a=1 for i in range(1,2500): a=tan(atan(exp(log(sqrt(a*a)))))+1 print(a) t=monotonic()-t print("Time: {0:.3f} seconds".format(t))