Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #118891
| From | Tim Rentsch <tr.17687@z991.linuxsc.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: Repeating decimals are irrational |
| Date | 2024-04-25 16:33 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <86y191uie9.fsf@linuxsc.com> (permalink) |
| References | <5b363d215e2c4dab1d496efee2655409dcecf655.camel@gmail.com> <utva8u$2anr0$3@dont-email.me> <utvg0s$2ce32$1@dont-email.me> <uu0137$2jmev$1@dont-email.me> <uu0pv0$2p053$1@dont-email.me> |
Paavo Helde <eesnimi@osa.pri.ee> writes: > 27.03.2024 04:42 Chris M. Thomasson kirjutas: > >> On 3/26/2024 2:51 PM, Paavo Helde wrote: >> >>> 26.03.2024 22:13 Chris M. Thomasson kirjutas: >>> >>>> On 3/26/2024 7:51 AM, wij wrote: >>>> [...] >>>> >>>> Repeating decimals are rational, say >>>> >>>> 0.142857 142857 142857 >>>> >>>> That is just 1 / 7 represented in base 10. >>>> >>>> Now, think of using a TRNG to create each digit... >>>> >>>> That would be, irrational... ;^) >>> >>> Any number represented by stored digits on Earth has finite number >>> of digits (because Earth is finite) and therefore is rational, >>> regardless of how the digits are generated. >> >> Even with a TRNG? > > TRNG is defined as a device having access to a "physical entropy > source". For producing an irrational number it ought to produce an > infinite never-repeating sequence of digits. > > It's not clear if any physical mechanism would in principle produce a > non-repeating infinite sequence of digits, the fact that the world is > quantized might rather speak against it. The world being quantized is irrelevant. Flipping a coin has two "quantized" outcomes - either heads or tails. However, if the two outcomes are completely unpredictable then the coin can serve as a True random number generator. All that is known about quantum mechanics has found (as I understand it) that it is statistical only and completely unpredictable. And that property suffices to be a TRNG. > Even if it did, the lifetime > of a physical device is finite, so it can only produce a finite > sequence of digits. Even if the lifetime of the hypothetical device > would be infinite, we do not possess the infinite space and time to > store the result. Such infinities are strictly the territory of > mathematics, in real world we can have only finite sequence of digits. None of that matters. All that does matter is that if we know any finite number of outputs we still don't know anything about what the next output will be. There is no way to prove, in a mathematical sense, that a proposed TRNG is in fact a mathematically perfect TRNG. But we can make TRNGs in the sense that they have resisted all efforts to successfully predict their behavior (in a way that is statistically significant). >>> If you want to represent irrational numbers you need to use some >>> other encoding schema, e.g. "sqrt(2)" (8 bytes, voila!). >> >> pi? ;^D > > In mathematics, a notion like pi actually defines an irrational number > by fixing its properties. For some such irrational numbers it is > possible to give an infinite algorithm which produces the sequence of > its digits. The funny thing is that after fixing the number there is > no randomness any more, so e.g. a machine computing subsequent digits > of pi would make a pretty poor RNG ;-) What you're saying about pi is true of any deterministic random number generator. Yet there are lots of deterministic RNG's that do a fine job of generating random numbers. I know of no mathematical result that says consecutive digits of pi would fail any of the many statistical tests for RNG's that have been devised. As long as the starting point is not known, AFAIAA there is no reason to think consecutive digits of pi would be any worse as a random number generator than any other deterministic random number generator. (Note: what I am calling deterministic random number generators are sometimes referred to as PRNGs, for "pseudo random number generators".) Incidentally, pi is not just irrational but transcendental. The property of being irrational is not by itself guarantee that a number would be a good source of random digits. Probably that statement is true for (arbitrary) transcendental numbers also. But pi is not just any transcendental number. :)
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Repeating decimals are irrational wij <wyniijj5@gmail.com> - 2024-03-26 22:51 +0800
Re: Repeating decimals are irrational Michael S <already5chosen@yahoo.com> - 2024-03-26 17:11 +0200
Re: Repeating decimals are irrational Ben Bacarisse <ben.usenet@bsb.me.uk> - 2024-03-26 16:13 +0000
Re: Repeating decimals are irrational Marcel Mueller <news.5.maazl@spamgourmet.org> - 2024-03-27 21:34 +0100
Re: Repeating decimals are irrational "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-26 13:13 -0700
Re: Repeating decimals are irrational wij <wyniijj5@gmail.com> - 2024-03-27 05:43 +0800
Re: Repeating decimals are irrational David Brown <david.brown@hesbynett.no> - 2024-03-27 12:50 +0100
Re: Repeating decimals are irrational wij <wyniijj5@gmail.com> - 2024-03-27 20:12 +0800
Re: Repeating decimals are irrational Ralf Goertz <me@myprovider.invalid> - 2024-03-27 13:57 +0100
Re: Repeating decimals are irrational wij <wyniijj5@gmail.com> - 2024-03-27 21:32 +0800
Re: Repeating decimals are irrational wij <wyniijj5@gmail.com> - 2024-03-27 21:49 +0800
Re: Repeating decimals are irrational David Brown <david.brown@hesbynett.no> - 2024-03-27 16:01 +0100
Re: Repeating decimals are irrational "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-27 13:34 -0700
Re: Repeating decimals are irrational David Brown <david.brown@hesbynett.no> - 2024-03-27 16:02 +0100
Re: Repeating decimals are irrational wij <wyniijj5@gmail.com> - 2024-03-28 00:05 +0800
Re: Repeating decimals are irrational "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-27 13:40 -0700
Re: Repeating decimals are irrational wij <wyniijj5@gmail.com> - 2024-03-28 05:39 +0800
Re: Repeating decimals are irrational "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-27 15:10 -0700
Re: Repeating decimals are irrational "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-27 15:14 -0700
Re: Repeating decimals are irrational David Brown <david.brown@hesbynett.no> - 2024-03-28 18:17 +0100
Re: Repeating decimals are irrational wij <wyniijj5@gmail.com> - 2024-03-29 02:25 +0800
Re: Repeating decimals are irrational David Brown <david.brown@hesbynett.no> - 2024-03-29 11:36 +0100
Re: Repeating decimals are irrational David Brown <david.brown@hesbynett.no> - 2024-03-28 18:16 +0100
Re: Repeating decimals are irrational wij <wyniijj5@gmail.com> - 2024-03-29 02:23 +0800
Re: Repeating decimals are irrational David Brown <david.brown@hesbynett.no> - 2024-03-29 11:53 +0100
Re: Repeating decimals are irrational wij <wyniijj5@gmail.com> - 2024-03-29 23:14 +0800
Re: Repeating decimals are irrational David Brown <david.brown@hesbynett.no> - 2024-03-29 16:48 +0100
Re: Repeating decimals are irrational wij <wyniijj5@gmail.com> - 2024-03-30 00:16 +0800
Re: Repeating decimals are irrational "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-29 15:43 -0700
Re: Repeating decimals are irrational David Brown <david.brown@hesbynett.no> - 2024-03-30 15:44 +0100
Re: Repeating decimals are irrational "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-29 15:40 -0700
Re: Repeating decimals are irrational Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-03-29 11:35 -0700
Re: Repeating decimals are irrational David Brown <david.brown@hesbynett.no> - 2024-03-30 15:49 +0100
Re: Repeating decimals are irrational wij <wyniijj5@gmail.com> - 2024-03-30 23:14 +0800
Re: Repeating decimals are irrational David Brown <david.brown@hesbynett.no> - 2024-03-30 19:26 +0100
Re: Repeating decimals are irrational wij <wyniijj5@gmail.com> - 2024-03-31 03:30 +0800
Re: Repeating decimals are irrational "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-27 13:29 -0700
Re: Repeating decimals are irrational David Brown <david.brown@hesbynett.no> - 2024-03-27 15:51 +0100
Re: Repeating decimals are irrational "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-27 21:52 -0700
Re: Repeating decimals are irrational Paavo Helde <eesnimi@osa.pri.ee> - 2024-03-26 23:51 +0200
Re: Repeating decimals are irrational "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-26 19:42 -0700
Re: Repeating decimals are irrational Paavo Helde <eesnimi@osa.pri.ee> - 2024-03-27 11:47 +0200
Re: Repeating decimals are irrational David Brown <david.brown@hesbynett.no> - 2024-03-27 13:10 +0100
Re: Repeating decimals are irrational "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-27 13:45 -0700
Re: Repeating decimals are irrational Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-04-25 16:33 -0700
Re: Repeating decimals are irrational David Brown <david.brown@hesbynett.no> - 2024-04-26 12:46 +0200
Re: Repeating decimals are irrational David Brown <david.brown@hesbynett.no> - 2024-03-27 11:31 +0100
Re: Repeating decimals are irrational "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-27 13:17 -0700
Re: Repeating decimals are irrational David Brown <david.brown@hesbynett.no> - 2024-03-28 18:47 +0100
Re: Repeating decimals are irrational "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-28 12:41 -0700
Re: Repeating decimals are irrational David Brown <david.brown@hesbynett.no> - 2024-03-29 13:03 +0100
Re: Repeating decimals are irrational "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-29 15:33 -0700
Re: Repeating decimals are irrational "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-03-27 19:20 -0700
Re: Repeating decimals are irrational usenet@stegropa.de (Stefan Große Pawig) - 2024-03-28 21:33 +0100
Re: Repeating decimals are irrational wij <wyniijj5@gmail.com> - 2024-03-29 05:06 +0800
csiph-web