MathGroup Archive 2009

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

Search the Archive

Re: An arithmetic puzzle, equality of numbers.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg103087] Re: An arithmetic puzzle, equality of numbers.
  • From: a boy <a.dozy.boy at gmail.com>
  • Date: Tue, 8 Sep 2009 05:54:23 -0400 (EDT)
  • References: <h829m8$3ue$1@smc.vnet.net>

At the begin of programming, my teacher told me----
when i is greater than maximum value , its value is negative.
This comes to c/c++/java programming also.

On Sep 7, 2:36 pm, Richard Fateman <fate... at cs.berkeley.edu> wrote:
> 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: Re: Mathematica 7 on netbooks
  • Next by Date: Bug with Integrate in v7?
  • Previous by thread: Re: An arithmetic puzzle, equality of numbers.
  • Next by thread: Re: An arithmetic puzzle, equality of numbers.