Message Boards Message Boards

Improve this relatively simple FindRoot code?

Posted 6 years ago
POSTED BY: Todor Latev
4 Replies
Posted 6 years ago

I think I may have found a possible answer to my question: My code is a pure Newton Rapshon method whereas Mathematica actually uses a dampened version of this method with some builtin intelligence as to how to pick a damping factor to prevent the method from diverging in certain cases Now I need to figure out what that extra intelligence is

POSTED BY: Todor Latev
Posted 6 years ago

You can't beat good starting values. Using {10.,10.} is a bit too far away. Try {2.,6.}. (And your first example has 3 roots.) This doesn't match with each iteration but both do end up with the same result (when more iterations are added to the NestList command).

POSTED BY: Jim Baldwin
Posted 6 years ago
POSTED BY: Todor Latev
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract