I am trying to solve for the roots of the follwing equation using the newton raphson method $$f\left(x\right)\ =-I+I_{ph}-I_s\times\left(e^\frac{q\times(V_c+I\times R_c)}{n\times k\times T}-1\right)$$
The solution that I am trying to find is: $$I_{n+1}=\ I_n-\frac{I_n-I_{ph}+I_s\times\left(e^\frac{q\times(V_c+I_n\times R_c)}{n\times k\times T}-1\right)}{\frac{{q\times I}_s\times{R_c\times\left(e^\frac{q\times(V_c+I_n\ timesR_c)}{n\times k\times T}-1\right)}_\ }{n\times k\times T}+1}$$
However when i reproduce the method myself I arrive to: $$I_{n+1}=\ I_n-\frac{I_n-I_{ph}+I_s\times\left(e^\frac{q\times(V_c+I_n\times R_c)}{n\times k\times T}-1\right)}{\frac{{q\times I}_s\times{R_c\times\left(e^\frac{q\times(V_c+I_n\times R_c)}{n\times k\times T}\right)}_\ }{n\times k\times T}+1}$$
I have used matlab to find the derivative and do the calculations, I dont know where the -1 term in the denominator has gone. The Method does not work without it.
No idea how the first variant could be correct as Newton method, it could be a copy-paste error.
That it works is because the fixed-point iteration scheme $$x_+=x-h(x)f(x)$$ always has fixed points at the roots of $f$, and is rather flexible in $h$ if you only want to get convergence, that is, contractivity around a specific root $x_*$ of $f$. Then $$|h(x_*)f'(x_*)-1|<1$$ is a sufficient condition to have the iteration contractive in some neighborhood of $x_*$. In general, the smaller the left side, the larger the region and the faster the convergence. The extra $-1$ in the first formula could count as such an insignificant perturbation of $h(x)=f'(x)^{-1}$.
To get quadratic convergence like in the Newton method, you need that $$h(x_*)=f'(x_*)^{-1}$$ at the root $x_*$. The easiest way to guarantee this is to have $h(x)=f'(x)^{-1}$ everywhere. Note however that any modification of $f$ leads to a different Newton iteration, for instance modifying $f$ by a factor $g$ gives $$ x_+ = x - \frac{f(x)g(x)}{f'(x)g(x)+f(x)g'(x)}=x-\frac{f(x)}{f'(x)+f(x)\frac{g'(x)}{g(x)}}. $$ An interesting factor is $g(x)=e^{i\epsilon x}$ giving $x_+=x-\frac{f(x)}{f'(x)+iϵf(x)}$ if you want to find complex roots.