News for hackers. Stuff that matters.
Re:Maths notation is needlessly complex [video] by catpolice on Thursday July 21, 2016 @02:56PM (#12139140)
I don't like it for a number of reasons.

One relatively simple one is that it doesn't naturally convert to a typed out version. Outside of category theory, where big commutative diagrams really do a ton of work, we should try to avoid introducing too much notation you can't type out, especially at the introductory level. Suppose two kids are trying to study together over facebook chat - how are they going to write these huge triangles out?

Second, it's actually unecessarily complicated. It introduces three concepts (exponentiation, logarithms and roots) as though they were entirely separate. But actually, the easiest way to understand how to work with roots is to just define them in terms of exponentiation. E.g. the nth root of x is just x^(1/n). All of the normal rules for roots follow from the rules for exponentiation (and fractions) immediately. You don't need a third side to the triangle, that's just adding extra complications - all you really need is exponentiation and logarithms and a way of representing that they're inverse operations in a certain sense.

So there's actually a simpler way to express all this in a notation that's much more similar to what we've seen before. The trick is to draw out parallels between familiar operations like multiplication and division. Note: I made this up 10 minutes ago, apologies if there are very similar proposals, it's just really obvious.

Most of the basic arithmetic operations can be written using binary infix operators, e.g. +, * and /. It turns out, exponentiation and logarithms can be too. In fact, if you're typing, exponentiation already is.

Let x raised to the nth power be written as (x ^ n) (note this is essentially exactly the way it's already typed out, only I'm using some unusual extra white space to emphasize that we're treating ^ as an infix operator). It's a little upward arrow that says scale x up by n (exponentially).

And let log base n of x be written as (x v n) or possibly (x \/ n). It's a little downward arrow that says scale x down by n (logarithmically).

This makes the two operations work in a way that's fairly analogous to multiplication and division in a relatively neat way. For example, for positive integers, multiplication can be thought of as (linearly) scaling one number up by another, while division scales it (linearly) downward in an inverse way. As already noted The same holds for these two operators, only the scaling is non-linear.

Lots of familiar relationships carry over, e.g. Note that ((x * n) / n) = x. Similarly ((x ^ n) v n) = x. And where (n * (x / n)) = x, it's also the case that (n ^ (x v n)) = x.

And where multiplication and division interact with addition and subtraction, those operators interact similarly with multiplication and division, e.g. where x * (n + m) = (x * n) + (x * m), similarly x ^ (n * m) = (x ^ n) * (x ^ m). And so on. You can derive all the relationships you need from a very small number of rules that are easy to remember because they're structurally almost exactly like the rules for operations you're familiar with. You already know those when you learn about exponentiation, so you don't have to learn new and weird geometric relationships.

All of those nice properties there follow from the fact that exponentiation is just the next operation in the sequence of hyperoperations (see https://en.wikipedia.org/wiki/Hyperoperation ) after multiplication.

Introducing this weird three place operator actually masks the underlying simplicity of exponentiation and its inverse.

Re:Maths notation is needlessly complex [video] by Chinjut on Thursday July 21, 2016 @03:57PM (#12139589)
"And let log base n of x be written as (x v n) or possibly (x \/ n)." "Lots of familiar relationships carry over, e.g. Note that ((x * n) / n) = x. Similarly ((x ^ n) v n) = x."

You must mean ((x^n) v x) = n. Note that ^ is not at all a symmetric operator, and neither is v.

"e.g. where x * (n + m) = (x * n) + (x * m), similarly x ^ (n * m) = (x ^ n) * (x ^ m)."

You must mean x ^ (n + m) = (x ^ n) * (x ^ m).

It seems your proposed notation does not make things so clear as that one cannot get lost in it, either.

Re:Maths notation is needlessly complex [video] by catpolice on Thursday July 21, 2016 @04:41PM (#12139895)
Ah bummer. Both of those were actually just transcription errors because I was writing formulas out in the course of a meeting, playing with whether the order of the v operator should be that way or the other way around - I don't have time to give it much thought at the moment but I'm admittedly less convinced I picked the right one. In the second case, that was a typo. In the first case, what I'd meant to write was: "Note that ((x * n) / x) = n. Similarly, ((x ^ n) v x) = n." You're right that neither is a symmetric operator but of course neither is division or subtraction. I sort of glossed over that intentionally, but the non-commutativity of the ^ operator would indeed probably be the main place that switching to infix operators could mislead.
Re:Maths notation is needlessly complex [video] by Chinjut on Thursday July 21, 2016 @04:51PM (#12139963)
I didn't mean to come across as unduly harsh. But, yeah, I think a misleadingly symmetric looking notation for an asymmetric operation can be a source of confusion (this is also a potential problem with the misleadingly symmetric looking triangle of the linked video, and standard notation for subtraction, etc., for that matter [though in this last case, it's been beaten into us with enough familiarity that we all know the deal]).

Actually, I don't like infix notation in general: it leads to unnecessary, distracting questions about operator precedence and so on. I'd rather we all switched to some other notation for writing out even additions and multiplications and such; drawing out the actual tree structure of nested operations, say. (I often feel notation should simply follow the structure of what's being notated, nothing more or less. But, alas, inertia; I can only use the notation I like in the privacy of my own home...)

Re:Maths notation is needlessly complex [video] by catpolice on Thursday July 21, 2016 @05:02PM (#12140053)
Infix notation IS funny, though I figured anyone learning arithmetic would be familiar and we're stuck with it - we probably can't convince grade schools to use Polish notation for arithmetic by default. In general, my attitude is that you should pick a notation that makes all the similarities with things you already know as obvious as possible and then stress the differences. They've already learned about non-symmetric infix operators if they've learned subtraction and division, and the only reason to expect that ^ would be symmetric was by analogy to multiplication, which is easy to clear up. Take it as a lesson that by default you should never assume operations are symmetric, in preparation for linear algebra ;)
Re:Maths notation is needlessly complex [video] by Chinjut on Thursday July 21, 2016 @03:54PM (#12139564)
"It introduces three concepts (exponentiation, logarithms and roots) as though they were entirely separate."

Hm? This is the exact opposite of what the notation is intended to do. It is intended to emphasize that there is just one underlying ternary relation [with all of these seemingly separate functions just being different ways of solving for one argument to this ternary relation in terms of the other two].

Re:Maths notation is needlessly complex [video] by catpolice on Thursday July 21, 2016 @04:52PM (#12139969)
I guess what I was trying to say is that treating that as a ternary relation is already overcomplicating the matter. Really, there's no need for nth root notation at all, because we already have fractional exponentiation. Why have a third place on the triangle putting any n there is the same as putting 1/n on the top?

Part of the argument for the triangle is that the relationships you'd have to learn are suggested by simple geometric manipulations.

But why learn whole new geometric manipulations when you've already learned the algebraic manipulations behind multiplication and division? By converting exponentiation and logarithms into infix notation, you do away with one side of the triangle and you can learn the relationships by just thinking "it's exactly like multiplication and division, except [etc]"

Re:Maths notation is needlessly complex [video] by Chinjut on Thursday July 21, 2016 @05:24PM (#12140189)
Incidentally, sure, we could just pick ^ to be our basic operator and define everything else in terms of that. Well, just as well, we could define everything in terms of logarithm. Or everything in terms of roots! In fact, one might ask why you are so happy to define a logarithm operator v to undo ^ in one direction, but do not want ever to define and work with a root operator to undo ^ in the other direction.

Is it because we can get away with saying a^(1/n) instead of n-th root of a? Well, just as well, why should we have a division operator? Instead of a/b, we can say a * b^(-1).

Or perhaps we oughtn't have multiplication, or exponentiation with arbitrary bases. Perhaps we should just have addition, negation, natural logarithm, and the natural exponential. Then we define a * b as exp(ln(a) + ln(b)), define b^c as exp(c * ln(b)), etc.

But, of course, just because F can be expressed in terms of G doesn't mean it's always convenient or pertinent to think of F that way; sometimes it's pertinent to think of F just qua F, as an atomic entity in its own right. And, thus... the proliferation of different functions people talk about.

Though this does mean people then have to keep track of what all these different functions are defined as, and trace back through how that makes them relate. So... I don't know. I don't have all the answers. Yet.

Re:Maths notation is needlessly complex [video] by Chinjut on Thursday July 21, 2016 @05:22PM (#12140177)
Why think of ternary relations? Well, if you do not recognize that there is an "Any two variables here determine the third" structure here, you are missing a fruitful insight into the matter. That's why. Sometimes that's a useful perspective, sometimes perhaps less so.

That can be useful not only for exponentiation/logarithm/roots, incidentally. It can be useful to recognize with addition/subtraction/subtraction, or multiplication/division/division, as well. These all have a similar structure: three values in a relationship, such that any two determine the third. The triangle is supposed to help recognize this structure, though it helps with nothing else on top of that.

"By converting exponentiation and logarithms into infix notation, you do away with one side of the triangle and you can learn the relationships by just thinking 'it's exactly like multiplication and division, except [etc]'"

The problem is, there's rather a LOT of "except". Standard * is commutative, while ^ isn't. * is associative, while ^ isn't. * turns additions on either side into additions of the result, while ^ turns multiplications on left into multiplications of the result, but multiplications on the right only into chained operations (i.e., a ^ (b * c) = (a ^ b) ^ c), while additions on the right are turned into multiplications of the result (i.e., a ^ (b + c) = (a ^ b) * (a ^ c)), and additions on the left are turned into binomial theorem expansions!

These are big differences! There are particular similarities too, of course. There's a mix of similarities and lots of differences. What that amounts to pedagogically is... a muddle.

Anyway, the triangle manipulations in the video aren't at all compelling to me, but regardless, the ternary relation structure IS useful to recognize (that any two out of three determine the third, and this is all the various traditional functions do), and again, this is something to be recognized not just for powers, logarithm, etc., but even for our familiar addition/subtraction or multiplication/division problems.