mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Lounge

Reply
 
Thread Tools
Old 2017-01-18, 16:20   #133
stathmk
 
stathmk's Avatar
 
Mar 2009
Indiana, United Stat

24·3 Posts
Smile Eventually 360 TB of Pi!?!?

If memorizing Pi to thousands of digits doesn’t sound like comedians impersonating cult members, then here’s a hilarious video of a Pie cult!: https://www.youtube.com/watch?v=0vsqqoGrTeo. I laughed at it & it reminds me of Monty Python. I think I showed it to a local museum before Pi Day in 2010.
Quote:
Originally Posted by jasong View Post
The number is over 20 terabytes of information. Most people couldn't even store it on their available hardware. It is unbelievably huge.

And, yet, after about 10 digits or so, the precision is about as much as most people will ever need. I think at one point someone calculated the number of digits needed to calculate the circumference of the known universe to the width of a hydrogen atom, if we were capable of that type of precision, and it was only a few tens of digits, I don't remember the exact number.
Jasong, that’s over 20 TB, but watch this for about a minute about a coin-sized disc that could hold 360 TB: https://www.youtube.com/watch?v=xE0AYH9dwj4&t=02m03s . I can infer that one particular year when it gets to 360 TB of Pi, then possibly Pi will be archived on a coin-sized disc like that.

This is deep & pretty much off topic. I can imagine that one decade at funerals that people will be buried with a 360 TB disc copy with details & videos of their personal lives, DNA ancestry, computer files, & etc if it’s indestructible up to 1,000 degrees C. I do know a fair amount about the Red Indians & about 800 of The Incans were buried with Quipu ( https://en.wikipedia.org/wiki/Quipu ), which nobody can translate. So it’s theorized that it has details about their personal lives since they were buried with them. That’s the closest analogy that I can think of to being remembered forever.
stathmk is offline   Reply With Quote
Old 2017-01-18, 16:31   #134
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

11000001101002 Posts
Default

Quote:
Originally Posted by jasong View Post
The number is over 20 terabytes of information.
Decimal digits can be stored more efficiently than one digit per byte. Actually it would be best IMO to store the binary output and convert to decimal on demand when required. Or alternatively, if computers get fast enough then just compute the digits on-demand, that would only require the storage of the algorithm.

Last fiddled with by retina on 2017-01-18 at 16:32
retina is online now   Reply With Quote
Old 2017-01-18, 17:36   #135
Mysticial
 
Mysticial's Avatar
 
Sep 2016

33210 Posts
Default

Quote:
Originally Posted by retina View Post
Decimal digits can be stored more efficiently than one digit per byte. Actually it would be best IMO to store the binary output and convert to decimal on demand when required. Or alternatively, if computers get fast enough then just compute the digits on-demand, that would only require the storage of the algorithm.
Author of y-cruncher here:

The compression that I'm using for decimal digits is 19 digits per 8 bytes. Admittedly, 3 digits/10 bits is better and more efficient to convert from. But maintaining 8-byte (64-bit integer) alignment is easier to implement since it uses the same format for storing compressed digits in other bases.

Also, a radix conversion of all the digits from binary to decimal requires 10% of the computation cost and the same memory cost as the full computation of Pi. Even worse, it requires the same communication-bound disk-swapping FFT logic. So you're not really gaining much by saving the binary digits and not the decimal digits if you want the latter.
Mysticial is offline   Reply With Quote
Old 2017-01-18, 17:48   #136
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

140648 Posts
Default

Quote:
Originally Posted by Mysticial View Post
Author of y-cruncher here:

The compression that I'm using for decimal digits is 19 digits per 8 bytes. Admittedly, 3 digits/10 bits is better and more efficient to convert from. But maintaining 8-byte (64-bit integer) alignment is easier to implement since it uses the same format for storing compressed digits in other bases.

Also, a radix conversion of all the digits from binary to decimal requires 10% of the computation cost and the same memory cost as the full computation of Pi. Even worse, it requires the same communication-bound disk-swapping FFT logic. So you're not really gaining much by saving the binary digits and not the decimal digits if you want the latter.
Okay, thanks for the clarification. But I wasn't really being serious about the on-demand stuff I spoke about, obviously that would require resources equivalent to the original computation. I thought my last sentence made it clear that I wasn't really advocating it. I just wanted people to think more deeply about things rather than simply accepting that 22T digits requires an equivalent 22T bytes to store.
retina is online now   Reply With Quote
Old 2017-01-18, 18:28   #137
Mysticial
 
Mysticial's Avatar
 
Sep 2016

22·83 Posts
Default

Quote:
Originally Posted by retina View Post
Okay, thanks for the clarification. But I wasn't really being serious about the on-demand stuff I spoke about, obviously that would require resources equivalent to the original computation. I thought my last sentence made it clear that I wasn't really advocating it. I just wanted people to think more deeply about things rather than simply accepting that 22T digits requires an equivalent 22T bytes to store.
Actually, the on-demand thing is best the way to go - if the computation fits in memory. You can get the first billion digits in a couple minutes on a quad-core Haswell. That'll beat 4 MB/s download speed.

The real problem with downloading digits is finding a suitable place to get them from. Back when I was in college, we had unlimited fast internet. So I was able to seed some torrents for the first 5 trillion digits. But I can't do that anymore. The torrents were popular enough to sustain itself for another year or so before they finally died.
Mysticial is offline   Reply With Quote
Old 2017-03-14, 06:43   #138
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

263816 Posts
Default

355
-----
113

7 digits of accuracy for 6 digits of expression.
I figured the easiest way to remember this is it has 2 each of the first 3 odds with 3's on the ends and the others in pairs.
Uncwilly is online now   Reply With Quote
Old 2017-03-14, 20:28   #139
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3·29·83 Posts
Default

https://twitter.com/Rockies/status/841717552795418624
Dubslow is offline   Reply With Quote
Old 2017-03-14, 20:45   #140
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

103·113 Posts
Default

For those of us whose Pi-memorization ambitions are more modest, an NC reader gives a useful 30-digit mnemonic.

Last fiddled with by ewmayer on 2017-03-14 at 21:33 Reason: Thanks, Dubslow!
ewmayer is online now   Reply With Quote
Old 2017-03-17, 01:04   #141
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

103×113 Posts
Thumbs up

Was thinking along the lines of easy mnemonics, and clearly wordlength-in--poetic-phrase is one way to go, but one which is quite inefficient in terms of chars-needed. Better would be one-char-per-decimal-digit, which likely approaches the chars-per-digit compactness of the best rational approximations, but adds easy-to-remember-ness.

So here is a modified-phonepad mnemonic for Pi, using that the first occurrence of 0 is in the 33rd place, based on the following number-to-letter-range mapping:
1:abc
2:def
3:ghi
4:jkl
5:mno
6:pqr
7:stu
8:vwx
9:yz
0:as-is [unneeded in first 32 places]

Based on that, here is the selection table, with my letter choices in the rightmost column:
Code:
3	ghi	h
1	abc	a
4	jkl	l
1	abc	a
5	mno	n
9	yz	y
2	def	f
6	pqr	r
5	mno	o
3	ghi	g
5	mno	o
8	vwx	x
9	yz	y
7	stu	u
9	yz	z
3	ghi	i
2	def	f
3	ghi	i
8	vwx	x
4	jkl	k
6	pqr	r
2	def	e
6	pqr	p
4	jkl	j
3	ghi	i
3	ghi	g
8	vwx	w
3	ghi	h
2	def	e
7	stu	t	[8 vwx for proper 30-digit rounding]
[continued: 9502884197169399375105820974944592307816406286208998628034825342117068...]

We assume the user knows where the decimal point is, and may insert blanks and punctuation ad libitum. Thus, the easy-to-remember nonsense-phrase 'hal any frog oxy uzi fix' gives 19 digits - more than enough for a double-precision-constant init - and appending the nonsense-word/phrase 'krep jig whet' gives 30 digits, truncated-round. (...'krep jig whew' gives proper 30-digit rounding.)

Last fiddled with by ewmayer on 2017-03-17 at 01:07
ewmayer is online now   Reply With Quote
Old 2017-03-17, 17:29   #142
stathmk
 
stathmk's Avatar
 
Mar 2009
Indiana, United Stat

1100002 Posts
Default Pi in Greek

Ewmayer, I didn’t think about 1 for abc, 2 for def, & so on. I don’t know Greek or Japanese. About 10 years ago, I saw a web site where I thought that it’s made by a man who types perfect English & also knows modern Greek. He said that there’s a modern Greek poem to memorize Pi. Greeks also have Cyrillic crossword puzzles. He didn’t notice or didn’t care to mention that the Japanese man who memorized over 100,000 Pi digits wrote a Japanese poem or story to remember Pi.
stathmk is offline   Reply With Quote
Old 2018-03-14, 16:45   #143
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

23·1,223 Posts
Default

Quote:
Originally Posted by ewmayer View Post
Was thinking along the lines of easy mnemonics, and clearly wordlength-in--poetic-phrase is one way to go, but one which is quite inefficient in terms of chars-needed.

We assume the user knows where the decimal point is, and may insert blanks and punctuation ad libitum. Thus, the easy-to-remember nonsense-phrase 'hal any frog oxy uzi fix' gives 19 digits - more than enough for a double-precision-constant init - and appending the nonsense-word/phrase 'krep jig whet' gives 30 digits, truncated-round. (...'krep jig whew' gives proper 30-digit rounding.)
I would suggest the following would be about the practical extent of this:
H. Alan y frog oxy
Uncwilly is online now   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Happy 2*2*2*251! Andi47 Lounge 4 2010-01-13 07:56
Happy 2*3*5*67 Andi47 Lounge 15 2010-01-02 01:11
Happy Odd Day petrw1 PrimeNet 1 2009-05-07 16:31
happy Pi Day! ixfd64 Lounge 30 2008-03-15 19:28
Happy B-Day TTn 15k Search 1 2006-03-22 23:55

All times are UTC. The time now is 22:41.


Fri Jul 16 22:41:29 UTC 2021 up 49 days, 20:28, 1 user, load averages: 6.57, 2.87, 2.48

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.