176 points · by vismit2000 · 11mo ago · 151 comments
On one hand, "rational" and "algebraic" are far more pervasive concepts than mathematicians are ever taught to believe. The key here is formal power series in non-commuting variables, as pioneered by Marcel-Paul Schützenberger. "Rational" corresponds to finite state machines, and "Algebraic" corresponds to pushdown automata, the context-free grammars that describe most programming languages.
On the other hand, "Concrete Mathematics" by Donald Knuth, Oren Patashnik, and Ronald Graham (I never met Oren) popularizes another way to organize numbers: The "endpoints" of positive reals are 0/1 and 1/0. Subdivide this interval (any such interval) by taking the center of a/b and c/d as (a+c)/(b+d). Here, the first center is 1/1 = 1. Iterate. Given any number, its coordinates in this system is the sequence of L, R symbols to locate it in successive subdivisions.
Any computer scientist should be chomping at the bit here: What is the complexity of the L, R sequence that locates a given number?
From this perspective, the natural number "e" is one of the simpler numbers known, not lost in the unwashed multitude of "transcendental" numbers.
Most mathematicians don't know this. The idea generalizes to barycentric subdivision in any dimension, but the real line is already interesting.
1: Almost all numbers are transcendental.
2: If you could pick a real number at random, the probability of it being transcendental is 1.
3: Finding new transcendental numbers is trivial. Just add 1 to any other transcendental number and you have a new transcendental number.
Most of our lives we deal with non-transcendental numbers, even though those are infinitely rare.
Even crazier than that: almost all numbers cannot be defined with any finite expression.
I've commented on this several times. Here's the most recent one: https://news.ycombinator.com/item?id=44366342
Basically you can't do a standard countability argument because you can't enumerate definable objects because you can't uniformly define "definability." The naive definition falls prey to Liar's Paradox type problems.
i tried Math.random(), but that gave a rational number. i'm very lucky i guess?
It's true that no matter what symbolic representation format you choose (binary or otherwise) it will never be able to encode all irrational numbers, because there are uncountably many of them.
But it's certainly false that computers can only represent rational numbers. Sure, there are certain conventional formats that can only represent rational numbers (e.g. IEEE-754 floating point) but it's easy to come up with other formats that can represent irrationals as well. For instance, the Unicode string "√5" is representable as 4 UTF-8 bytes and unambiguously denotes a particular irrational.
When you apply the same test to the output of Math.PI, does it pass?
This is how old temperature-noise based TRNGs can be attacked (modern ones use a different technique, usually a ring-oscillater with whitening... although i have heard noise-based is coming back but i've been out of the loop for a while)
It is e^(pi^2/(12 log 2))
Here's where it comes from. For almost all real numbers if you take their continued fraction expansion and compute the sequence of convergents, P1/Q1, P2/Q2, ..., Pn/Qn, ..., it turns out that the sequence Q1^(1/1), Q2^(1/2), ..., Qn^(1/n) converges to a limit and that limit is Lévy's constant.
For context, a number is transcendental if it's not the root of any non-zero polynomial with rational coefficients. Essentially, it means the number cannot be constructed using a finite combination of integers and standard algebraic operations (addition, subtraction, multiplication, division, and integer roots). sqrt(2) is irrational but algebraic (it solves x^2 - 2 = 0); pi is transcendental.
The reason we haven't been able to prove this for constants like Euler-Mascheroni (gamma) is that we currently lack the tools to even prove they are irrational. With numbers like e or pi, we found infinite series or continued fraction representations that allowed us to prove they cannot be expressed as a ratio of two integers.
With gamma, we have no such "hook." It appears in many places (harmonics, gamma function derivatives), but we haven't found a relationship that forces a contradiction if we assume it is algebraic. For all we know right now, gamma could technically be a rational fraction with a denominator larger than the number of atoms in the universe, though most mathematicians would bet the house against it.
Slight clarification, but standard operations are not sufficient to construct all algebraic numbers. Once you get to 5th degree polynomials, there is no guarantee that their roots can be found through standard operations.
Galois went a step further and proved that there existed polynomials whose specific roots could not be so expressed. His proof also provided a relatively straightforward way to determine if a given polynomial qualified.
For instance, the standard statement that pi us transcendental would become the pi is transcendental in Q (the rational numbers). However, pi is trivially not transcendental over Q(pi), which is the smallest field possible after adding pi to the rational numbers. A more interesting question is if e is transcendental over Q(pi); as far as I am aware that is still an open problem.
(I'm not sure what "the elements of the base need to be enumerable" means—usually, as above, one speaks of a single base; while mixed-radix systems exist, the usual definition still has only one base per position, and only countably many positions. But the proof of countability of transcendental numbers is easy, since each is a root of a polynomial over $\mathbb Q$, there are only countably many such polynomials, and every polynomial has only finitely many roots.)
Proof of what? Needed for what?
The elements of the number system are the base raised to non-negative integer powers, which of course is an enumerable set.
> transcendental numbers are not enumerable
Category mistake ... sets can be enumerable or not; numbers are not the sort of thing that can be enumerable or not. (The set of transcendental numbers is of course not enumerable [per Georg Cantor], but that doesn't seem to be what you're talking about.)
So why bring some numbers here as transcendental if not proven?
That's really all you can do, given that 3 and 4 are really famous. At this point it is therefore just not possible to write a list of the "Fifteen Most Famous Transcendental Numbers", because this is quite possibly a different list than "Fifteen Most Famous Numbers that are known to be transcendental".
No, my dudes. Just no. If it’s not proven transcendental, it’s not to be considered such.
The human-invented ones seem to be just a grasp of dozens man can come up with.
i to the power of i is one I never heard of but is fascinating though!
I think I read a book by this guy as a kid: it was an illustrated mostly black and white book about Chaitin's constant, halting problema and various ways of counting over infinite sets.
Seems like Cantor would have been all over this.
Indeed. And by similar arguments, there are more uncomputable real numbers than computable real numbers. (And almost all transcendental numbers are uncomputable).
In fact we can tighten that to all irrational numbers are manufactured in a mathematical laboratory somewhere. You'll never come across a number in reality that you can prove is irrational.
That's not necessarily because all numbers in reality "really are" rational. It is because you can't get the infinite precision necessary to have a number "in hand" that is irrational. Even if you had a quadrillion digits of precision on some number in [0, 1] in the real universe you'd still not be able to prove that it isn't simply that number over a quadrillion no matter how much it may seem to resemble some other interesting irrational/transcendental/normal/whatever number. A quadrillion digits of precision is still a flat 0% of what you'd need to have a provably irrational number "in hand".
If a square with sides of rational (and non-zero) length can exist in reality, then the length of its diagonal is irrational. So which step along the way isn't possible in reality? Is the rational side length possible? Is the right angle possible?
Five continuous quantities related to each other, where by default when not specified we can safely assume real values, right? So we must have real values in reality, right?
But we know that gas is not continuous. The "real" ideal gas law that relates those quantities really needs you to input every gas molecule, every velocity of every gas molecule, every detail of each gas molecule, and if you really want to get precise, everything down to every neutrino passing through the volume. Such a real formula would need to include terms for things like the self-gravitation of the gas affecting all those parameters. We use a simple real-valued formula because it is good enough to capture what we're interested in. None of the five quantities in that formula "actually" exist, in the sense of being a single number that fully captures the exact details of what is going on. It's a model, not reality.
Similarly, all those things using trig and such are models, not reality.
But while true, those in some sense miss something even more important, which I alluded to strongly but will spell out clearly here: What would it mean to have a provably irrational value in hand? In the real universe? Not metaphorically, but some sort of real value fully in your hand, such that you fully and completely know it is an irrational value? Some measure of some quantity that you have to that detail? It means that if you tell me the value is X, but I challenge you that where you say the Graham's Number-th digit of your number is a 7, I say it is actually a 4, you can prove me wrong. Not by math; by measurement, by observation of the value that you have "in hand".
You can never gather that much information about any quantity in the real universe. You will always have finite information about it. Any such quantity will be indistinguishable from a rational number by any real test you could possibly run. You can never tell me with confidence that you have an irrational number in hand.
Another way of looking at it: Consider the Taylor expansion of the sine function. To be the transcendental function it is in math, it must use all the terms of the series. Any finite number of terms is still a polynomial, no matter how large. Now, again, I tell you that by the Graham's Number term, the universe is no longer using those terms. How do you prove me wrong by measurement?
All you can give me is that some value in hand sure does seem to bear a strong resemblance to this particular irrational value, pi or e perhaps, but that's all. You can't go out the infinite number of digits necessary to prove that you have exactly pi or e.
Many candidates for the Theory of Everything don't even have the infinite granularity in the universe in them necessary to have that detailed an object in reality, containing some sort of "smallest thing" in them and minimum granularity. Even the ones that do still have the Planck size limit that they don't claim to be able to meaningfully see beyond with real measurements.
For example, Graham's number is pretty famous but it's more of a historical artifact rather than a foundational building block. Other examples of non-foundational fame would be the famous integers 42, 69, and 420.
Love the image of mathematicians laboring over flasks and test tubes, mixing things and extracting numbers... would have far more explosions than day-to-day mathematics usually does...
The transcendental number whose value matters (being the second most important transcendental number after 2*pi = 6.283 ...) is ln 2 = 0.693 ... (and the value of its inverse log2(e), in order to avoid divisions).
Also for pi, there is no need to ever use it in computer applications, using only 2*pi everywhere is much simpler and 2*pi is the most important transcendental number, not pi.
Does a number not matter "in practice" even if it's used to compute a more commonly use constant? Very odd framing.
It is not used for computing the value of ln(2) or of log2(e), which are computed directly as limits of some convergent series.
As I have said, there is no reason whatsoever for knowing the value of e.
Moreover, there is almost never a good choice to use the exponential function or the hyperbolic logarithm function (a.k.a. natural logarithm, but it does not really deserve the name "natural").
For any numeric computations, it is preferably to use everywhere the exponential 2^x and the binary logarithm. With this choice, the constant ln 2 or its inverse appears in formulae that compute derivatives or integrals.
People are brainwashed in school into using the exponential e^x and the hyperbolic logarithm, because this choice was more convenient for symbolic computations done with pen on paper, like in the 19th century.
In reality, choosing to have the proportionality factor in the derivative formula as "1" instead of "ln 2" is a bad choice. The reason is that removing the constant from the derivative formula does not make it disappear, but it moves it into the evaluation of the function and in any application much more evaluations of the functions must be done than computations of derivative or integral formulae.
The only case when using e^x may bring simplifications is in symbolic computations with complex exponentials and complex logarithms, which may be needed in the development of mathematical models for some linear systems that can be described by linear systems of ordinary differential equations or of linear equations with partial derivatives. Even then, after the symbolic computation produces a mathematical model suitable for numeric computations it is more efficient to convert all exponential or logarithmic functions to use only 2^x and binary logarithms.
I didn't understand immediately that you were talking about using values related to e in a computational context. But your comment about "brainwashing" seems a bit off. Are you saying that programmers bring e and ln with them into code when more effective constants exist for the same end? That's probably true. But brainwashing is far too strong, since things need to be taught in the correct order in math in order for each next topic to make sense. e really only comes in when learning derivative rules where it's explained "e is a number where when used as the base in an exponential function, that function's derivative is itself." Math class makes no pretense that you ought to use any of it to inform how you write code, so the brainwashing accusation seems off to me.
In calculations like compound financial interest, radioactive decay and population growth (and many others), e is either applied directly or derived implicitly.
> ... 2*pi is the most important transcendental number, not pi.
Gotta agree with this one.
In radioactive decay and population growth it is much simpler conceptually to use 2^x, not e^x, which is why this is done frequently even by people who are not aware that the computational cost of 2^x is lower and its accuracy is greater.
In compound financial interest using 2^x would also be much more natural than the use of e^x, but in financial applications tradition is usually more important than any actual technical arguments.
That is only true in the special case of computing a half-life. In the general case, e^x is required. When computing a large number of cases and to avoid confusion, e^x is the only valid operator. This is particularly true in compound interest calculations, which would fall apart entirely without the presence of e^x and ln(x).
> In radioactive decay and population growth it is much simpler conceptually to use 2^x, not e^x
See above -- it's only valid if a specific, narrow question is being posed.
> In compound financial interest using 2^x would also be much more natural than the use of e^x
That is only true to answer a specific question: How much time to double a compounded value? For all other cases, e^x is a requirement.
If your position were correct, if 2^x were a suitable replacement, then Euler's number would never have been invented. But that is not reality.
The importance of e is that it's the natural base of exponents and logarithms, the one that makes an otherwise constant factor disappear. If you're using a different base b, you generally need to adjust by exp(b) or ln(b), neither of which requires computing or using e itself (instead requiring a function call that's using minimax-generated polynomial coefficients for approximation).
The importance of π or 2π is that the natural periodicity of trigonometric functions is 2π or π (for tan/cot). If you're using a different period, you consequently need to multiply or divide by 2π, which means you actually have to use the value of the constant, as opposed to calling a library function with the constant itself.
Nevertheless, I would say that despite the fact that you would directly use e only relatively rarely, it is still the more important constant.
Except for this conversion from directly measured diameters, one rarely cares about hemicycles, but about cycles.
The trigonometric functions with arguments measured in cycles are more accurate and faster to compute. The trigonometric functions with arguments measured in radians have simpler formulae for derivatives and primitives. The conversion factor between radians and cycles is 2Pi, which leads to its ubiquity.
While students are taught to use the trigonometric functions with arguments measured in radians, because they are more convenient for some symbolic computations, any angle that is directly measured is never measured in radians, but in fractions of a cycle. The same is true for any angle used by an output actuator. The methods of measurement with the highest precision for any physical quantity eventually measure some phase angle in cycles. Even the evaluations of the trigonometric functions with angles measured in radians must use an internal conversion between radians and cycles, for argument range reduction.
So the use of the 2*Pi constant is unavoidable in almost any modern equipment or computer program, even if many of the uses are implicit and not obvious for whoever does not know the detailed implementations of the standard libraries and of the logic hardware.
If trigonometric functions with arguments measured in radians are used anywhere, then conversions between radians in cycles must exist, either explicit conversions or implicit conversions.
If only trigonometric functions with arguments measured in cycles are used, then some multiplications with 2Pi or its inverse appear where derivatives or primitives are computed.
In any application that uses trigonometric functions millions of multiplications with 2Pi may be done every second. In contrast, a multiplication by Pi could be needed only at most at the rate at which one could measure the diameters of some physical objects for which there would be a reason to want to know their circumference.
Because Pi is needed so much more rarely, it is simpler to just have a constant Pi_2 to be used in most cases and for the rare case of computing a circumference from the diameter to use Pi_2*D/2,
Please expand on this. Surely if that were the case, numerical implementations would first convert a radian input to cycles before doing whatever polynomial/rational approximation they like, but I've never seen one like that.
> Because Pi is needed so much more rarely, it is simpler to just have a constant Pi_2 to be used in most cases and for the rare case of computing a circumference from the diameter to use Pi_2*D/2,
Well of course, that's why you have (in C) M_PI, M_PI2, and so on (and in some dialects M_2PI).
Applications such as planes flying, sending data through wires, medical imaging (or any of a million different direct applications) do not count, I assume?
Your naivety about what makes the world function is not an argument for something being useless. The number appearing in one of the most important algorithms should give you a hint about how relevant it is https://en.wikipedia.org/wiki/Fast_Fourier_transform
None of the applications mentioned by you need to use the exponential e^x or the natural logarithm, all can be done using the exponential 2^x and the binary logarithm. The use of the less efficient and less accurate functions remains widespread only because of bad habits learned in school, due to the huge inertia that affects the content of school textbooks.
The fast Fourier transform is written as if it would use e^x, but that has been misleading for you, because it uses only trigonometric functions, so it is irrelevant for discussing whether "e" or "ln 2" is more important, because neither of these 2 transcendental constants is used in the Fast Fourier Transform.
Moreover, FFT is an example for the fact that it is better to use trigonometric functions with the arguments measured in cycles, i.e. functions of 2*Pi*x, instead of the worse functions with arguments measured in radians, because with arguments expressed in cycles the FFT formulae become simpler, all the multiplicative constants explicitly or implicitly involved in the FFT direct and inverse computations being eliminated.
A function like cos(2*Pi*x) is simpler than cos(x), despite what the conventional notation implies, because the former does not contain any multiplication with 2*Pi, but the latter contains a multiplication with the inverse of 2*Pi, for argument range reduction.
It's true that the FFT does not use either of the transcendental numbers e or ln(2), but that's because the FFT does not use transcendental numbers at all! (Roots of unity, sure, but those are algebraic)
> all the multiplicative constants explicitly or implicitly involved in the FFT direct and inverse computations being eliminated.
Doesn't that basically get you a Hadamard transform?
I am sorry, but comments like this are caused by the naivety of not knowing a single things about mathematics.
Do you not understand that mathematics is not just about implementation, but about forming models of reality? The idea of trying to model a physical system while pretending that e.g. the solution of the differential equations x'=x does not matter is just idiotic.
The idea that just because some implementation can avoid a certain constant, that this constant is irrelevant is immensely dumb and tells me that you lack basic mathematical education.
e^(ix) = cos(x) + isin(x). In particular e^(ipi) = -1
(1 + 1/n)^n = e. This is part of what makes e such a uniquely useful exponent base.
Not applied enough? What about:
d/dx e^x = e^x. This makes e show up in the solutions of all kinds of differential equations, which are used in physics, engineering, chemistry...
The Fourier transform is defined as integral e^(i
omega*t) f(t) dt.And you can't just get rid of e by changing base, because you would have to use log base e to do so.
Edit: how do you escape equations here? Lots of the text in my comment is getting formatted as italics.
Cauchy path integration feels like a cheat code once you fully imbibe it.
Got me through many problems that involves seemingly impossible to memorize identities and re-derivation of complex relations become essentially trivial
However, whenever your symbolic computation produces a mathematical model that will be used for numeric computations, i.e. in a computer program, it is more efficient to replace all e^x exponentials and natural logarithms with 2^x exponentials and binary logarithms, instead of retaining the complex exponentials and logarithms and evaluating them directly.
At the same time, it is also preferable to replace the trigonometric functions of arguments measured in radians with trigonometric functions of arguments measured in cycles (i.e. functions of 2*Pi*x).
This replacement eliminates the computations needed for argument range reduction that otherwise have to be made at each function evaluation, wasting time and reducing the accuracy of the results.
Just escape any asterisks in your post that you want rendered as asterisks: this: \* gives: *.
Moreover, you can replace any use of e^x with the use of 2^x, which inserts ln(2) constants in various places, (but removes ln 2 from the evaluations of exponentials and logarithms, which results in a net gain).
If you use only 2^x, you must know that its derivative is ln(2) * 2^x, and knowing this is enough to get rid of "e" anywhere. Even in derivation formulae, in actual applications most of the multiplications with ln 2 can be absorbed in multiplications with other constants, as you normally do not have 2^x expressions that are derived, but 2^(a*x), where you do ln(2)*a at compile time.
You start with the formula for the exponential of an imaginary argument, but there the use of "e" is just a conventional notation. The transcendental number "e" is never used in the evaluation of that formula and also none of the numbers produced by computing an exponential or logarithm of real numbers are involved in that formula.
The meaning of that formula is that if you take the expansion series of the exponential function and you replace in it the argument with an imaginary argument you obtain the expansion series for the corresponding trigonometric functions. The number "e" is nowhere involved in this.
Moreover, I consider that it is far more useful to write that formula in a different way, without any "e":
1^x = cos(2Pi*x) + i * sin(2Pi*x)
This gives the relation between the trigonometric functions with arguments measured in cycles and the unary exponential, whose argument is a real number and whose value is a complex number of absolute value equal to 1, and which describes the unit circle in the complex plane, for increasing arguments.
This formula appears more complex only because of using the traditional notation. If you call cos1 and sin1 the functions of period 1, then the formula becomes:
1^x = cos1(x) + i * sin1(x)
The unary exponential may appear weirder, but only because people are habituated from school with the exponential of imaginary arguments instead of it. None of these 2 functions is weirder than the other and the use of the unary exponential is frequently simpler than of the exponential of imaginary arguments, while also being more accurate (no rounding errors from argument range reduction) and faster to compute.
With this substitution, some formulae become simpler and others become more complicated, but, when also considering the cost of the function evaluations, an overall greater simplicity is achieved.
In comparison with the "e" based exponentials, the binary exponential and the unary exponential and their inverses have the advantage that there are no rounding errors caused by argument range reduction, so they are preferable especially when the exponents can be very big or very small, while the "e" based exponentials can work fine for exponents guaranteed to be close to 0.