News for hackers. Stuff that matters.
Re:Rational or Not? This Basic Math Question Took Decades to... by rokob on Thursday January 09, 2025 @01:57PM (#42648754)
I could believe pi*e rational but pi+e being rational would blow my mind.
Re:Rational or Not? This Basic Math Question Took Decades to... by sunshowers on Thursday January 09, 2025 @02:29PM (#42649031)
I would be shocked if either of them were proven to be rational.
Re:Rational or Not? This Basic Math Question Took Decades to... by programjames on Thursday January 09, 2025 @03:30PM (#42649562)
Well, e^pi - pi = 20, is rational.
Re:Rational or Not? This Basic Math Question Took Decades to... by hollerith on Thursday January 09, 2025 @03:33PM (#42649586)
It is not exactly 20.
Re:Rational or Not? This Basic Math Question Took Decades to... by toth on Thursday January 09, 2025 @04:33PM (#42650000)
Very nice, didn't know about that one!

In a similar vein, Ramanujan famously proved that e^(sqrt(67) pi) is an integer.

And obviously exp(i pi) is an integer as well, but that's less fun.

(Note: only one of the above claims is correct)

Re:Rational or Not? This Basic Math Question Took Decades to... by mvdtnz on Thursday January 09, 2025 @07:19PM (#42651222)
You didn't know that one because it's a lie. He's telling lies.
Re:Rational or Not? This Basic Math Question Took Decades to... by toth on Friday January 10, 2025 @04:25AM (#42654067)
Charitably it was a joke, as was my quip about `e^(sqrt(67) pi)`. It is a funnier joke without a disclaimer at the end, but unlike GP I couldn't bring myself to leave one out and potentially mislead some people...

What I meant was that I didn't know that `e^pi - pi` is another transcendental expression that is very close an integer. You might think this is just an uninteresting coincidence but there's some interesting mathematics around such "almost integers". Wikipedia has a quick overview [1]. I didn't realize it before, but they have GP's example and also the awesome `e + pi + e pi + e^pi + pi^e ~= 60`.

[1] https://en.wikipedia.org/wiki/Almost_integer

Re:Rational or Not? This Basic Math Question Took Decades to... by isaacfrond on Friday January 10, 2025 @04:10AM (#42653982)
The number you are looking for is e^(sqrt(163) pi). According to Wikipedia:

In a 1975 April Fool article in Scientific American magazine,[8] "Mathematical Games" columnist Martin Gardner made the hoax claim that the number was in fact an integer, and that the Indian mathematical genius Srinivasa Ramanujan had predicted it – hence its name.

It is not an integer of course.

Re:Rational or Not? This Basic Math Question Took Decades to... by toth on Friday January 10, 2025 @04:31AM (#42654102)
Actually `e^(sqrt(n) pi)` is very close to being an integer for a couple of different `n`s, including 67 and 163. For 163 it's much closer to an integer, but for 67 you get something you can easily check in double precision floats is close to an integer, so I thought it worked better as a joke answer :)

FYI, the reason you get these almost integers is related to the `n`s being Heegner numbers, see https://en.wikipedia.org/wiki/Heegner_number.

Re:Rational or Not? This Basic Math Question Took Decades to... by Someone on Friday January 10, 2025 @09:12AM (#42655700)
> The number you are looking for is e^(sqrt(163) pi) […] It is not an integer of course.

Of course? I’m not aware that we have some theorem other than “we computed it to lots of decimals, and it isn’t an integer” from which that follows.

Re:Rational or Not? This Basic Math Question Took Decades to... by less_less on Friday January 10, 2025 @12:09PM (#42657511)
It's not really "of course", and I don't think we have such a theorem in general. But in this case, I believe the fact that it's not an integer follows from the same theorem that says it's very close to an integer. See eg https://math.stackexchange.com/questions/4544/why-is-e-pi-sq...

Basically e^(sqrt(163)*pi) is the leading term in a Laurent series for an integer, and the other (non-integer) terms are really small but not zero.

Re:Rational or Not? This Basic Math Question Took Decades to... by nimih on Thursday January 09, 2025 @04:59PM (#42650223)
Do you have a citation for the rationality of e^pi - pi? I couldn't find anything alluding to anything close to that after some cursory googling, and, indeed, the OEIS sequence of the value's decimal expansion[1] doesn't have notes or references to such a fact (which you'd perhaps expect for a rational number, as it would eventually be repeating).

[1] https://oeis.org/A018938

Re:Rational or Not? This Basic Math Question Took Decades to... by chowells on Thursday January 09, 2025 @05:15PM (#42650380)
Re:Rational or Not? This Basic Math Question Took Decades to... by nimih on Thursday January 09, 2025 @05:28PM (#42650500)
Is the joke here that if you lie to people (on the Internet or otherwise), they’ll take it at face value for a little bit and then decide you’re either a moron or an asshole once they realize their mistake?
Re:Rational or Not? This Basic Math Question Took Decades to... by chowells on Thursday January 09, 2025 @05:30PM (#42650520)
Nah. I'd read it as there being an expectation that the audience already knew the joke and they were playing the favorites.
Re:Rational or Not? This Basic Math Question Took Decades to... by Izkata on Friday January 10, 2025 @07:07PM (#42661893)
Also that "black hat" character is consistently evil in every comic he's in.
Re:Rational or Not? This Basic Math Question Took Decades to... by c0redump on Friday January 10, 2025 @02:29AM (#42653472)
Wow, you just made my day with this! What a fantastic result! Beautiful.

Edit: looks like I swallowed the bait, hook like and sinker

Re:Rational or Not? This Basic Math Question Took Decades to... by chongli on Thursday January 09, 2025 @02:30PM (#42649042)
I mean you just have to get to the point where all of the trailing decimal places (bits) form a repeating pattern with finite period. But since there are infinitely many such patterns it becomes extremely hard to rule out without some mechanism of proof.
Re:Rational or Not? This Basic Math Question Took Decades to... by dvt on Thursday January 09, 2025 @06:15PM (#42650824)
I'm kind of in the opposite camp. If Schanuel's conjecture is true, then e^iπ = 0 would be the only non-trivial relation between e, π, and i over the complex numbers. And the fact that we already found it seems unlikely.
Re:Rational or Not? This Basic Math Question Took Decades to... by seanhunter on Friday January 10, 2025 @12:16AM (#42652736)
you mean e^(i pi)=-1, which is known as Euler's identity and is a specific case of Euler's formula

e^(i theta) = cos theta + i sin theta

It is a matter of definition in complex analysis that the formula is true, so since sin pi = 0 and cos pi = -1, if you set theta=pi you have e^(i pi)=-1

Re:Rational or Not? This Basic Math Question Took Decades to... by botanical76 on Friday January 10, 2025 @07:44AM (#42655126)
Thanks for ringing some bells. It's been a long time since I used that equation.