Mentor
- 37,132
- 16,218
You probably have a division by 0 somewhere. Look at your variable j and see what happens near 0. Possible solutions are to interpolate the inverse of the original equation, or to simply avoid 0.