Guest User

Untitled

a guest
Feb 17th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. alist = [0.141, 0.29, 0.585, 0.547, 0.233]
  2.  
  3. np.cumsum(alist)
  4. array([ 0.141, 0.431, 1.016, 1.563, 1.796])
  5.  
  6. list(np.cumsum(alist))
  7. [0.14099999999999999,
  8. 0.43099999999999994,
  9. 1.016,
  10. 1.5630000000000002,
  11. 1.7960000000000003]
Add Comment
Please, Sign In to add comment