MathGroup Archive 2006

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

Search the Archive

Re: documentation NestWhile

  • To: mathgroup at smc.vnet.net
  • Subject: [mg71524] Re: documentation NestWhile
  • From: "ben" <benjamin.friedrich at gmail.com>
  • Date: Tue, 21 Nov 2006 07:05:24 -0500 (EST)
  • References: <ejtcsq$i4f$1@smc.vnet.net>

Dear group,

I apologize for my post from yesterday:
Apparently I was misled by a bug in my program
and tought it was due to a mixed-up order of arguments
in NestWhile.

Sorry for that
Ben

ben schrieb:

> Dear group,
>
> This is an info about a possible flaw in the documentation of
>
> NestWhile[f, expr, test, m, max]
>
> On my machine the order of arguments as above doesn't work,
> however
>
> NestWhile[f, expr, test, max,m]
>
> is fine. I suppose there is a flow in the manual.
>
> Bye
> Ben
>
> the doc
>
> "NestWhile[f, expr, test] starts with expr, then repeatedly \
> applies f until applying test to the result no longer yields True. \
> NestWhile[f, expr, test, m] supplies the most recent m results as
> arguments \
> for test at each step. NestWhile[f, expr, test, All] supplies all
> results so \
> far as arguments for test at each step. 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."
> 
> My Mathematica
> Version Number: 5.2.0.0
> Platform: X


  • Prev by Date: Re: returning variable number of arguments from a Module[ ]
  • Next by Date: Re: symbolic solution of ODE
  • Previous by thread: documentation NestWhile
  • Next by thread: Re: documentation NestWhile