New year, new good morning thread!

Good morning! Check out my dad’s table saw.

good morning to all the very smart engineers over at google

@ashfurrow technically the minus sign is a multiplication with -1, therefore it could make sense that it has lower precedence than exponentiation.

Wolfram Alfa gives the same result (even for -3^2), and they are math guys.

@ytg @ashfurrow Precedence rules are PEMDAS:
Parentheses
Exponents
Multiplication
Division
Addition
Subtraction

So the calculator query shows "-(3 squared)" which is -9.

You have to type "(-3) squared" to get 9.

@cj @ytg it’s really a question of changing language into symbolic math; I think most people would say the answer should be 9, but language is always ambiguous. If I use a calculator and press the buttons “-“, “3”, and “x^2”, the answer is indeed 9.

@ashfurrow @cj @ytg
Not in whatever calculator I appear to have on Ubuntu. pressing '-', '3', and 'x^2' yields -9.

When I use parens around -3, I get 9.

Follow

@rcode3 @cj @ytg the iOS calculator app handles this properly, and iirc, my TI-83 did as well.

Again, this is all the ambiguity of language. There's no "correct" answer, but some answers are more correct than others.

Sign in to participate in the conversation
Mastodon for Tech Folks

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!