Calculation of electric forces between point charges