Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from visual import *
- from __future__ import division
- # Define Const
- e = 1.6e-19
- oofpex = 9e9
- scalefactor = 1
- L = 2
- N = 6
- Q = 3e-8
- deltax = L/N
- deltaq = Q/N
- obslocation = vector(.3,.4,0)
- #Init Val
- x = -L/4
- Enet = vector(0,0,0)
- #Create Obj
- while x < L/2:
- sphere(pos = (x,0,0), radius = .1, color = color.cyan)
- x = X + deltax
- #Calc
Advertisement
Add Comment
Please, Sign In to add comment