MathGroup Archive 2006

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

Search the Archive

Re: documentation NestWhile


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