MathGroup Archive 2011

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

Search the Archive

Re: Count Number of Iteration [FindRoot]

  • To: mathgroup at
  • Subject: [mg121717] Re: Count Number of Iteration [FindRoot]
  • From: Afolabicrystal <afolabicrystal at>
  • Date: Mon, 26 Sep 2011 20:07:29 -0400 (EDT)
  • Delivered-to:
  • References: <j5mmcg$rq8$> <j5pcp0$8j0$>

On Sep 26, 5:22 pm, "Oleksandr Rasputinov"
<oleksandr_rasputi... at> wrote:
> On Sun, 25 Sep 2011 08:48:32 +0100, Afolabicrystal  
> <afolabicrys... at> wrote:
> > Hello group,
> > I'm trying to find the roots of some functions using different
> > algorithms then compare with FindRoot. However, I'm using number of
> > iterations as my performance metric.
> > Is there a function in Mathematica that I can use to count number of
> > iterations automatically especially in functions requiring iterations?
> > Thanks.
> Most functions of this type accept the StepMonitor option, which can be 
> used to count or otherwise analyse the steps taken. Many detailed example s  
> of this are given in the documentation for StepMonitor, so I will refrain
>  from giving an example here.

Thank so much. found it very useful.

  • Prev by Date: A while into another while
  • Next by Date: Re: Integration error? Integrate[1/(x^3-1)]?
  • Previous by thread: Re: Count Number of Iteration [FindRoot]
  • Next by thread: How to manipulate logic algebra in shortened form?