MathGroup Archive 2006

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

Search the Archive

Re: terminate the NestWhile

  • To: mathgroup at smc.vnet.net
  • Subject: [mg72455] Re: [mg72360] terminate the NestWhile
  • From: bsyehuda at gmail.com
  • Date: Thu, 28 Dec 2006 05:44:03 -0500 (EST)

Hi,
Taken directly from the help system
NestWhile[f, expr, test, m, max] applies f at most max times.
NestWhile[f, expr, test, m, max, n] applies f an extra n times.
 NestWhile[f, expr, test, m, max, -n] returns the result found when f had
been applied n fewer times.

yehuda

On 12/26/06, Arkadiusz.Majka at gmail.com <Arkadiusz.Majka at gmail.com> wrote:
>
> Hi,
>
> NestWhile repeats calculations until test is no longer True. Sometimes
> it happens that it takes a lot of time. How can I terminate
> calculations if they last more than the certain amount of time or more
> than certain number of iterations?
>
> Best,
>
> Arek
>
>


  • Prev by Date: Re: message question
  • Next by Date: Re: regularize a function (proof function)
  • Previous by thread: terminate the NestWhile
  • Next by thread: Re: terminate the NestWhile