News for hackers. Stuff that matters.
Re:Problems of Traditional Math Notation (2004) by Xophmeister on Monday November 06, 2017 @08:35AM (#15635281)
How is `||c||a|b|` ambiguous, given the knowledge that taking the absolute value is an idempotent function? I get you could read it as `abs(abs(c)).a.abs(b)`, but no one would. To me, it’s unambiguously `abs(abs(c).abs(a).b)`. AFAIK, this also applies to other uses of these symbols and, e.g., norm. (In fact, norm’ing twice doesn’t even make sense because the types clash, to use the programming term.) Also, IIRC, in LaTeX the size of the | symbols can be balanced and autoscaled with \left and \right, like parentheses.
Re:Problems of Traditional Math Notation (2004) by ghettoimp on Monday November 06, 2017 @08:50AM (#15635355)
It is ambiguous because, as you point out, it can be read either as `abs(abs(c)).a.abs(b)` or `abs(abs(c).abs(a).b)`.

A mathematician can of course think about it and know what is meant. But there are many alternate notations that could be used, where such ambiguities don't even occur (e.g., balanced parens).

Autoscaling does seem like a nice solution in this case, which preserves the traditional notation while resolving the ambiguity...

Re:Problems of Traditional Math Notation (2004) by dagw on Tuesday November 07, 2017 @05:42AM (#15642314)
It is ambiguous because, as you point out, it can be read either as `abs(abs(c)).a.abs(b)` or `abs(abs(c).abs(a).b)`

Except in this case the ambiguity comes from typography rather than notation. ‖c‖a|b| for example is exactly the same statement with different typography and is a lot less ambiguous. The problem here isn't math notation, but trying to apply that notation using only pure ASCII.

Re:Problems of Traditional Math Notation (2004) by Grustaf on Monday November 06, 2017 @03:23PM (#15638710)
I'm on your side, but single | usually doesn't mean norm, rather absolute value, so it would be fine to do it twice. Though as you said it's contrived.
Re:Problems of Traditional Math Notation (2004) by Xophmeister on Tuesday November 07, 2017 @05:31AM (#15642253)
My point is that abs∘abs=abs and mathematicians will simplify when they can. Double-| is norm and you definitely cannot do that twice, because:

    ‖.‖ : V → ℝ
...where V is a vector space. I guess technically the reals fulfil the definition of a vector space, but I'd imagine that would grate against most people!

I suppose one could read ||c||a|b| as norm(c).a.abs(b), but usually the sets involved and typesetting would distinguish this. (i.e., It's only ambiguous in ASCII!)

Re:Problems of Traditional Math Notation (2004) by Grustaf on Tuesday November 07, 2017 @11:46AM (#15644929)
I know what you meant and I agree, i just read you as (alao) saying that he single lines could be norm. There are situations where you wouldn’t simplify, like if this expression was the result of some function applications and then in the next step you simplify it.

R can definitely be seen as a vector space, just like R^3 for example, but then you wouldn’t also have absolute valley.

It wouldn’t be ambiguous in ASCII either because c would be defined earlier, you’d know what it is.