Question: Create a function, Efield, that computes the electric field at a point in space (x, y) due to a point charge qo located at
Create a function, Efield, that computes the electric field at a point in space (x, y) due to a point charge qo located at position 7 = (xo, yo). Have your function output x- and y-components of the field (not magnitude & direction). Compute the electric field for the electric dipole, as discussed in Part A. Note that the two components, Ex and Ey, can be stored in two separate arrays. The 2D vector field can be plotted using matplotlib.pyplot.streamplot, which operates similar to contour. Save your plots of the electric potential and field for the electric dipole as "dipole Plot.png". Use the subplot feature to present both plots in a single file.
Step by Step Solution
3.29 Rating (155 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
