Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Count Number of Iteration [FindRoot]

95 views
Skip to first unread message

Afolabicrystal

unread,
Sep 25, 2011, 3:48:32 AM9/25/11
to
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.


Oleksandr Rasputinov

unread,
Sep 26, 2011, 4:22:56 AM9/26/11
to
Most functions of this type accept the StepMonitor option, which can be
used to count or otherwise analyse the steps taken. Many detailed examples
of this are given in the documentation for StepMonitor, so I will refrain
from giving an example here.

Afolabicrystal

unread,
Sep 26, 2011, 8:12:22 PM9/26/11
to
On Sep 26, 5:22 pm, "Oleksandr Rasputinov"
<oleksandr_rasputi...@hmamail.com> wrote:
> On Sun, 25 Sep 2011 08:48:32 +0100, Afolabicrystal
>
Thank so much. found it very useful.

0 new messages