Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

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


  • Prev by Date: Dt@x@1
  • Next by Date: Difference between v5.2 and v7 and inability of v7 with trigonometric functions
  • Previous by thread: Re: How to Catch FindRoot::lstol error in FindRoot loop
  • Next by thread: Problem in creating a demonstration