6
$\begingroup$

When people write $x/yz$, do they usually mean $x/(yz)$ or $(x/y)z$?

For example, from Wikipedia

If $p\geq 1/2$ , then $$ \Pr\left[ X>mp+x \right] \leq \exp(-x^2/2mp(1-p)) . $$

Thanks!

  • 7
    It's ambiguous. In this case I would guess that it means the former, but you yourself should not use this notation.2012-10-14
  • 0
    Thanks! What would you write in a single line if it were you?2012-10-14
  • 4
    @Tim: Use $()$, like $\exp(-x^2/(2mp(1-p)))$ or $\exp(-(x^2/2m)p(1-p))$ (or even $\exp(-(x^2/2)mp(1-p))$, whichever is meant. If the $p(1-p)$ is supposed to be in the numerator you could also write $\exp(-x^2p(1-p)/(2m))$ and decrease confusion. In this case I'm not sure which it is; you'll have to do the calculations carefully and re-derive the proof, and check. (And then fix the Wikipedia article.)2012-10-14
  • 3
    I've almost never seen $x/yz$ meaning $(x/y)z$. If you are thinking about $(x/y)z$, why would you write the ambiguous $x/yz$ instead of $xz/y$ ?2012-10-14
  • 0
    +1 to @ShreevatsaR for "And then fix the Wikipedia article."2012-10-14
  • 0
    @mercio: Because they're writing a polynomial $1/4x^2 + 1/4x + 1$. Or a familiar formula $K = 1/2mv^2$ that is traditionally written in that order. Or any other reason why x/y would come before z in how one would normally think about the formula.2012-10-14
  • 1
    [This](http://imgur.com/sW89P) seems relevant.2012-10-14
  • 2
    @user02138: Nice indeed.2012-10-14

5 Answers 5

2

I was told once by a senior engineer that the last explicit symbol is what counts, it cancels the action of the previous one. So, for example, xyz/abc means $(x*y*z)/(a*b*c)$ and xyz/ab*c means $(x*y*z)/(a*b)*c$, as expressed by any standard computer language.

I was a little upset by that implicit convention, but soon found out that it worked well and was able to understand all old handbooks, where equations were written straight in a single line.

I suppose aesthetics is what counts here. I have the feeling that our need for explicit symbols came with a generation which had computer programming lessons at college, so a relatively new thing starting at what, the 60's, the 70's?

21

A few weeks ago I did a search for this construction. I found three things:

  1. It was much less frequently used than I expected; I think this is because mathematicians are concerned that it might be unclear.
  2. The few examples I did find invariably meant $x/(yz)$, not $(x/y)z$.
  3. Complicated examples are extremely uncommon.

Here are some examples I found:

  • In the proof of theorem 4.2 at the bottom of the page there is $u_n/n\alpha_n$. (Alberto Torchinsky, Real-Variable Methods in Harmonic Analysis)
  • Page 3 of Walter Rudin's Real and Complex Analysis uses $y/2\pi$, and the bottom of page 99 has $\delta = \eta/2k$. However, on page 88 of the same book, Rudin writes $1/(2\pi)$, even though $1/2\pi$ always means $1/(2\pi)$, never $(1/2)\pi$.
  • Page 12 of George Simmons' Differential Equations says that the negative reciprocal of $rd\theta/dr$ is $-dr/rd\theta$. Page 45 mentions the use of $1/xy$ as an integrating factor. In a rare complicated example, he writes $(2n)!/(n!)^2 2^n$ (meaning $(2n)!\over(n!)^2 2^n$) on page 222.
  • I found no examples at all where $x/yz$ was used to mean $(x/y)z$.

However, Wikipedia articles are sometimes written by blockheads. From looking at related versions of the same formula, for example here (page 4) or here (theorem 1.5) I guess that that was the case here, and that the $p(1-p)$, if it belongs there at all, should have been in the numerator. I think you should be wary of taking the Wikipedia claims at face value, and instead refer to a source that is written by someone with a reputation.

You should also be wary of taking my claims at face value, since I know absolutely nothing about Chernoff bounds.

  • 1
    Thanks! I really appreciate that you have found so many examples! About the Chernoff bound mentioned in my question, I wonder how you know from the two pdf files that $p(1-p)$ should have been in the numerator instead of denominator?2012-10-14
  • 1
    I don't know. I was guessing. I wasn't even able to convince myself that the $p(1-p)$ should be there at all.2012-10-14
  • 1
    Well done the research. I'd like to add (with zero research) that if $1/2\pi$ is rare, $1/2/\pi$ is just not done, even though it is completely unambiguous (as nobody claims that '/' should associate to the right, as far as I know) and shorter than $1/(2\pi)$.2012-10-14
  • 2
    Here is more data I found in [Concrete Mathematics](http://en.wikipedia.org/wiki/Concrete_Mathematics). P.64 ex 2.23 "Evaluate $\sum_{k=1}^n(2k+1)/(k(k+1))$ in two ways a. Replace $1/k(k+1)$ by..." ex 2.24 "What is $\sum_{0\leq k?". Note they are not systematic, but always mean $x/(yz)$ even when omitting parentheses around the denominator. Also p.504 in answer 4.40: $n!/p^{\lfloor n/p\rfloor}\lfloor n/p\rfloor!$ which was what I ran into before I started looking more systematically. Clearly GKP, who generally care a lot about notation, don't care parenthesising denominators.2012-10-22
14

Because multiplication is expressed by the omission of an operator, simply by juxtaposing two factors, it should be treated as having a higher precedence than an operator whose presence is visible as an explicit glyph.

That is to say $abc/xyz$, should mean $(a\times b\times c)/(x\times y\times z)$. Basically we would like $abc/xyz$ to just be an in-line shorthand for ${abc}\over{xyz}$ with minimal fuss.

The interpretation $((((ab)c)/x)/y)/z)$ means we cannot do this. Expressing ${abc}\over{xyz}$ with a slash becomes cumbersome.

In computer programming languages, it is common for division and multiplication to have the same precedence and left-to-right associativity. But the situation there is different because multiplication is an explicit symbol like *. For instance in C a * b / c * d simply means (((a * b) / c) * d).

But if multiplication is notated by mere juxtaposition, a strong case can be made that it this juxtaposition should also denote "tighter binding" (higher precedence than any binary operator).

Mathematics notation is richly visual and two dimensional. Juxtaposition relationships matter. For instance the way an exponent binds with its base.

  • 1
    +1 Operator priority depends on what is written, not on what it means, so it is entirely natural that juxtaposition may have a different priority than a multiplication symbol.2012-10-14
  • 1
    Spacing to indicate grouping is important: $x/y \,\, z$ is almost surely $(x/y)z$, and $x \, / \, yz$ is almost surely meant as $x/(yz)$. But $x/yz$ is lacking the spacing that would signify intent.2012-10-14
  • 1
    ^ definitely! But notice how / already comes with some space around it, when you have a decent font and decent typesetting: $abc/xyz$.2012-10-14
5

The American Physical Society gives multiplication a higher order than division in the slash notation:

When slashing fractions, respect the following conventions. In mathematical formulas this is the accepted order of operations:

  1. raising to a power,
  2. multiplication,
  3. division,
  4. addition and subtraction.

(Styling applied) (Source: Page 6 of Section IV of Physical Review Style and Notation Guide, retrieved 2012.10.14)

This means that (for them) $$ x/yz = x/(yz) $$ However, keep in mind that this may represent only the view of one group of scientists, I don't know of any established standard.

4

By the usual order of operations, it means $(x/y)z$. But people do often mean $x/(yz)$ instead, so you have to work out the intention from the context. :(

  • 3
    I would be very interested to see *any* example from a reputable source that uses $x/yz$ to mean $(x/y)z$.2012-10-14
  • 0
    @MJD: I have definitely seen it in mathematical journals: the example I recall was a monomial in a polynomial, written as 1/2x. I remember it distinctly, because I had to look at it several times before I convinced myself that the author really meant what he wrote, rather than intending 1/(2x).2012-10-14
  • 2
    (x/yz) = (x/y)z in most calculators. It's also the order given by "PEMDAS".2012-10-14
  • 3
    Which calculators let you use juxtaposition for multiply? What if you're entering digits? 5/42 is (5/4)2? :)2012-10-14
  • 1
    The "usual order of operations" (UOOO) applies to arithmetic like $42\div 7\times 3$. Algebraic notation defies UOOO. I would tend to agree that $x\div y\times z$ means $(x/y)z$, yet disagree that it has anything to do with $x/yz$. :)2012-10-14
  • 0
    @Kaz, try typing $2\div 2\pi=$ in a scientific calculator. Mine results in the value of $\pi$.2012-10-14
  • 0
    I get 0.636. TI-30XA. :)2012-10-14
  • 0
    @Kaz: http://www.wolframalpha.com/input/?i=x%2Fy+z2012-10-14
  • 0
    @Hurkyl: Wolfram responds to the space. Without the space it assumes that $yz$ is a unit: http://wolframalpha.com/input/?i=x%2Fyz This is fairly sensible.2012-10-14
  • 1
    @Kaz: Yikes. That's actually *scary*: I didn't try that because I had assumed wolframalpha would do the sensible thing and interpret yz as a single variable with a two-letter name.2012-10-14
  • 0
    Try this: http://www.wolframalpha.com/input/?i=x%2Fyzsin%28x%292012-10-14
  • 0
    @Kaz: Don't even need the parentheses: http://www.wolframalpha.com/input/?i=x%2Fyzsinx2012-10-14
  • 0
    @Kaz, how did your calculator get 0.636 from $2\div 2\pi$? Are you sure you didn't type in $2\div\pi$?2012-10-15
  • 2
    How the calculator got that is that there is no operator between the $2$ and the $\pi$. I naively just hit the `2` button followed by the pi button, which causes $\pi$ to be interpreted as a correction which replaces the operand $2$. The result $0.636...$ is then just $2/\pi$.2012-10-15
  • 0
    I could type $2\div 2\times \pi$ into the calculator, but that's changing the syntax. $\times$ is syntactically a different multiplication operator from the blank one that is normally used. Just like, say `exp(42)` is syntactically different from $e^{42}$.2012-10-16