Question: AV - 10. A section of vPython code is provided to you, supposedly the beginning of a program to calculate the electric field of a
AV - 10. A section of vPython code is provided to you, supposedly the beginning of a program to calculate the electric field of a dipole at various locations. from visual import minus - sphere(pos(0, -2e-10, 0), radius-0.3e-10, color-color.green) qn = -1.6e-19 plus - sphere (pos=(0,2e-10, 0), radius=0.3e-10, color-color.magenta) qP-1.602e-19 const = 8.999e9 scalefactor - 7e-20 pt - vector(-5e-10, 0, 0) obs - arrow (pos=pt, shaftwidth=2e-11, color-color.yellow) AP plus.pos - obs.pos Ep - (const plus.charge/mag(rp)2)*norm(rp) rm = minus.pos - obs.pos fin - (const*minus.charge/mag(rm)2) *norm(rm) Enet = Ep + Em obs.axis = Enet*scalefactor Circle the line of code which calculates the vector from the positive charge to the observation location. Circle the line of code which calculates the electric field due to the negatively charged object. What is the magnitude of norm(rm)? is ac 8) Explain the purpose of the constant named scalefactor? can To dirernire te direttion of the arrow sy orrect two incorrect aspects of this vPython code (there may be more than two mistakes). A2 answer part ab and c
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
