Question: The following skeleton program creates objects representing a stationary source charge and moving a antiproton. (a) Complete the program so that the antiproton is affected
The following skeleton program creates objects representing a stationary source charge and moving a antiproton. (a) Complete the program so that the antiproton is affected by the net electric field at its current location. (b) Add two arrows and use them to visualize the momentum of the antiproton, and the electric feild at the location of the antiproton. These arrows should move with the antiproton.
Skeleton program:
scene.width =scene.height = 760 scene.range= 3e-8 oofpez = 9e9 qe = 1.6e-19 source = sphere(pos=vector(-0.5e-8,0,0),radius = 5e-10,color=color.red)
source_q=qe
##antiproton ap = sphere(pos=vector(0.5e-8,-1e-8,0),radius = 5e-10, color=color.cyan, make_trail = True)
ap_q = -qe ap_m = 1.7e-27 ap_p = ap_m * vector(0,5e3,0) deltat = 1e-15 t=0
while t < 8e-12: rate(500)
##add your code here ap.pos = ap.pos+ (ap_p/ap_m) * deltat t= t + deltat
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
