mathmari
Gold Member
MHB
- 4,984
- 7
Hello! :)
I am implementing the finite difference method in a program in C and I got stuck at the rate of convergence.. The formula is \frac{log(\frac{e_{1}}{e_{2}})}{log(\frac{J_{2}}{J_{1}})}, right? where e_{i}=max|y_{j}^{J_{i}}-y(x_{j}^{J_{i}})|, 0<=j<=J_{i}. How can I find the J_{1} and J_{2}?
I am implementing the finite difference method in a program in C and I got stuck at the rate of convergence.. The formula is \frac{log(\frac{e_{1}}{e_{2}})}{log(\frac{J_{2}}{J_{1}})}, right? where e_{i}=max|y_{j}^{J_{i}}-y(x_{j}^{J_{i}})|, 0<=j<=J_{i}. How can I find the J_{1} and J_{2}?
Last edited by a moderator: