Re: How to Catch FindRoot::lstol error in FindRoot loop
- To: mathgroup at smc.vnet.net
- Subject: [mg119377] Re: How to Catch FindRoot::lstol error in FindRoot loop
- From: Armand Tamzarian <mike.honeychurch at gmail.com>
- Date: Wed, 1 Jun 2011 04:33:15 -0400 (EDT)
- References: <is2kgf$qon$1@smc.vnet.net>
On May 31, 9:47 pm, Themis Matsoukas <tmatsou... at me.com> wrote: > I have a Table that solves a system of two non-linear equations for 18 different data points using FindRoot. The table works and I get results for every iteration but I also get two FindRoot::lstol errors. How can I identify the iteration that produces the error? I don't want to put Print statements to catch the error manually. > > Thanks > > Themis Something like this should help (in the documentation Options>Evaluation Monitor) {res, {evx}} = Reap[FindRoot[x^2 == Exp[x], {x, 0}, EvaluationMonitor :> Sow[x]]] Mike