2

The set of functions from a set $X$ to a set $Y$ is denoted $Y^X$.

Now a question about precedence of operations:

Should I write $X^{(Y^Z)}$ or $X^{Y^Z}$ is enough?

porton
  • 5,225
  • 7
    Since there is a natural bijection between $(X^Y)^Z$ and $X^{(Y\times Z)}$, the precedence would normally be the one you give. Nonetheless, I would suggest spending the effort of adding the two parentheses to make it unambiguous (you can always explicitly state that you will use $X^{Y^Z}$ to denote $X^{(Y^Z)}$ once, and then use the former). – Arturo Magidin Apr 07 '12 at 16:43
  • As a personal comment, I don't like the notation $Y^X$ because every time I see it I have to stop and think what is what. I would strongly favour the notation $X\to Y$, and then the set in your question would be $(Z\to Y)\to X$. – Martin Argerami Apr 07 '12 at 19:19
  • there is already a good explanation here: https://math.stackexchange.com/questions/1633790/what-is-the-order-when-doing-xyz-and-why –  Jan 07 '25 at 00:50

1 Answers1

1

Always, always, always be clear with this order of operations.

$2^{2^{2^2}}$ could equal 256 or 16536 depending on the order.

Steven-Owen
  • 5,726