- numpy - matplotlib Physim

Coulomb's Law

In this section you will practice and apply what you have learned from the Coulomb's Law simulations, creating a calculator to calculate the electrostatic force given two charges and a radius and understanding the calculations being done.


If you are looking for a reference for Python consider looking at the Python Reference Sheet on the site.



Below are sample runs of some of the outputs you should get when running the program.


Coulomb's Law


For user input q1 = 8, q2 = 3, and r = 4, the output should be:


For user input q1 = -9, q2 = 5, and r = 10, the output should be:


For user input q1 = -12, q2 = -7, and r = 5, the output should be:


For user input q1 = 21, q2 = -4, and r = 19, the output should be:


For user input q1 = 0, q2 = 11, and r = 6, the output should be:



Here is a code editor so that you can compute your calculator program.


# insert your code here


Go Back to Force Exercises Page