A joke in approximating numbers raised to irrational powers
109 points
7 months ago
| 9 comments
| andreinc.net
| HN
sevensor
7 months ago
[-]

    sin x = x
Half the problems in EE become trivial once you learn this. Sometimes the universe does a bad job of complying with the approximation though.
reply
dotancohen
7 months ago
[-]
Are you familiar with the Taylor series? That's the first organ of the Taylor series, something like two decades ago I checked how accurate it goes past 20 organs:

https://dotancohen.com/eng/taylor-sine.php

reply
xelxebar
7 months ago
[-]
> That's the first organ of the Taylor series

Guessing that "organ" is a typo for "order", but somehow I kind of like envisioning Taylor series as living organisms, with terms being individual organelles.

Thanks for the smile in the morning.

reply
seanhunter
7 months ago
[-]
No Taylor liked to communicate the series musically on various organs. IT got expensive and that’s why noone ever goes beyond the first two or three terms.
reply
brookst
7 months ago
[-]
Any sources to Bach that up?
reply
selimthegrim
7 months ago
[-]
I wonder what Grassmann did
reply
xg15
7 months ago
[-]
Was thinking of organ pipes and imagining it as the first tune. Might also be fitting.
reply
sevensor
7 months ago
[-]
Oh yeah, for sure. And if you like a good time, compare the Taylor series at x=0 for sin(x) to that for exp(jx).
reply
setopt
7 months ago
[-]
Since e^(2πi) = 1, we can also conclude that e^(2πifx) = 1^(fx). This makes Complex Fourier Transforms quite trivial.
reply
m463
7 months ago
[-]
pi = 3.2

(that is an assignment statement)

https://en.wikipedia.org/wiki/Indiana_pi_bill

reply
wmwmwm
7 months ago
[-]
My aero engineering friend from university winds me up every time I see him saying that pi = 22/7 - I finally stopped getting angry, checked and it’s pretty good! I’m still glad he didn’t decide to design planes after he graduated though!
reply
nomemory
7 months ago
[-]
Fun fact, in the book Life Of Pi, the kid stays exactly 227 days on the boat with the tiger.
reply
defrost
7 months ago
[-]
That was a near miss for the industry, real aerospace nerds use 355/113 ...
reply
pkoird
7 months ago
[-]
I am not sure I understand. Sin(x) approaches x only when x approaches 0. When else does the universe does a bad job with this approximation?
reply
adgjlsfhk1
7 months ago
[-]
the joke is that sometimes the universe is bad at making sure x always approaches 0.
reply
philipov
7 months ago
[-]
sin(x)=x in the same way that c=π=1 when doing cosmology.
reply
bubblyworld
7 months ago
[-]
At least you can often recover the constants after the fact with dimensional analysis in cosmology =P
reply
mr_mitm
7 months ago
[-]
1=c=G=hbar and sometimes =k is not even a joke, that's just natural units. Pi=e=1 however ... is only half a joke, because cosmologists are often only interested in orders of magnitudes, and even those are sometimes approximated.
reply
parsimo2010
7 months ago
[-]
After following the correct link from @nomemory in the comments, this is good for a bit of a chuckle once you see the formula. If you can evaluate the formula you probably have a calculator or computer on hand and could compute the original value to double precision (I'm not even sure that the approximation would compute faster, but I didn't benchmark it).

But even though the approximation has no value in a real world application, the description of getting to the approximation is really good. I've never heard of Pade approximations before, and I liked the lead in from small angle approximations and Taylor series. I'd say this post is accessible to (and can be appreciated by) advanced undergraduates in engineering or math or comp sci.

reply
nomemory
7 months ago
[-]
reply
jbmsf
7 months ago
[-]
Happy to see someone else who watches Michael Penn videos.
reply
epistasis
7 months ago
[-]
I came here to say the same thing!

YouTube has become a fantastic place for this long tail of content, in this particular case a bunch of interesting math problems and tricks presented on a blackboard. Or, even full classes, from a person focused on honing pedagogy.

3blue1brown is another amazing channel for math as well.

I have a feeling that this sort of content is the seeds of very great things for humanity. In the 20th century, ET Jaynes talks about how people never get credit in academia for creating simpler paths to greater understanding. But with YouTube, creators can both reach an audience and also find patrons to support them, or maybe even make a living off of YouTube directly with enough viewers.

Motivated students have such resources at their fingertips just from an internet connection, if they happen to get lucky enough to find the right resources.

reply
lanstin
7 months ago
[-]
math does every 30 or 50 years simplify stuff. It's hard for the originators to do it, they get so familiar they are able to get weird intuitions that make the difficult tractable. I listened to some of the simple groups people talking about it, and they just had crazy detailed knowledge about all sorts of group properties and prime properties and so on. Totally inscrutable without devoting your life to it.
reply
NameError
7 months ago
[-]
Reminds me of a cool proof I saw recently that there are two numbers a and b such that a and b are both irrational, but a^b is rational:

Take sqrt(2)^sqrt(2), which is either rational or not. If it's rational, we're done. If not, consider sqrt(2) ^ (sqrt(2) ^ sqrt(2)). Since (a^b)^c = a^bc, we get sqrt(2) ^ (sqrt(2))^2 = sqrt(2)^2 = 2, which is rational!

It feels like a bit of a sleight of hand, since we don't actually have to know whether sqrt(2)^sqrt(2) is rational for the proof to work.

reply
tzs
7 months ago
[-]
I wonder what the easiest to prove example of a, b irrational with a^b rational is?

The easiest I can think of offhand would be e^log(2). To prove that we need to prove that e is irrational and the log(2) is irrational.

To prove log(2) is irrational one approach is to prove that e^r is irrational for rational r != 0, which would imply that if log(2) is rational then e^log(2) would be irrational. To prove that e^r is irrational for irrational r it suffices to prove that e^n is irrational for all positive integers n.

We'd also get the e is irrational out of that by taking n = 1, and that would complete our proof that e^log(2) is an example of irrational a, b with a^b rational.

So, all we need now is a proof that e^n is irrational for integers n > 0.

The techniques used in Niven's simple proof that pi is irrational, which was discussed here [1], can be generalized to e^n. You can find that proof in Niven's book "Irrational Numbers" or in Aigner & Ziegler's "Proofs from THE BOOK".

That can also be proved by proving that e is transcendental. Normally proofs that specific numbers are transcendental (other than numbers specifically constructed to be transcendental) are fairly advanced but for e you can do it with first year undergraduate calculus. There's a chapter in Spivak's "Calculus" that does it, and there's a proof in the aforementioned "Irrational Numbers".

[1] https://news.ycombinator.com/item?id=41178560

reply
cruegge
7 months ago
[-]
I think a = sqrt(2), b = log(9)/log(2) with a^b = 3 is easier. To show that b is irrational, assume b = n/m for integer n, m. Then 9^m = 2^n, which can't be the case since the lhs is odd and the rhs is even.
reply
tyilo
7 months ago
[-]
Also see https://math.andrej.com/2009/12/28/constructive-gem-irration... for a similar proof using 2^(log_2 3)
reply
xanderlewis
7 months ago
[-]
> To prove that e^r is irrational for irrational r

You mean for rational r, don’t you?

reply
tzs
7 months ago
[-]
Yup!
reply
brianush1
7 months ago
[-]
pretty sure you have a typo, should be "If not, consider (sqrt(2) ^ sqrt(2)) ^ sqrt(2)."
reply
seanhunter
7 months ago
[-]
Well the proof I would use is let a = e and b = i(pi).

e^(i theta) = cos theta + i sin theta (Euler's identity) thus e^(i pi) = cos pi + i sin pi = -1 + i(0) = -1

We know that e and i pi are irrational (in fact i pi isn't even a real) and -1 is rational.

Therefore there exist two numbers a and b such that both a and b are irrational but a^b is rational.

In fact log of just about anything is irrational so e^(log x) works as well for just about all rational x, but Euler's identity is cool so I wanted to use that.

reply
enugu
7 months ago
[-]
One interesting result implies that numbers like 3^(sqrt(3)) will be transcendental (ie no polynomial will evaluate them to 0).

https://en.wikipedia.org/wiki/Gelfond%E2%80%93Schneider_theo...

reply
wging
7 months ago
[-]
Small but important correction: no polynomial with integer coefficients (equivalently, rational coefficients). p(x) = (x - 3^(sqrt(3))) is a perfectly fine polynomial with real coefficients.
reply
enugu
7 months ago
[-]
Yes, I should have mentioned polynomials with rational coefficients(or indeed any algebraic numbers as coefficients due to transitivity of being algebraic).
reply
immibis
7 months ago
[-]
No polynomial with rational coefficients. Of course x-y evaluates to 0 when x=y, even if y is a transcendental number.
reply
nightpool
7 months ago
[-]
Kinda weird that we don't get a graph for the final "solution"? I was looking forward to seeing how it compared to the other plots!
reply
nomemory
7 months ago
[-]
Good idea. I think I've rushed into publishing this. Anyway, I've reposted the link, and I will do the graph you've mentioned.
reply
Miniminix
7 months ago
[-]
Secondly, I remember watching a few months ago a video from Michael Penn, about something called Padé Approximations: Pade Approximation – unfortunately missed in most Caclulus courses. It was a subject worth exploring.
reply
xdavidliu
7 months ago
[-]
for a second I thought 404 was the joke. Tried thinking hard for maybe 10 seconds to figure out why it was the joke, but then realized it was not.
reply
nomemory
7 months ago
[-]
An unfortunate mistake...
reply
0xml
7 months ago
[-]
pi^4+pi^5=e^6 lol
reply