Re: terminate the NestWhile
- To: mathgroup at smc.vnet.net
- Subject: [mg72458] Re: [mg72360] terminate the NestWhile
- From: "Josef Otta" <josef.otta at gmail.com>
- Date: Fri, 29 Dec 2006 05:07:45 -0500 (EST)
Hi, try to use function TimeConstrained[NestWhile[...], MaxTime] With best regards, Josef Otta 2006/12/26, Arkadiusz.Majka at gmail.com <Arkadiusz.Majka at gmail.com>: > > 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 > >