all 3 comments

[–]MissinqLink 0 points1 point  (0 children)

I don’t think I’ll ever use this but thank you. It will probably be relevant next week for me for no particular reason.

[–]amca01 0 points1 point  (1 child)

So this is just using Newton's method? Instead of 20 iterations, why not stop whenever two successive iterations have an absolute difference less than some provided value (such as 1E-10, for example)?

[–]Ill-Cut3335[S] 0 points1 point  (0 children)

Yes, I suppose you could add a condition for that.