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: [mg72458] Re: [mg72360] terminate the NestWhile
  • From: "Josef Otta" <josef.otta at>
  • Date: Fri, 29 Dec 2006 05:07:45 -0500 (EST)

try to use function

TimeConstrained[NestWhile[...], MaxTime]

With best regards,
Josef Otta

2006/12/26, Arkadiusz.Majka at <Arkadiusz.Majka at>:
> 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: Any simple way to flatten all but the bottom level?
  • Next by Date: Why doesn't DSolve find all the solutions of this pde
  • Previous by thread: Re: terminate the NestWhile
  • Next by thread: Re: Tabling