![](https://secure.gravatar.com/avatar/fc2baa22f0b0e9fc8dc93733cb94103c.jpg?s=120&d=mm&r=g)
This function solved my problem when I used 20 iterations, but when I used 40 iterations I got (nan, nan, nan). I logged the successive points for which my function was evaluated, and the process seemed to have converged to the correct answer before suddenly deciding to give nans. My current solution is to just use 20 iterations, but I would be interested to hear a safer solution. Alex
![](https://secure.gravatar.com/avatar/f65ea1dfe7ef7b9f889ed6877fcc69b8.jpg?s=120&d=mm&r=g)
Hi Alex, On Wed, Mar 19, 2008 at 12:56 AM, argriffi <argriffi@ncsu.edu> wrote:
This function solved my problem when I used 20 iterations, but when I used 40 iterations I got (nan, nan, nan). I logged the successive points for which my function was evaluated, and the process seemed to have converged to the correct answer before suddenly deciding to give nans. My current solution is to just use 20 iterations, but I would be interested to hear a safer solution.
I wrote this code. Could you please send here your code with instructions how to run it to get the above results? Maybe I'll find why it doesn't work for you. Ondrej
participants (2)
-
argriffi
-
Ondrej Certik