stiansjogren icon

Untitled

stiansjogren | PRO | 05/10/18 09:22:04 AM UTC | 0 ⭐ | 603 👁️ | Never ⏰ | []
Python |

200 B

|

None

|

0 👍

/

0 👎

import math 
 
#Consts
v = 1 # velocity
z = 1 # pos in z
 
i = range(-1000,1000)
R = []
for j in i:
    R.append(math.sqrt((z-2*j))**2)
 
s = 0
for Ri in R:
    s += 1/Ri * math.exp(-v/2 * Ri)

Comments