Advertisement
stiansjogren

Untitled

May 10th, 2018
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. import math
  2.  
  3. #Consts
  4. v = 1 # velocity
  5. z = 1 # pos in z
  6.  
  7. i = range(-1000,1000)
  8. R = []
  9. for j in i:
  10.     R.append(math.sqrt((z-2*j))**2)
  11.  
  12. s = 0
  13. for Ri in R:
  14.     s += 1/Ri * math.exp(-v/2 * Ri)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement