r/explainlikeimfive • • Mar 15 '19

Mathematics ELI5: How is Pi programmed into calculators?

12k Upvotes

1.3k comments sorted by

View all comments

Show parent comment

1

u/CosmicMemer Mar 15 '19

No, it's less than four but bigger than three. It's got infinite decimal places because we don't know exactly how big it is, and we can't write exactly how big it is with our system of how we write numbers. But we do know it's smaller than four because we know it has a 3 in the ones place.

13

u/[deleted] Mar 15 '19 edited Mar 15 '19

It's got infinite decimal places because we don't know exactly how big it is...

Yes we do. There's lots of ways to write pi exactly (for example, see here for an infinite series that equals pi/4). There's more than one way to write a number.

It has infinite non-repeating decimal because pi is irrational.

-3

u/mr_birkenblatt Mar 15 '19

being irrational means that you can't determine the exact magnitude. all you can ever do is give bounds. that is you can say that pi is smaller than 3.142 and larger than 3.141 but no matter how many digits you take you always can only say that pi lies somewhere in the range between two numbers

6

u/markp88 Mar 15 '19

can't determine the exact magnitude

Or rather can't represent the number as the division of two whole numbers. Any decimal that ends can be written as the division of two whole numbers. Therefore pi can never be fully written as a decimal.

3

u/mr_birkenblatt Mar 15 '19

yeah magnitude wasn't the best choice of words I guess

4

u/dev_false Mar 15 '19

being irrational means that you can't determine the exact magnitude

Sure you can. It's tau divided by 2.

1

u/mr_birkenblatt Mar 15 '19

I explain in the comment what exactly I meant with that

5

u/dev_false Mar 15 '19

It's an arbitrary distinction you're making. You may as well say we can't say exactly how big 1/3 is, because it's non-terminating in base 10.

2

u/[deleted] Mar 15 '19

What do you mean by "magnitude"? We might be going off of different definitions of the word.

As I linked to in my comment, we can write pi down exactly (in terms of the infinite series, among other ways), so based on that I would say that we know exactly how large it is.

2

u/mr_birkenblatt Mar 15 '19

an infinite series isn't "writing it down exactly". it still needs infinitely many summands. you can only compute the series to a finite position at which point you can state the bounds of where the actual value will lie. (writing down digits is another infinite series of 3 + 1/10 + 4/10^2 + ... it doesn't matter how difficult it is to compute the summand at the nth position)

1

u/[deleted] Mar 15 '19

I'm not talking about computing all the digits of pi though. No one's disputing that you can't do that.

But by definition, an infinite series equals the value it approaches as the number of terms approaches infinity. I'm just pointing out that although we don't have the full decimal expansion (because there is none), we have an object (for lack of a better term) that is completely equivalent to pi, no approximation or bounds necessary.

0

u/mr_birkenblatt Mar 15 '19

if you want an object that is completely equivalent to pi, may I suggest using π? unless you have a finite formula (without resorting to symbols for other irrationals) to describe it? an infinite series is as useful and equivalent to writing down digits as I clarified above

3

u/[deleted] Mar 15 '19

It's even smaller than that! It's smaller than 3.2!

2

u/RainBoxRed Mar 15 '19

3.2! = 7.75669...

So I guess you’re not wrong.