good morning, I recorded a song about capitalism https://soundcloud.com/ash-furrow/capital

@ashfurrow I'm having a really big think over this.

@trickster it’s a puzzler 🤔🤔🤔

@ashfurrow I just checked this and it's true. Brackets change everything.

@adz @ashfurrow It does it without the brackets too! But so does Bing and DuckDuckGo.

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

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

@ashfurrow negative numbers don't exist. 😉

@ashfurrow Isn't that the negative of 3^2, not (-3^2)?

@danyeaw that’s correct

@ashfurrow Looks like it’s calculating the square of 3 and then negating it.

@ashfurrow Which, to be fair, is wrong if I remember correct order of operations

@ashfurrow

It's a unary '-' minus, yielding 0-3^2

@ashfurrow

This gave me a good laugh, thanks Ash!

The best thing is when you do this to a 13 year old and they give you a look like "ugh, really? I'm too old for your shit"

@ashfurrow your shipping some sort of CI then?

@tapi @ashfurrow I would argue that the picture gives away too much information on your secret project.

And Dave looks up from YouTube and asks, what kind of containers are you using?

@ashfurrow A transport system for migrants fleeing war torn areas?

@ashfurrow Y U HATING ON COSTA RICA??

@bremner BUT °C MEANS “DEGREES COSTA (RICA)”

@ashfurrow I guess they forgot about “?:”. Silly programmers.

@SuperFloppies aye

@ashfurrow

Hahaha ,true

@ashfurrow That's cute.

Ash Furrow@ashfurrow@mastodon.technologycw math, I guess