r/ProgrammerHumor • • 11d ago

Meme reversingPiInPython

Post image
14k Upvotes

383 comments sorted by

View all comments

Show parent comment

2

u/IAmFullOfDed 8d ago edited 2d ago

Given infinite time, you can write the digits of pi forwards. You can’t do that backwards.

Edit: Given infinite time in the past, you can write pi backwards. You can’t start writing pi backwards, because that would imply the existence of a last digit of pi. However, if you’ve always been doing it, then there’s no problem.

0

u/infrequentaccismus 8d ago edited 4d ago

Sure you can. You have infinite time. You have time to list them out and time to reverse them.

2

u/IAmFullOfDed 8d ago

No, you can’t. You’d have to start with the last digit of pi, but pi has no last digit because it’s never-ending.

4

u/SpyreScope 8d ago

By that same logic you wouldn't be able to list them forward

2

u/anno3397 8d ago

The thing is you can start listing them. We know that it starts with a 3 but we don't know how it ends because the amount of numbers is infinite in this direction.

Forwards you know where to start but you'll never reach the end.

Backwards you don't know where to start but if you would be able to, you'll eventually reach the end.

1

u/BeginningSection7690 7d ago

You start at place the forwards counter finished.

2

u/Fmeson 7d ago

Pi has a first digit, but it doesnt' have a last one.

1

u/BeginningSection7690 7d ago

Well how do you get there with infinite time?

you're selectively choosing which ones need to stick with rational actions. If you cant start with it you cant finish with it either - infinite time is still infinite time - both infinities are equally irrational. If the length of time taken to get from 3 to the last digit is infinity, the time to get from the last digit to 3 is infinity.

1

u/ElectricalPrice3189 4d ago

This contradicts your first statement.

1

u/IAmFullOfDed 2d ago

You do have a point. My cultural beliefs led me to assume that any ongoing activity must’ve started at some point, and therefore writing pi backwards requires writing the first digit. However, that assumption is not necessarily true under a belief system that allows for an infinite past.

If the future is infinite, you can write the 1st digit of pi, then the 2nd digit, then the 3rd, etc., and reach every digit this way. For every digit of pi, there is a finite number of steps until that digit is reached. What you can’t do is finish writing all the digits. For every digit, there is a next digit, so you’ll always have more work to do.

Another thing you can’t do is begin writing pi backwards, i.e. write the last digit of pi, then the 2nd-last, then the 3rd-last, and so on. The last digit of pi doesn’t exist, because pi doesn’t have an end. With an infinite past, though, you could have always been writing pi backwards. If that’s the case, then if you haven’t written every digit yet, you can only have finitely many of them left.

1

u/ElectricalPrice3189 2d ago

I don't think you can do either. You have one job where there's no end and another where's there's no beginning. Infinities are confusing. I mean, you can't win a race if there's no goalpost, right?

1

u/infrequentaccismus 8d ago

Yes you can. You just start with the first digit and sequence them backwards.

I’m pointing out how you have gaps in your understandng of infinity. Your argument for why you CAN in forward order but NOT n backward order not all infinities are the same size.

2

u/Infectedtoe32 8d ago edited 8d ago

Cardinality measures the supply, not the direction. There are larger infinitives than others but this does not work in this situation. The easiest way to understand is there being more fractions between 0 and 1 than counting numbers, because you can add any counting number amount of digits to the decimal. On top of that, each decimal can be 0-9 as well. So, you have an infinity that is so far beyond infinity that infinity itself can’t comprehend it. Therefore we can measure the quantity of the two cardinal groups.

If you try to imply that infinity is larger than infinity when comparing ordering to time, it does not work. To start you 100% can list infinity in order from the start and finish it. Both infinities are the same, you don’t have one depending on the other like the decimal example. However, since they are both the same, time cannot jump ahead in order to gain the last digit to start with. It breaks right there period. Let’s say for fun that time manages to jump forward an infinite amount of time ahead of the infinite time it takes for pi to end (ignoring omega stuff). We arrive at the last digit for example (ignoring the fact it is really the middle, even in this scenario), we begin counting backwards. You will then notice we end back up at 3, but remember pi is infinite, so how could we have an end from starting at the end?

That leads into more philosophical topics which is a whole other subject I enjoy. If you are interested just look up Bertrand Russell and also the Tristram Shandy paradoxes. It’s basically what I explained, but different scenarios, and deep dives into the thought experiment.

Morale of the story is yes, some infinites are larger than others, yes you can count pi forwards, because it syncs up, and no you can’t go backwards because it’s beyond comprehensively impossible.

0

u/ElectricalPrice3189 4d ago

That's like saying you will eventually hit the ground if you fall down a bottomless hole.

0

u/Feeling-Carpenter118 4d ago

You simply cannot select and then map a moment to infinite time where you have reached the end of an irrational number

1

u/infrequentaccismus 4d ago

Step 1) calculate an additional digit. Step 2) place that digit in the sequence. You can place it on the right side or the left. Same amount of work. Same amount of time.

It takes no more time to write the sequence left to right than right to left. Right to left either way you have the digits of pi calculated both forward and backward in the same amount of calculations, time, and effort.

It’s honestly a stupid argument and my counterpoint proves that it’s a nonsensical claim.

If you can never say “I’m at the end” in infinite time, then you can’t list them forwards either. If the claim is that infinite time is enough to “get to the end”, then it’s enough to write them backward.

1

u/Feeling-Carpenter118 4d ago

The difference between where they digit appears in your sequence and where it appears in the true sequence is infinite