Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

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

Search the Archive

Re: Count Number of Iteration [FindRoot]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg121717] Re: Count Number of Iteration [FindRoot]
  • From: Afolabicrystal <afolabicrystal at gmail.com>
  • Date: Mon, 26 Sep 2011 20:07:29 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <j5mmcg$rq8$1@smc.vnet.net> <j5pcp0$8j0$1@smc.vnet.net>

On Sep 26, 5:22 pm, "Oleksandr Rasputinov"
<oleksandr_rasputi... at hmamail.com> wrote:
> On Sun, 25 Sep 2011 08:48:32 +0100, Afolabicrystal  
>
> <afolabicrys... at gmail.com> 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?