3 ms·
> Of course mathematics is hard. That wasn't what was said. What was said was "A great deal of practical mathematics is not hard.". The notation "e^(i x pi)"i
by roenxi 6y ago
> Of course mathematics is hard.
That wasn't what was said. What was said was "A great deal of practical mathematics is not hard.".
The notation "e^(i x pi)"is a crime in 2 languages against countless students. Why E? No good reason. Why pi? Also no good reason. i? When they named it they didn't even know if it was a real thing. They have many faces, and the notation manages to avoid representing a single one of them. Even "self_diff(rotate*half_turn)" would be an improvement; at least some of the meanings are captured.
Naming things is hard, but this is literally 1-letter-naming applied to the 3 most common and important functions humanity has ever defined. The only excuse for it was up until ~2,000AD the mathematicians were working by hand.
- tsimionescu 6y agoBut pi has lots of meanings. Sure, it represents a half-turn in geometry, but that is in no way its only meaning (for example, it is also a transcendental real number). The same is true for S. And the fact that that exponentiation with complex exponents is isomorphic with geometric operations is a non-trivial result that your notation losses. For example, log(e^i x pi) = i x pi. Would that be as self-evident as log(self_diff(rotate x half_turn)) = rotate x half_turn?
- roenxi 6y agoThere is a lot more to work with there than with traditional notation. Traditional notation is literally one letter. I'd be surprised, on a tech forum, if people didn't see at least the smallest hint of a problem at single-letter naming. The tech industry moved away from that approach with a certain implicit urgency.
- tsimionescu 6y agoThere are many differences between the practice of mathematics and programming, to the point that I do t believe that they are comparable. One basic thing is that PI (and even more so E) are pure abstractions. They correspond to certain physical or intuitive concepts in certain contexts, but their identity across contexts is more important. Even in programming, we sometimes use one-letter variable for very abstract things (the loop variables i, j, k; T, U, V as type arguments in C++ and co, or a, b, c in Haskell; and probably others). Another major difference is the way this is actually done. Programs are written once and then mostly read, tweaked, debugged. Mathematics is all about writing and writing and writing, a lot of times from scratch. You're not as Lilly to be editing a file from 2 years ago, you're more likely to be writing a new attempt from scratch. And, people will likely only read your final version, not your hundreds of attempts before. So efficiency in writing your ideas is all the more important than in coding. Another aspect is that, a lot of the time, the mathematician will spell out a lot of intermediate steps between a problem and a solution that, in a computer program, actually fall in the execution, since we're not in the habit of proving our code reaches the final state we envision (even informally); and certainly not in-line with the rest of the program. So again, in mathematics you end up writing a lot more the same few symbols, making long words all the more harmful. Imagine X + 6 = 5X X - 5X = -6 -4X = -6 X = 6 / 4 Spelled out as Unkown plus 6 is equal to 5 times Unknown Unknown minus 5 times Unknown is equal to negative 6 Negative 4 times Unknown is equal to negative 6 Unknown is equal to 4 divided by 6 Which of these is clearer and easier to follow? Edit: I'll also add that function notation works great for unary and maybe binary functions (though operator notation is generally nicer for binary functions), but it becomes horrible for anything past that. For example, the sigma notation for sums is much easier to remember than if I wrote `sum(1, 789, some_value squared)`.
- roenxi 6y agoDon't get me started on the notation for negative numbers, that notation is so easy to miss. Mucking up a calculation because it isn't clear which term a minus is associated with must be one of the single most common errors in all of mathematics. I might actually start experimenting with neg(6) instead of -6 after this conversation now that you've made me think about it. > Mathematics is all about writing and writing and writing, a lot of times from scratch. Mathematics is all about clever people communicating precise ideas. > Even in programming, we sometimes use one-letter variable for very abstract things (the loop variables i, j, k; T, U, V as type arguments in C++ and co, or a, b, c in Haskell; and probably others). They're defined locally though. A loop variable in one program is totally logically unconnected from a loop variable in another program to the point where programmers might give them mutually contradictory meanings. If the meaning was shared across all programs then yes the 1-letter-names would be troubling. > or a, b, c in Haskell And part of the reason Haskell doesn't catch on is because very few people can read Haskell programs; I know my interest in it ended when I saw =<< then decided to learn a lisp instead. I still live in cheerful ignorance of whatever that symbol means. I can't even search for it I get results pages in Chinese (!!). It is a bad community to look to on the subject of how to communicate ideas.
- oalae5niMiel7qu 6y agoThat "log(e^i x pi) = i x pi" is not self-evident at all. The only reason you know it is because you attended a math class and your professor made you solve 60 problems from a $1,000 textbook until you memorized it. I don't even know what "e^i x pi" means. How does that translate into C notation? Is it pow(e, i) * pi, or is it pow(e, i) * x * pi, or is it something else entirely?
- tsimionescu 6y agoUnfortunately, the text inputs I have available are not good enough to represent the actual maths notation, which is extremely clear in this respect: it would have an e, and then in the superscript, i π. Since this is such a well known formula (Euler's Identity), I didn't think it would be a problem. In C notation, this would be pow(e, i * π). Or maybe pow(i*π, e), I don't remember and the notation is pretty bad. And the point about exponentiation is very simple, and I didn't need to do hundreds of exercises to remember: the natural logarithm of e raised to some X is X, whatever that X may be. The other commenter's note was that raising some constant to an imaginary number is a very obscure way of expressing the geometric operation that this represents (multiplying by e^iπ is equivalent to rotating a complex number by a half circle). I was pointing out that, while that is true, it loses the algebraic interpretation, which also has value.
- oalae5niMiel7qu 6y agoI agree with the other poster. If you can memorize log(e^N) = N, you could have memorized other notations for expressing the same. Math notation doesn't make Euler's Identity self-evident, and can be used to obscure the geometric operations taking place. To those who haven't memorized Euler's Identity (I'm aware of it due to your comment, but will probably forget it in a day or two), this "self-evident" truth is invisible no matter which notation is used. C notation is bad, but has the advantage of being precisely representable in ASCII. To post math notation you'd need to upload a PNG somewhere.
- jiggawatts 6y agoIt's worse than that: The constant π is the wrong one! Never mind that it's a Greek letter, because we all studied that in our Ancient Greek classes, right alongside Latin and philosophy, where we read Plato. No, the real issue is that the circle constant is 6.28319, not 3.14159. That's why a "full turn" is 2π instead of 1. That's why every time I read an equation involving circles, or spheres, or any similar notion I have to take the constant that is in front of π and mentally divide by two. And nobody should dare pipe up and claim that these are isomorphic and it "doesn't matter", because it does. There's a tendency in modern theoretical physics to just ignore random small constant factors in equations, even when using natural units. In that case there ought not to be any unexplained constants! Any numbers in those equations ought to have an essential physical meaning, a real interpretation. Numbers ought to count things. But they don't, because of stupid extra constants like the ones needed next to π. This "2" gets blended into everything else, so you get stupid shit like the "8" in the Einstein field equations. Eight of what is being counted here exactly? Oops.. no wait.. 4 circle constants are actually 8 half-circle-constants.
- andrepd 6y agoLearn that i := imaginary unit. From then on, every time you want to write the imaginary unit just write i. Skip learning that i := imaginary unit. Write "imaginary_unit" every time you want to refer to it, for maximum clarity. Choose the latter and now you have to write "pow(euler_constant, mul(imaginary_unit, circle_half_turn))". Does this sound "maintainable"?
- bmh100 6y agoAs a professional software engineer who is also formally educated in statistics, I actually think it does sound more maintainable.