There is no closed-form solution for $r$. Equation 7 of this link gives a power series solution.
I derived the following Taylor series for $C$:
$$
C=\frac{P_0}{N}\left[1 + \frac{N+1}{2}r + \frac{(N-1)(N+1)}{12}\frac{r^2}{2!}+\cdots\right]
$$
If you solve this for $r$
$$
r\approx\left(\frac{3}{N-1}\right)\left[-1+\sqrt{1+\frac{4}{3}\frac{N-1}{N+1}\left(\frac{NC}{P_0}-1\right)}\right]
$$
I haven't extensively tested this but is seems to get within 1% of the true interest rate for parameters in the consumer mortgage regime (e.g. 4%, 360 month).
The Taylor series will be most accurate at interest rates close to zero. To improve the accuracy you add a third term to the Taylor series. You could also explore curve fitting some real data in the region of interest; (the goal is to improve accuracy in the region of interest at the expense of accuracy near $r=0$). So you might try fitting an equation like:
$$
C=\frac{P_0}{N}\left[A_0 + A_1\frac{N+1}{2}r + A_2\frac{(N-1)(N+1)}{12}\frac{r^2}{2!}\right]
$$
getting $A_0, A_1, A_2$ by least squares, then solving the quadratic for $r$.
Hope that helps.
Cas a Taylor series inre.g.C=c_0 + c_1 r + ...? Or do you want to solve forr=r(C,N,P0)? – xidgel Feb 13 '18 at 00:08