Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: terminate the NestWhile

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

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.


On 12/26/06, Arkadiusz.Majka at <Arkadiusz.Majka at> 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