home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / sci / math / 17380 < prev    next >
Encoding:
Text File  |  1992-12-23  |  1.4 KB  |  54 lines

  1. Newsgroups: sci.math
  2. Path: sparky!uunet!munnari.oz.au!comp.vuw.ac.nz!cc-server4.massey.ac.nz!TMoore@massey.ac.nz
  3. From: news@massey.ac.nz (USENET News System)
  4. Subject: Re: Negative Zero
  5. Message-ID: <1992Dec23.211510.21083@massey.ac.nz>
  6. Organization: Massey University
  7. References: <1992Dec12.010711.15778@leela.cs.orst.edu> <1992Dec15.174003.203407@uctvax.uct.ac.za> <1992Dec21.190158.4586@galois.mit.edu>
  8. Date: Wed, 23 Dec 92 21:15:10 GMT
  9. Lines: 43
  10.  
  11. In article <1992Dec21.190158.4586@galois.mit.edu>, jbaez@riesz.mit.edu (John C. Baez) writes:
  12. > >All this reminds me of a student I encountered once who had written a program
  13. > >to check whether infinity existed. He was incrementing and printing out a
  14. > >counter in a continuous loop and sat looking at the screen enthusiastically.
  15. > >Shame.
  16. > >Colin
  17. > Seriously?  That's great.  What happened then?  I would imagine that
  18. > after a while he'd get bored, start thinking about the problem and come
  19. > to some conclusion.  Maybe: "Infinity MUST exist.  If it didn't this
  20. > program would have halted by now!"
  21. I'd better explain the joke - obviously some people need it :-)
  22. SPOILER FOLLOWS
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39. After a while the counter reached 32767. On the next iteration it
  40. became -32768.
  41.  
  42.  
  43. Of course he might have used LONGINT, in which case the program
  44. would run a little longer before cycling.
  45.  
  46. To be serious for a moment :-), a computer is a finite state machine.
  47.  
  48. Terry Moore
  49.