The wife and I were doing homework together, and we noticed something really strange when charting quadratics with a TI-series graphing calculator:
f(5) = -x^2 + 110x - 1000
f(5) = -5^2 + (110*5) - 1000
f(5) = -25 + 550 - 1000
f(5) = -475
// Wait a minute...
-5^2 = -25 // Negative?
We knew this wasn't right, so we tried the formula out on an online calculator, and we got the same result:

So we decided to wrap the coefficient in parentheses, and it worked as expected:
// Wrap in parentheses...
(-5)^2 = 25 // Positive, as expected
Obviously, I think the second solutions must be correct... but I can't imagine that in today's day and age, I have to explicitly wrap every negative coefficient in parentheses to ensure proper evaluation on a calculator. Is this the case, or is the first evaluation actually correct?
Thanks for taking the time!
-(5^2). I think this standard has the advantage that it looks roughly like what I would write down on paper: I wouldn't write $-5^2$ to mean $25$. – Dylan Moreland Dec 5 '11 at 6:07-5^2the-is a unary operator that has precedence over exponentiation while in1-5^2the-is a binary operator that defers to exponentiation. I was burned by this difference when writingEXP(-X^2/2); one of the many?/rare? instances where it would have paid to RTFM! (See also J.M.'s comment on Arturo Magidin's answer). – Dilip Sarwate Dec 5 '11 at 12:35