I'm interested in determining the total gravitational and electric field of a charged particle. At reasonable distances the value of each field at a point is given by:
$$g = G\frac{m}{r^2}$$
$$E = \frac{q}{(4ε_0πr^2)}$$
The total of each field at every point is therefore just the integral of the relevant equation from 0 to infinity, but that obviously doesn't converge at $r = 0$. How do I calculate the total value for these fields?