For a Chemical engeneering course, I needed to use the Newton-Raphson iteration to find the root of a function.
I managed to make a module to use the Newton-Raphson and I got the output required.
But then I wanted to make an additional feature by adding an accuracy, and breaking out of my for-loop so no unnecessary iterations would be made.
However, now I encoutered a problem, when trying to break out of my for-loop Mathematica gives an error.
I attached my .nb-file so you can see what I was up to. And if you know where I might go wrong, could you please send me an e-mail or just post a solution?
Thanks a lot! (in advance)
All the best!
P.S. If anyone wants to read more about the Newton-Raphson method, here's a link (wikipedea does has a good page about it: http://en.wikipedia.org/wiki/Newton's_method
Attachment: NewtonRaphson.nb, URL: ,