Services & Resources / Wolfram Forums
MathGroup Archive
*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
  • Subject: [mg32555] Re [mg32519] NestWhile
  • From: "Harvey P. Dale" <hpd1 at>
  • Date: Sat, 26 Jan 2002 04:08:34 -0500 (EST)
  • Sender: owner-wri-mathgroup at

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

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

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