Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

Re NestWhile

  • To: mathgroup at smc.vnet.net
  • Subject: [mg32555] Re [mg32519] NestWhile
  • From: "Harvey P. Dale" <hpd1 at nyu.edu>
  • Date: Sat, 26 Jan 2002 04:08:34 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Tom:
	This will do it:
				NestWhileList[If[EvenQ[#], #/2, 3 # + 1] &,
7, # =!= 1 &]]
	Best,
	Harvey

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________


  • Prev by Date: Oscillatory Integrand
  • Next by Date: ReplaceAll doesn't replace
  • Previous by thread: Oscillatory Integrand
  • Next by thread: ReplaceAll doesn't replace