Tuesday, April 21, 2015

Potential on a Ring around a set of charges

This here is a code for the calculation of the electric potential at various point on a ring centered around various point charges. The while reiterates as long is less than 2*pi. With each iteration, the quotient of pi/12 is added to a, allowing for a total of 24 iterations.

Each label indicates the resulting electric potential at that point due to the various charges.

No comments:

Post a Comment