On the accuracy of the numerical computation of the electrostatic forces between charged particles