I know this has been discussed before (Why is $-5^2=-25$?) but this makes no sense in my head, maybe someone can clarify.
To me $-5^2$ means the number $-5$ (a number in $\mathbb R$), squared. It's not $0 - 5^2$ where $-$ is an operation.
Put in other words:
$x^2$ with $x=-5$
How come $-5^2$ is then interpreted as $5$ squared then negated.
EDIT: Adding some additonal info since it seems the point wasn't conveyed enough.
I understand the operator precedence. And if this was a question of $2-5^2$, it would be obvious, it's 2 minus 5squared.
But what I don't get is why the convention states that -5 is not a number (5 in the negative $\mathbb R$ axis), but a "magical" 0-5.
I don't know, in my programming brain it just doesn't make sense :)
Think about, for instance, $3 - x^2$ when $x = 5$. What do you think its value should be?