Difference between revisions of "Talk:1292: Pi vs. Tau"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
Line 60: Line 60:
: A sudden flash of realization: are we getting nerd-sniped here?--[[Special:Contributions/|]] 11:55, 18 November 2013 (UTC)
: A sudden flash of realization: are we getting nerd-sniped here?--[[Special:Contributions/|]] 11:55, 18 November 2013 (UTC)
::Not unlikely. Have posted this as a trivia.
::Not unlikely. Have posted this as a trivia. [[User:Kynde|Kynde]] ([[User talk:Kynde|talk]]) 20:11, 23 November 2013 (UTC)
: The claim is clearly about e+2, making Dgbrt's comment closest to the right direction. [[Special:Contributions/|]] 12:03, 18 November 2013 (UTC)
: The claim is clearly about e+2, making Dgbrt's comment closest to the right direction. [[Special:Contributions/|]] 12:03, 18 November 2013 (UTC)
Line 180: Line 180:
Note that pau is Catalan for peace, which is a good solution for the pi/tau dispute. --[[Special:Contributions/|]] 00:10, 23 November 2013 (UTC)
Note that pau is Catalan for peace, which is a good solution for the pi/tau dispute. --[[Special:Contributions/|]] 00:10, 23 November 2013 (UTC)
:Has posted this as a trivia item.
:Has posted this as a trivia item. [[User:Kynde|Kynde]] ([[User talk:Kynde|talk]]) 20:11, 23 November 2013 (UTC)

Revision as of 20:11, 23 November 2013

I started an explanation. Hopefully others will help improve it, as I don't think it's quite adequate. 05:32, 18 November 2013 (UTC)

The comic currently shows the symbol π (pi) in all three cases, but it should have the symbol τ (tau) in the rightmost case. I'm sure there is a compromise symbol "pau" too. Maybe with a deformed left leg? 07:07, 18 November 2013 (UTC)

WolframAlpha gives

which does indeed have four 666 sequences. 08:06, 18 November 2013 (UTC)

This number contains 7777, 000 and 444 twice, though. 09:08, 18 November 2013 (UTC)

Wrote the transcript, not sure if I explained the visual well enough, so I left the incomplete tag if someone else has a better idea. Should suffice for understanding however, considering the content 08:55, 18 November 2013 (UTC)

(The discussion about different results was trimmed)

Wolfram gives the result with 666



The Unix arbitrary precision calculator gives the result without

$ echo "scale=200; obase=8; 6*a(1)" | bc -l


Any suggestions how we can check them?

"Randall says so" is probably correct, but insufficient :-) -- Mike (talk) (please sign your comments with ~~~~)

Please use the <pre> tag for this long numbers.--Dgbrt (talk) 09:20, 18 November 2013 (UTC)

Testing Wolfram Alpha with
4.55457437631441644567666171433661711624044407666651053353307763115135045206043645247627402262120613631000177621674175071262255_8 in decimal
4.55457437631441644567666171433661711624044407666651053353307763115135045206043645247627402262120613631000_8 in decimal
both indicate the approximation is only accurate to a limited degree.

The method I used to get the value I put in the text was; I used the following command to generate my approximation:

echo 'scale=200; obase=8; a(1) * 6' | bc -l | tr -d ' \\\n' ; echo
which outputs


In 'bc, a(1) is arctangent of 1 (i.e. 45 degrees, or pi/4); (pi/4 * 6) should be equal to 'pau'. I additionally checked the result using base 2 encoding, and converted each three bit binary value into an octal value. The decimal value of pi (using a(1) * 4) matches with the value of pi to at lease 1000 digits. 09:21, 18 November 2013 (UTC)

Both Maxima and the GNU Emacs calculator output as the first 1000 octal digits:


This also agrees with the first 220 digits of the previous result (last two digits above are 57 vs 61 here, maybe due to rounding when converting to octal). Again, no 666 within the first 200 digits. The Wolfram result deviates from this at the 18th digit already. --ulm (talk) 10:21, 18 November 2013 (UTC)

Also e+2 does not contain the substring '666':

echo "scale=200; obase=8; e(1) + 2" | bc -l
--Dgbrt (talk) 10:43, 18 November 2013 (UTC)
A sudden flash of realization: are we getting nerd-sniped here?-- 11:55, 18 November 2013 (UTC)
Not unlikely. Have posted this as a trivia. Kynde (talk) 20:11, 23 November 2013 (UTC)
The claim is clearly about e+2, making Dgbrt's comment closest to the right direction. 12:03, 18 November 2013 (UTC)

When I take Wolfram alpha's octal(pi*1.5) I get the first 303 (base 10) characters as this:


200(base 10) is 310(base 8) so in the fist '200' characters, 666 shows up 4 times (5 if you count 6666 as twice?) Xami (talk) 14:01, 18 November 2013 (UTC)

The Wolfram result is what you get when you calculate pi*3/2 in decimal, round to 14 digits after the decimal point and then convert to octal. That is, 4.7123889803846910 converted to octal. Definitely, this won't give you 200 digits precision. --ulm (talk) 15:15, 18 November 2013 (UTC)
It lines up too perfectly to be a coincidence. It fits all the requirements: has 666 four times within 2008 digits, and although 0000, 222, 444, and 7777 appear, they only appear once as a run. You can't double count 7777 as two 777's because it is a single run. If WolframAlpha doesn't give the correct precision, it is likely that Randall made the same error. --RainbowDash (talk) 16:59, 18 November 2013 (UTC)

Being τ, tau, is already being expressed in terms of π, pi, it shows bias. (Though I think Pau would lead to some interesting spherical geometry equations. ~~Drifter (talk) (please sign your comments with ~~~~)

The bias is worse than that: From the perspective of π, the discussion is about multiples of π, so (3/2)π (that is 3π/2 = 3τ/4) is indeed the compromise between π and 2π. But from the perspective of τ, the discussion is about fractions of τ, so the compromise between τ and τ/2 is τ/(3/2) (that is 2τ/3 = 4π/3). Maybe we can call this ‘ti’ (or ‘tie’, pace below). —TobyBartels (talk) 20:47, 18 November 2013 (UTC)

Actually, both compromises are wrong. (3/2)π is the arithmetic mean of π and τ, while τ/(3/2) is their harmonic mean. But for geometric ratios (which these are), the appropriate mean is generally the geometric mean (hence the name). You can see how even-handed this is: it's (√2)π = τ/(√2). —TobyBartels (talk) 20:50, 18 November 2013 (UTC)


I am in favour of just calling it ti(e). -- 17:52, 18 November 2013 (UTC)


There are real world uses to both Tau and Pi: Pi is the number that relates to what you get when you measure a circle (the distanced around divided by the distance across); and Tau is get when you draw a circle (the distance around divided by the distance from the center). It is the difference between a mic (aka "micrometer" http://en.wikipedia.org/wiki/Micrometer ) and a protractor. Tau might have some mathematical advantages in both 2D and 3D in that it has no integer attached to it to find either circumference (2D) or surface area (3D) which makes radians and solid angles simpler. However, that advantage is lost in other dimensions and for the area of a circle.

Pau, of course, has a 61% chance of going to the dribbling spheroid hall of fame. (ref: http://www.basketball-reference.com/players/g/gasolpa01.html ), to which neither Tau nor Pi can hold a candle.~~Remo ( 19:19, 18 November 2013 (UTC) )


The differences between Wolfram and BC really bothered me since I have used both for precision calculation in the past. The long and short of the matter, having done most of the maths 'long hand', BC is correct, Wolfram is wrong, and sadly, Randall was also wrong. It seems as tho Wolfram is rounding pi*1.5 to around 15 decimals but leaving the 9 repeating before converting to Octal.

If you take the output of octal(pi * 1.5) and paste it back into the input like so:


Wolfram gives you back (converted to decimal):


If you give that same input to BC and ask it to convert to decimal you get:


If you do the math long hand out to 55 decimal places, pi * 1.5 equals:


Converting that by hand into octal is a bit of a pain, but if you do, at the 18th decimal place where BC and Wolfram differ you end up with the following:

0.000000000000000183697019872102976583909889841150158731462416... is your remainder to be converted so far
0.000000000000000055511151231257827021181583404541015625          = 8 ^ -18

Wolfram gives the 18th decimal as 5, BC as 3. I can't see 5 going into 18 5 times, but 3 times fits nicely. --DarkJMKnight (talk) 20:04, 18 November 2013 (UTC)

Looks like Wolfram is simply using floating-point mathematics, presumably the IEEE "double precision". Interestingly, this is not the first time floating-point maths has been a problem; in 287, a similar problem caused an unintended trivial solution. Sabik (talk) 04:41, 19 November 2013 (UTC)

  • On second thoughts, there's no indication that he used Wolfram Alpha; as with 287, it simply could have been a Perl script (or Python or pretty much any programming language). Sabik (talk) 05:25, 19 November 2013 (UTC)


How can 200 be octal and then mean 310 decimal??? If 200 were octal, that would be 128 decimal, so we would end up writing 128 decimals. Of course 310 octal is 200 decimal, but taking 2008 to mean 31010 is plain crazy, even if it's the only way to make it fit the "four times 666" constraint! What am I missing here? 21:27, 18 November 2013 (UTC)

This Mathematica code searches for the pattern 666 in the octal expansion of 1.5 pi:

digits = RealDigits[3*Pi/2, 8, 10000][[1]]; Select[Range[10000 - 2], Take[digits, {#, # + 2}] == {6, 6, 6} &]
{279, 326, 495, 496, 3430, 3728, 4153, 6040, 7031, 7195, 7647, 7732, 8353, 8435, 8436, 8575, 8768, 9008}

These positions start counting with the leading "4" as position 1. It does not occur in the first 200 digits, but occurs 18 times in the first 10,000 digits. Many other digit combinations occur more times in the first 10,000 digits, including "123" (23 times), "222" (21 times), and "555" (26 times). Note that "xkcd" converted to numbers (a=1, b=2, etc.) is 24, 11, 3, 4. The combination 241134 first occurs in 1.5 pi at digit number 250,745. Dcoetzee (talk) 06:44, 19 November 2013 (UTC)

Wow, this filled up fast. Is it time to remove the Incomplete tag yet? 03:14, 19 November 2013 (UTC)

Please do your adds at the bottom. Otherwise it looks like as the first discussion here and everybody will ignore your comment.
My answer is: NO. We still have to figure out if Randall is wrong or just using an algorithm nobody does understand right now.--Dgbrt (talk) 21:10, 19 November 2013 (UTC)


Someone said there's no indication that Randall used Wolfram, and that double-precision IEEE numbers in mostly any language would cause the same error. This is not true: IEEE double precision numbers (binary64) are stored internally in binary. Converting them to octal would give at most 18 nonzero significant (octal) digits, and from that point on all additional digits would be zeros (remember that an octal digit is equivalent to three bits). What Wolfram does is rounding to a decimal number, which is not round in octal.

I think the previous is an indication that Randall did indeed use Wolfram. Added to that, he used Wolfram in several what-if's, and in one case he used it so heavily that his IP got temporarily banned from Wolfram. This leaves little or no doubts in me that Wolfram is the source of Randall's mistake.

Also, I still would like to know why everybody is interpreting "200 digits" as "2008 digits" and pretending that's equal to "31010 digits" instead of "12810 digits".

And out of curiosity, what happened with 287 and floating point numbers? The explainxkcd for 287 says nothing about floating point. 22:09, 19 November 2013 (UTC)

  • With 287, there was only meant to be one solution, the other solution was unintended. It's mentioned in the discussion only, not in the body of the explanation, but there's a link to an interview where he indicates that it was indeed unintentional. Sabik (talk) 07:13, 20 November 2013 (UTC)
What is the period of the wolfram answer?

What is the repeat period of the octal answer with the 666's, (the length of the repetend) i.e. the one that comes from Wolfram, that is converting 4.71238898038469 decimal to octal? And how many 666's are in the full repetend? Oooh - I like that new word - thanks to repeating decimal! Nealmcb (talk) 23:22, 19 November 2013 (UTC)

Dunno, either Randall uses WolframAlpha whithout further checks, so he has to check his sources, or we all are just dumb.--Dgbrt (talk) 23:54, 19 November 2013 (UTC)
The period is 4882812500. Yes, what I mean is that it repeats every 488281250010 digits. Not sure I want to count the number of 666's in there. Oh, and thanks for the answer about 287, I've seen it now. -- 17:46, 20 November 2013 (UTC)

I hardly dare to ask now... ;)

  • What is an octal expansion?
  • This explanation cannot be complete before someone explains what this actually means, to someone who have never herd of octal expansion before (like me)

Kynde (talk) 15:33, 21 November 2013 (UTC)

You are absolutely right, the incomplete tag is back. It seems only math geeks were working here but it should also be explained for people with less knowledge on math.--Dgbrt (talk) 22:02, 21 November 2013 (UTC)
  • The wikipedia page for Octal contains a complete explanation. I wrote a plainer one but mine is still very long, so instead of posting it here I uploaded it there. It's very crappily formatted and not thoroughly checked as I don't have time for more at the moment, but I might improve it some other day. Please note that the only reason for not posting it here is its length, and in particular it has nothing to do with copyright issues. I mean, everybody feel free to copy, rewrite, summarize, expand, correct, destroy or do whatever to that text with no attribution, just as if it had been posted here. -- 22:37, 21 November 2013 (UTC)
The explain for non math people should be much more simple. Randall likes simple English, I like simple Math. Not everything is covered but more people will understand the essentials. While I like all that details many people don't. We still do need an simple Math explain here.--Dgbrt (talk) 23:42, 21 November 2013 (UTC)
I know and I agree, that's why I kept my explanation out of this discussion. My summarizing skills are just not good enough. I used the time I didn't have to reformat my explanation, but that just means it's now a bit longer than it was. I hope someone else will write a much shorter and simple one, as I just seem to be unable to do so. -- 01:10, 22 November 2013 (UTC)
Thanks for a great explanation. I knew about this system but only for integers. However, still need a word on how to get pi in Octal. Until anyone does better a link could be posted for your explanation! Kynde (talk) 19:54, 23 November 2013 (UTC)

Note that pau is Catalan for peace, which is a good solution for the pi/tau dispute. -- 00:10, 23 November 2013 (UTC)

Has posted this as a trivia item. Kynde (talk) 20:11, 23 November 2013 (UTC)