Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Problem: Breaking out of a For-loop' topicStudent Support Forum > General > Archives > "Problem: Breaking out of a For-loop"

Next Comment >Help | Reply To Topic
Author Comment/Response
Eljee
01/27/10 1:34pm

Hey all!

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: ,

Subject (listing for 'Problem: Breaking out of a For-loop')
Author Date Posted
Problem: Breaking out of a For-loop Eljee 01/27/10 1:34pm
Re: Problem: Breaking out of a For-loop Peter Pein 01/28/10 6:40pm
Re: Problem: Breaking out of a For-loop Peter Pein 01/28/10 6:45pm
Re: Re: Problem: Breaking out of a For-loop Eljee 02/02/10 07:10am
Next Comment >Help | Reply To Topic