If I have something like $\phi\circ \psi(x)$ this means first apply $\psi$ and then $\phi$. Going right to left is pretty contrary to my intuition.
In computer science some programming languages (and many compilers) use reverse Polish notation, where this would be written $x\psi\phi$.
I occasionally see algebraic texts using this type of notation (Glass' Partially Ordered Groups is one example); I suspect because this notation fits better with the idea of groups.
- Is there a name for this notation in algebra or is it just called Reverse Polish Notation there too?
- And why do we have the bizarre right to left function notation? Wikipedia cites Euler on several pages, but doesn't explain how he came up with it or why people stuck with it. Even if he had just decided to write it like $(x)f=x^2$ that would've been better.
EDIT: to explain why this is confusing, suppose I was explaining an algorithm to someone like "first double a number, then square it, then take the sine of that." If I wrote this in the usual math notation I would write it in the opposite order of my instructions: $$(x\mapsto \sin x)\circ (x\mapsto x^2)\circ (x\mapsto 2x)(x)$$ instead, it would be easier if I did it in the same order as my instructions: $$(x)(x\mapsto 2x)\circ (x\mapsto x^2)\circ (x\mapsto \sin x)$$
Consider it (and call it, if you need a name) the composition of functions (after all, permutations are functions). Remember:
$$(\phi\circ \psi)(x) = \phi(\psi(x))$$
We work from inside out to determine $(\phi\circ \psi)(x) = \phi(\psi(x))$:
First determine $\psi(x)$, then you can determine $\phi(\psi(x))$.
This is no different than how we approach the notation $(f\circ g)(x) = f(g(x))$, and I've never heard this referred to as "reverse Polish notation."
To me, seems counter-intuitive to interpret $(f\circ g)(x)$ by first finding $f(x)=y$ and then taking $g(y)$.