MathGroup Archive 2009

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

Search the Archive

An arithmetic puzzle, equality of numbers.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg103086] An arithmetic puzzle, equality of numbers.
  • From: Richard Fateman <fateman at cs.berkeley.edu>
  • Date: Mon, 7 Sep 2009 02:37:06 -0400 (EDT)

For[i = 1.11111111111111111111, i > 0, Print[i = 2*i - i]]

This came to my attention (again), and I thought it might amuse
current readers of this newsgroup.

What looks like an infinite loop terminates with i==0 being true.  also 
i==2 is true.  (Tested in Mathematica 6.0; I don't have access to 7 yet.)


  • Prev by Date: Mathematica 7 on netbooks
  • Next by Date: confused about asserting variable is element of Reals
  • Previous by thread: Re: Re: Mathematica 7 on netbooks
  • Next by thread: Re: An arithmetic puzzle, equality of numbers.