Electric potential visualization. Write a program Potential that creates an array of charged particles from values given on standard input (each charged particle is specified by its xcoordinate, y-coordinate, and charge value) and produces a visualization of the electric potential in the unit square. To do so, sample points in the unit square. For each sampled point, compute the electric potential at that point (by summing the electric potentials due to each charged particle) and plot the corresponding point in a shade of gray proportional to the electric potential.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here