Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- p = 1
- n = 10
- while n < 321:
- p = 1
- while p < 129:
- T_serial = n ^ 2
- T_parallel = (T_serial / p) + math.log(p)
- speed = T_serial / T_parallel
- effic = speed / p
- result = speed / effic
- print(result)
- p *= 2
- n += 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement