# Pi

**URL:** <https://boards.straightdope.com/t/pi/791924>\
**Category:** Factual Questions\
**Created:** [July 23, 2017, 8:47am UTC](https://boards.straightdope.com/t/pi/791924 "2017-07-23T08:47:09Z")\
**Posts on this page:** 20\
**Page:** 11

<div class="post-metadata">

**Author:** ![abashed](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@abashed](https://boards.straightdope.com/u/abashed)\
**Post date:** [July 27, 2017, 10:21am UTC](https://boards.straightdope.com/t/pi/791924/201 "2017-07-27T10:21:19Z")

</div>

> [@Indistinguishable](#):
>
> Or rotation, the ability to turn 90 degrees and such…

Presumably from +1 to -1.

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [July 27, 2017, 10:36am UTC](https://boards.straightdope.com/t/pi/791924/202 "2017-07-27T10:36:46Z")

</div>

**The second third of the proof:**

**The gist:**

But, for any given x, we have that |fsup/sup| ~ |fsup/sup| = N!/(2N)! as N grows large. This decreases towards zero (without actually hitting zero) super-exponentially.

**Short further explanation:**  
This can be seen from the easy Taylor series expansion of fsup/sup; the = is immediate, and the ~ follows from each term dominating the next as N grows large (if you’re worried about commuting limits here, it’s justified by dominated convergence).

**Longer further explanation:**  
Recall that cos’’ = -cos, and cos(0) = 1 while cos’(0) = 0. This means the sequence of values of cossup/sup is 1, 0, -1, 0, repeating. This means the Taylor series of cos(x) is 1 - x[sup]2[/sup]/2! + x[sup]4[/sup]/4! - x[sup]6[/sup]/6! + …, whose degree m term has coefficient zero if m is odd, and (-1)[sup]m/2[/sup]/m! if m is even.

And therefore, the Taylor series of f(x) = cos(sqrt(x)) is 1 - x[sup]1[/sup]/2! + x[sup]2[/sup]/4! - x[sup]3[/sup]/6! + …, whose degree m term has coefficient (-1)[sup]m[/sup]/(2m)!.

And from this Taylor series, we can re-extract the values of fsup/sup; it must be N! \* the degree N coefficient in the previous series, which is to say, it must be (-1)[sup]N[/sup] \* N!/(2N)!.

This tells us what fsup/sup is, and we can also note that this has magnitude N!/(2N)!, which decreases towards zero (without actually hitting zero) “super-exponentially” (in the sense that it approaches zero faster than exponentiation with any fixed base; that is, the N-th root of its value at N eventually becomes smaller than any fixed positive value. You can see this by noting that N!/(2N)! = the reciprocal of (N + 1) \* (N + 2) \* … \* 2N with N many factors, and thus is at least as small as 1/N^N, and thus its N-th root is at least as small as 1/N, which can be made arbitrarily small.)

Now we know that the magnitude of fsup/sup decreases towards zero (without actually hitting zero) super-exponentially. But we want to know the same fact about fsup/sup instead. How do we transform our knowledge about fsup/sup to knowledge about fsup/sup?

Well, we’ll show that the ratio between the two approaches 1 as N grows large; this will show that fsup/sup also must decrease at the same “asymptotic rate”.

Ok. What is the ratio between fsup/sup and fsup/sup?

…Ah, oh, god, it’s past 3:30 AM for me here. I’ll finish this post and the expanded post about the last third of the proof tomorrow. Sorry folks; good night!

---

<div class="post-metadata">

**Author:** ![Teuton](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/teuton/32/3864_2.png) [@Teuton](https://boards.straightdope.com/u/Teuton)\
**Post date:** [July 27, 2017, 10:40am UTC](https://boards.straightdope.com/t/pi/791924/203 "2017-07-27T10:40:45Z")

</div>

> [@abashed](#):
>
> Oh, right. Sounds deep.

An explanation of why it’s useful isn’t hard. If you imagine a number line, you can grasp that it’s only possible to move up and down it - any given number has its place on the line, and it’s either bigger or smaller than any other given number on the line.

There are some quantities, though, for which this isn’t enough. The sine wave is the classic example - as well as a magnitude value (how big it is) we also have a phase value - where it is in its cycle (at a peak, for instance, or on the down slope). So, a value at any given point on a sine wave can be given by how big it is and where it is in the cycle.

This can’t be mapped onto a number line, but can be mapped onto a number plane. You have the standard value first, and then what we call the complex part after - that part is multiplied by the square root of -1,and that allows us to go sideways on the number plane. So, 5 + i7 means 5 along the line, and 7 ‘sideways’ to the line. If you imagine drawing this on a graph, you’ll get a diagonal line, with an angle up from your number line. This angle can be used to represent the phase angle of a sine wave, and this can be used to add sinewaves together. This is very useful in electronics.

Why the square root of - 1 is specifically useful for this is more than I can explain on my phone keyboard without looking up details!

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [July 27, 2017, 10:41am UTC](https://boards.straightdope.com/t/pi/791924/204 "2017-07-27T10:41:03Z")

</div>

> [@Dr.Strangelove](#):
>
> I’m pretty fuzzy on this part “If y were rational with lowest-terms denominator d, then the smallest nonzero value integer polynomials of degree O(N) in y could produce is 1/dO(N)”. I get the overall idea (since as you said it’s the same basic idea as the Niven proof) but somehow it’s not quite gelling. Though as I said, even formulating the question right will probably lead me to the answer.

Here, I’ll give a quick explanation before writing the more involved post later: If you have an integer polynomial of degree k evaluated at n/d, then it looks like integer \* n^k/d^k + integer \* n^(k - 1)/d^(k - 1) + … + integer \* n/d + integer. We can rescale all these terms to have a common denominator of d^k, so the whole thing looks like some integer/d^k. What’s the smallest nonzero size that “some integer/d^k” can have? It’s 1/d^k. It can’t get any smaller than that.

And if k(N) is growing larger linearly as a function of N, then 1/d^k(N) is getting smaller and approaching zero exponentially as a function of N. It can’t be approaching zero any faster than that. In particular, it can’t be approaching zero as fast as N!/(2N)! approaches zero.

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [July 27, 2017, 10:50am UTC](https://boards.straightdope.com/t/pi/791924/205 "2017-07-27T10:50:09Z")

</div>

Complex numbers are useful in far more, and in far more everyday scenarios, than just electrical engineering… They describe the geometry we all live in and reason with great familiarity about every day, ordinary plane rotations.

But I’ve discussed this so many times I tire of explaining it again (or at least tire of explaining it as I tire in general, approaching 4 AM); I’ll let someone else discuss it this time.

---

<div class="post-metadata">

**Author:** ![abashed](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@abashed](https://boards.straightdope.com/u/abashed)\
**Post date:** [July 27, 2017, 11:02am UTC](https://boards.straightdope.com/t/pi/791924/206 "2017-07-27T11:02:48Z")

</div>

🆒

> [@Teuton](#):
>
> An explanation of why it’s useful isn’t hard. If you imagine a number line, you can grasp that it’s only possible to move up and down it - any given number has its place on the line, and it’s either bigger or smaller than any other given number on the line.
> 
> There are some quantities, though, for which this isn’t enough. The sine wave is the classic example - as well as a magnitude value (how big it is) we also have a phase value - where it is in its cycle (at a peak, for instance, or on the down slope). So, a value at any given point on a sine wave can be given by how big it is and where it is in the cycle.
> 
> This can’t be mapped onto a number line, but can be mapped onto a number plane. You have the standard value first, and then what we call the complex part after - that part is multiplied by the square root of -1,and that allows us to go sideways on the number plane. So, 5 + i7 means 5 along the line, and 7 ‘sideways’ to the line. If you imagine drawing this on a graph, you’ll get a diagonal line, with an angle up from your number line. This angle can be used to represent the phase angle of a sine wave, and this can be used to add sinewaves together. This is very useful in electronics.
> 
> Why the square root of - 1 is specifically useful for this is more than I can explain on my phone keyboard without looking up details!

I think I kinda see. If we were limited to the regular number line, that would be okay to represent the ‘magnitude’ of a sine wave (i.e. how big) but does not allow us to express its phase in terms of where it is in relation to 0, right? So, we use sqrt 1 \* (i?\*) to permit us to move (in another dimension almost) to map this. Is 5 + i7 what they call a ‘complex number’ because it comprises real numbers and imaginary ones?

Wonderful, thank you. 🆒

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [July 27, 2017, 2:45pm UTC](https://boards.straightdope.com/t/pi/791924/207 "2017-07-27T14:45:12Z")

</div>

Anyone struggling with the idea of complex numbers, or how they are used to represent rotation, might benefit from looking at the [article on them at Better Explained](https://betterexplained.com/articles/a-visual-intuitive-guide-to-imaginary-numbers/).

(And, in case we’ve gotten too far from the thread topic, [here’s Better Explained’s look at how Archimedes approximated pi](https://betterexplained.com/articles/prehistoric-calculus-discovering-pi/).)

---

<div class="post-metadata">

**Author:** ![Teuton](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/teuton/32/3864_2.png) [@Teuton](https://boards.straightdope.com/u/Teuton)\
**Post date:** [July 27, 2017, 2:55pm UTC](https://boards.straightdope.com/t/pi/791924/208 "2017-07-27T14:55:44Z")

</div>

> [@abashed](#):
>
> So, we use sqrt 1 \* (i?\*) to permit us to move (in another dimension almost) to map this. Is 5 + i7 what they call a ‘complex number’ because it comprises real numbers and imaginary ones?

Square root of -1.

It does actually link in with this thread (which is probably why it was mentioned). We are unable to write out all the digits of Pi’s decimal expansion, but it’s a useful number nonetheless. It’s hard to even imagine the square root of -1 (for me, at least) - it’s the number which, when multiplied by itself, results in -1. We can’t write that down in the standard notation, other than to say "SQRT -1 ". When we square a number on the number line - any of them, positive or negative, rational or irrational - it always results in a positive number. But when talking about complex numbers, we talk about a number which, when squared, results in -1.

I’ve had a quick glance through **Thudlow Boink** ’s link to Better Explained, and it’s very good, although it does give me flashbacks to college.

---

<div class="post-metadata">

**Author:** ![abashed](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@abashed](https://boards.straightdope.com/u/abashed)\
**Post date:** [July 27, 2017, 3:02pm UTC](https://boards.straightdope.com/t/pi/791924/209 "2017-07-27T15:02:44Z")

</div>

> [@abashed](#):
>
> 🆒
> 
> I think I kinda see. If we were limited to the regular number line, that would be okay to represent the ‘magnitude’ of a sine wave (i.e. how big) but does not allow us to express its phase in terms of where it is in relation to 0, right? So, we use sqrt 1 \* (i?\*) to permit us to move (in another dimension almost) to map this. Is 5 + i7 what they call a ‘complex number’ because it comprises real numbers and imaginary ones?
> 
> Wonderful, thank you. 🆒

“…but does not allow us to express its phase in terms of where it is in relation to 0, right?”

I could’ve put that better. I meant it allows us to express its positive and negative phases in terms of unique positions on the number plane.

---

<div class="post-metadata">

**Author:** ![DSYoungEsq](https://avatars.discourse-cdn.com/v4/letter/d/c6cbf5/32.png) [@DSYoungEsq](https://boards.straightdope.com/u/DSYoungEsq)\
**Post date:** [July 27, 2017, 3:05pm UTC](https://boards.straightdope.com/t/pi/791924/210 "2017-07-27T15:05:33Z")

</div>

> [@Lemur866](#):
>
> OK, I’m going to take another stab at this. The square root of 2 has an exact value, and that value is the square root of two. Same with pi. Pi has an exact value, and that value is pi. Yes, these values are not integers. That doesn’t mean they’re not exact. If you multiply the square root of two by the square root of two, you get exactly 2. If you have a square with sides of exactly 1 unit, what is the length of the diagonal? Does it have an exact value? Does the value of the diagonal vary depending on how closely you look at it? Does it get bigger then smaller then bigger than smaller then bigger then smaller? Or is it always the same?
> 
> The answer is that it is always the same. Now, it might be fair to say that the value of that diagonal is not a number, but an idea. Lots of ancient mathematicians agreed with that statement. Numbers are for counting things, like one thing and two things. If you can’t express it in terms of counting numbers, then it’s not a number. Like zero is not a number, or negative numbers are not numbers, they’re ideas, but not numbers. Fractions are numbers, and ratios of numbers are numbers, but anything else is right out.
> 
> And if you complain that you can’t write the value of the square root of two without being imprecise, that’s not true. You can write it precisely: the square root of two. You can’t write a decimal representation of that number precisely, but so what? Did we make a rule that if you can’t write a precise decimal representation of a number then it isn’t’ a number? Where in the rulebook does it say that?

> [@Lemur866](#):
>
> OK, but let’s ask what you’re trying to do here.
> 
> Are you a carpenter trying to figure out how much wood you’ll need to face the side of a 2 foot diameter wooden cylinder?
> 
> Then you’re not making measurements to the millionth decimal place. In this case any approximation of pi that is more accurate than your most inaccurate measurement will be fine. You’ve got a 2 foot cylinder, not a 2.000000000000000000000000 foot wooden cylinder. In this case using 3.14 as your value for pi is fine, because you don’t have measurements more precise than 1 part in a thousand.
> 
> But if you’re doing trigonometry you don’t ever want to calculate using the decimal expression of pi. If your answer is precisely 4π/3, that’s the answer you should give. If you’re doing some complex equation, leave pi in there as an exact value instead of approximating it. And if you need a real world carpenter answer at the very end, only do the calculation using an approximate value of pi at the very end, when you know your significant figures and therefore know how precise a value for pi would be useful.

> [@abashed](#):
>
> Okay, point taken, and thank you. 🙂
> 
> BTW, why do we need to know the sqrt of -1?

> [@abashed](#):
>
> Yes, the beauty of mathematics is not only the way it serves us in the practical world but also as a source of continual analysis and philosophical discourse. What more can you ask? No wonder it has been described as beautiful. 🙂

> [@abashed](#):
>
> I see your point.

Too bad no one made these points back about Post #106. :rolleyes:

---

<div class="post-metadata">

**Author:** ![CurtC](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@CurtC](https://boards.straightdope.com/u/CurtC)\
**Post date:** [July 27, 2017, 3:08pm UTC](https://boards.straightdope.com/t/pi/791924/211 "2017-07-27T15:08:13Z")

</div>

> [@septimus](#):
>
> Not only is 355/113 an excellent approximation to _pi_, it _cannot be improved_ with small numbers.

I did a graph a couple of days ago in Excel, where I took the first 1500 numbers for the numerator, found the denominator that would make the fraction closest to pi, figured the error, and then graphed 1/error for each of the numerators. That way, if it was off by 1%, the number being graphed would be 100. If it was off by 0.01%, the number would be 10,000.

The graph was pretty much just three spikes, which were 355, two times that, and three times that. There were no other ratios that registered more than a pixel or two at the bottom of the graph. It’s pretty astounding how good that ratio is.

---

<div class="post-metadata">

**Author:** ![Exapno\_Mapcase](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/exapno_mapcase/32/1051_2.png) [@Exapno\_Mapcase](https://boards.straightdope.com/u/Exapno_Mapcase)\
**Post date:** [July 27, 2017, 4:18pm UTC](https://boards.straightdope.com/t/pi/791924/212 "2017-07-27T16:18:21Z")

</div>

> [@abashed](#):
>
> Presumably from +1 to -1.

Going from +1 to -1 is a rotation of 180 degrees. From +1 to i is 90 degrees.

And you need i to make e[sup]i\*pi[/sup] equal to -1. It’s worth it just for that.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [July 27, 2017, 5:02pm UTC](https://boards.straightdope.com/t/pi/791924/213 "2017-07-27T17:02:57Z")

</div>

In other words: Multiplying by -1 means reversing direction. Multiplying by -1, and then multiplying by -1 again, means reverse direction and then reverse again, so you end up back where you started. So “the square root of -1” means something that, if you do it twice, results in you reversing direction. And what’s that? Why, of course, it’s just turning 90º.

---

<div class="post-metadata">

**Author:** ![Andy\_L](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Andy\_L](https://boards.straightdope.com/u/Andy_L)\
**Post date:** [July 27, 2017, 7:44pm UTC](https://boards.straightdope.com/t/pi/791924/214 "2017-07-27T19:44:05Z")

</div>

> [@CurtC](#):
>
> I did a graph a couple of days ago in Excel, where I took the first 1500 numbers for the numerator, found the denominator that would make the fraction closest to pi, figured the error, and then graphed 1/error for each of the numerators. That way, if it was off by 1%, the number being graphed would be 100. If it was off by 0.01%, the number would be 10,000.
> 
> The graph was pretty much just three spikes, which were 355, two times that, and three times that. There were no other ratios that registered more than a pixel or two at the bottom of the graph. It’s pretty astounding how good that ratio is.

I’ll have to do that myself - cool idea.

---

<div class="post-metadata">

**Author:** ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)\
**Post date:** [July 27, 2017, 8:43pm UTC](https://boards.straightdope.com/t/pi/791924/215 "2017-07-27T20:43:29Z")

</div>

**septimus** suggested the existence of a such a good rational approximation to pi with a particularly small denominator is not a coincidence, but has something to do with Heegner numbers or with Ramanujan-type infinite series converging to π, but I don’t see that (the partial sums of that series are not rational numbers, for one thing).

---

<div class="post-metadata">

**Author:** ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)\
**Post date:** [July 27, 2017, 9:01pm UTC](https://boards.straightdope.com/t/pi/791924/216 "2017-07-27T21:01:26Z")

</div>

I mean, you have that series, and it rapidly converges to 1/π, but is the fact that a large number occurs near the beginning of the continued fraction expansion of π something other than random chance?

---

<div class="post-metadata">

**Author:** ![Derleth](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Derleth](https://boards.straightdope.com/u/Derleth)\
**Post date:** [July 28, 2017, 12:19am UTC](https://boards.straightdope.com/t/pi/791924/217 "2017-07-28T00:19:35Z")

</div>

(Not talking to **Chronos** , just following on from him…)

> [@Chronos](#):
>
> In other words: Multiplying by -1 means reversing direction. Multiplying by -1, and then multiplying by -1 again, means reverse direction and then reverse again, so you end up back where you started. So “the square root of -1” means something that, if you do it twice, results in you reversing direction. And what’s that? Why, of course, it’s just turning 90º.

And here we have an ambiguity: There are two different ways to turn 90°, clockwise and counterclockwise, both of which will result in reversing direction if you repeat them.

Now, the idea of a quadratic equation having two distinct solutions is familiar to most of us; x[sup]2[/sup] = 4 has solutions x = 2 and x = -2, after all. So we get to the nub, which is: Which direction should be considered positive? That’s not something you can derive from the rest of mathematics; it is inherently arbitrary, and is therefore called a convention.

This convention is the sign convention, and both math and physics agree that counterclockwise is positive. Therefore, on a standard analog clock, a positive 90° rotation takes you from 3 o’clock to 12 o’clock, and, if you put your right hand on the clock, thumb pointing outwards from the clock face, the rest of your fingers will be able to curl in the positive direction. That’s one reason it’s called the right-hand rule.

---

<div class="post-metadata">

**Author:** ![septimus](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/septimus/32/410_2.png) [@septimus](https://boards.straightdope.com/u/septimus)\
**Post date:** [July 28, 2017, 12:20am UTC](https://boards.straightdope.com/t/pi/791924/218 "2017-07-28T00:20:50Z")

</div>

I agree that the “unusual” early 292 in _pi_’s CF form [3;7,15,1,292,1,…] is probably just a random coincidence — if such terminology makes sense about an invariant math constant :smack: — and most _probably_ has no relationship to anything like Heegner numbers … but there’s so much in math that seems weird to me, I had to wonder.

BTW, the largish “15” in the CF, occurring before the “292”, is also “against the odds” and explains fairish approximation 22/7.

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [July 28, 2017, 9:37am UTC](https://boards.straightdope.com/t/pi/791924/219 "2017-07-28T09:37:26Z")

</div>

> [@Indistinguishable](#):
>
> Here, I’ll give a quick explanation before writing the more involved post later: If you have an integer polynomial of degree k evaluated at n/d, then it looks like integer \* n^k/d^k + integer \* n^(k - 1)/d^(k - 1) + … + integer \* n/d + integer. We can rescale all these terms to have a common denominator of d^k, so the whole thing looks like some integer/d^k. What’s the smallest nonzero size that “some integer/d^k” can have? It’s 1/d^k. It can’t get any smaller than that.

Just wanted to say thanks for the elaboration here and in your other posts. Haven’t had the time to really dig into them yet but will do so over the weekend. Even after a quick skim I have a much clearer picture of the proof.

---

<div class="post-metadata">

**Author:** ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)\
**Post date:** [July 28, 2017, 5:35pm UTC](https://boards.straightdope.com/t/pi/791924/220 "2017-07-28T17:35:03Z")

</div>

Glad they helped! (I forgot to go back and finish off the elaboration posts, but will do so tonight or this weekend as well.)

[Previous page](https://boards.straightdope.com/t/pi/791924.md?page=10)

[Next page](https://boards.straightdope.com/t/pi/791924.md?page=12)
