MathGroup Archive 2000

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

Search the Archive

Re: NestWhile

  • To: mathgroup at smc.vnet.net
  • Subject: [mg23066] Re: NestWhile
  • From: Daniel Reeves <dreeves at eecs.umich.edu>
  • Date: Sat, 15 Apr 2000 03:00:24 -0400 (EDT)
  • References: <8d3r3l$oer@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

nestWhile[f_, expr_, test_] := 
  FixedPoint[f, expr, SameTest -> (!test[#2]&)]

----- FROM Alan W.Hopper ON 00.04.13 02:56 (Today) -----

> Others like myself who are still using Mathematica 3,  may have been
> interested to see that the new cryptic @@@ function can be programmed
> into a user function for version 3, as explained by Hartmut Wolf and
> Daniel Reeves.
> 
> But I have a query to pose about another new version 4 function  ,
> that is NestWhile, which I assume can also be approximated in version
> 3.0.
> 

--    --    --    --    --    --    --    --    --    --    --    -- 
Daniel Reeves               http://ai.eecs.umich.edu/people/dreeves/

A word from our sponsor...
Pardon this .sig ad, but I highly recommend this thing: 
https://secure.paypal.com/refer/pal=dreeves-paypal%40umich.edu
(not to mention we each get $5 if you sign up -- email me if 
you want to know the catch -- for most of us there really is none)




  • Prev by Date: breaking up lists into intervals
  • Next by Date: RE: Chop? Programming Challenge!!
  • Previous by thread: Re: NestWhile
  • Next by thread: Re: NestWhile