home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: sci.math
- Path: sparky!uunet!munnari.oz.au!comp.vuw.ac.nz!cc-server4.massey.ac.nz!TMoore@massey.ac.nz
- From: news@massey.ac.nz (USENET News System)
- Subject: Re: Negative Zero
- Message-ID: <1992Dec23.211510.21083@massey.ac.nz>
- Organization: Massey University
- References: <1992Dec12.010711.15778@leela.cs.orst.edu> <1992Dec15.174003.203407@uctvax.uct.ac.za> <1992Dec21.190158.4586@galois.mit.edu>
- Date: Wed, 23 Dec 92 21:15:10 GMT
- Lines: 43
-
- In article <1992Dec21.190158.4586@galois.mit.edu>, jbaez@riesz.mit.edu (John C. Baez) writes:
- >
- >
- > >All this reminds me of a student I encountered once who had written a program
- > >to check whether infinity existed. He was incrementing and printing out a
- > >counter in a continuous loop and sat looking at the screen enthusiastically.
- > >Shame.
- >
- > >Colin
- >
- > Seriously? That's great. What happened then? I would imagine that
- > after a while he'd get bored, start thinking about the problem and come
- > to some conclusion. Maybe: "Infinity MUST exist. If it didn't this
- > program would have halted by now!"
- >
- I'd better explain the joke - obviously some people need it :-)
- SPOILER FOLLOWS
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- After a while the counter reached 32767. On the next iteration it
- became -32768.
-
-
- Of course he might have used LONGINT, in which case the program
- would run a little longer before cycling.
-
- To be serious for a moment :-), a computer is a finite state machine.
-
- Terry Moore
-