Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- aggregate_product = np.log(1)
- iterations = 0
- while aggregate_product != float('-inf'):
- aggregate_product += np.log(0.5)
- iterations += 1
- # break program execution and then print out
- print(iterations)
- print(aggregate_product)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement