qe = -1.6E-19
qp = 1.6E-19
k = 9.0E9
def force(charge1, charge2, distance):
return k * ((charge1 * charge2) / (distance ** 2))
def force_from_field(field, charge):
return field * charge
def field(charge, distance):
return k * (charge / (distance**2))
def potential(charge, distance):
return k * (charge / distance)
def work(deltav, charge):
return deltav * charge
Unit : Newtons $(N)$
$F = k \frac{q_1 q_2}{r^2}$
$F(q_1, q_2, r)$
force(charge1, charge2, distance)
$F = E q_2$
$F(E, q_2)$
force_from_field(field, charge)
Unit : Newtons/Coulombs $(N/C)$
$E = \frac{q_1}{r^2}$
$E(q_1, r)$
field(charge, distance)
Unit : Volts $(V)$
$V = k\frac{q}{r}$
$V(q,r)$
potential(charge, distance)
print(field(qp, .00125))
print(field(qe, .00275))
0.0009215999999999998 + 0.0001904132231404959
force_from_field(0.0011120132231404957, qp)
potential(qp, .00125) + potential(qe, .00275)
work(6.283636363636363e-07, qe)
potential(qp, 2.5E-12)
potential(qp, 2.5E-12 + 3.75E-12)
work(-345.6, qe)
potential(-2.4E-12, .00540) + potential(5.1E-12, .012 + .00615)
potential(-2.4E-12, .00540 + .012) + potential(5.1E-12, .00615)
work(6.22+1.47, qe)