Advertisement
Buffet_Time

Untitled

Feb 17th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import math
  2. p = 1
  3. n = 10
  4.  
  5. while n < 321:
  6. p = 1
  7.  
  8. while p < 129:
  9. T_serial = n ^ 2
  10. T_parallel = (T_serial / p) + math.log(p)
  11. speed = T_serial / T_parallel
  12. effic = speed / p
  13. result = speed / effic
  14. print(result)
  15. p *= 2
  16. n += 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement