New year, new good morning thread!

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

@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:

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.


@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.

· · Web · 0 · 0 · 1
Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!