COMPUTING II: PROJECT E (00/01)

Electric field due to a dipole

You will know from your Electricity and Magnetism course that the magnitude of the electric field E at a point (x,y) due to a point charge qi placed at position (xi,yi) is:

  where

For more than one charge we can take the vector sum of the fields due to the individual point charges to find the total field at a particular point. For an arbitrary distribution of point charges, a computer can calculate the vector sums at various points in a plane and thus produce an electric field map. Write a C program to generate a field map for, first, an electric dipole and then an arbitrary distribution of charges.