Coulomb’s law states that the magnitude of the electrostatic force of attraction or repulsion between two point charges
and
is directly proportional to
the product of the magnitudes of charges and inversely proportional to
the square of the distance between them:
Wikipedia on Coulomb’s law
Roughwork.
1 2 3 4 5 6 7 |
pi = 3.1415926535 epsilon_0 = 8.8541878128e-12 charge_1 = float(input("Charge of Q_1: ")) charge_2 = float(input("Charge of Q_2: ")) distance = float(input("Separating distance: ")) force = charge_1 * charge_2 / (4 * pi * epsilon_0 * distance ** 2) print("Electrostatic force (in Newton) is:", force) |
The nucleus of a helium atom contains two protons apart each of electric charge
. The electrostatic force of repulsion between them is
1 2 3 4 |
Charge of Q_1: 1.6e-19 Charge of Q_2: 1.6e-19 Separating distance: 3.8e-15 Electrostatic force (in Newton) is: 15.933609826070786 |