Advertisement
Guest User

Optimized

a guest
May 16th, 2015
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. import math
  2. import time
  3. import random
  4.    
  5. random.seed(time.time())
  6. t1 = time.time()
  7.  
  8. a = [math.atan(math.cos((math.pow(b, 1.546) if b > 0.5 else math.pow(b, 0.434232)) + i)) for i,b in enumerate([random.random() for j in xrange(4999999)])]
  9.  
  10. t2 = time.time()
  11. print t2 - t1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement