Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: AndrewC
Oh, so you do know. Well that's more hopeful. But you think rational arithmetic is closed under that operation? Tell you what. Run this script, which as you can has nothing but rational arithmetic. I wonder if you will recognize the irrational number that is the limit. (Hint: it displeased a famous Greek.)
var x = 1
for (var i = 0; i < 1000; ++i)
{
    x = 1 + x;
    x = 1 / x;
    x = 7 * x;
    x = x / 4;
}
WScript.Echo(x + 1 / 2);

1,727 posted on 05/28/2005 6:57:18 PM PDT by edsheppa
[ Post Reply | Private Reply | To 1713 | View Replies ]


To: edsheppa

you old square rooter


1,731 posted on 05/28/2005 7:26:20 PM PDT by HiTech RedNeck (No wonder the Southern Baptist Church threw Greer out: Only one god per church! [Ann Coulter])
[ Post Reply | Private Reply | To 1727 | View Replies ]

To: edsheppa
(Hint: it displeased a famous Greek.)

Achilles?

1,738 posted on 05/28/2005 8:05:07 PM PDT by Fester Chugabrew
[ Post Reply | Private Reply | To 1727 | View Replies ]

To: edsheppa

The calculation terminates. The result is a rational number truncated to the accuracy of the machine on which the program is implemented. 1000 is a bit short of limitless.


2,175 posted on 06/01/2005 12:25:28 PM PDT by AndrewC (On vacation in Virginia Beach -- Don't you wish you were?)
[ Post Reply | Private Reply | To 1727 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson