this post was submitted on 19 Jan 2025
15 points (100.0% liked)

196

1496 readers
2863 users here now

Community Rules

You must post before you leave

Be nice. Assume others have good intent (within reason).

Block or ignore posts, comments, and users that irritate you in some way rather than engaging. Report if they are actually breaking community rules.

Use content warnings and/or mark as NSFW when appropriate. Most posts with content warnings likely need to be marked NSFW.

Most 196 posts are memes, shitposts, cute images, or even just recent things that happened, etc. There is no real theme, but try to avoid posts that are very inflammatory, offensive, very low quality, or very "off topic".

Bigotry is not allowed, this includes (but is not limited to): Homophobia, Transphobia, Racism, Sexism, Abelism, Classism, or discrimination based on things like Ethnicity, Nationality, Language, or Religion.

Avoid shilling for corporations, posting advertisements, or promoting exploitation of workers.

Proselytization, support, or defense of authoritarianism is not welcome. This includes but is not limited to: imperialism, nationalism, genocide denial, ethnic or racial supremacy, fascism, Nazism, Marxism-Leninism, Maoism, etc.

Avoid AI generated content.

Avoid misinformation.

Avoid incomprehensible posts.

No threats or personal attacks.

No spam.

founded 4 days ago
MODERATORS
 
top 11 comments
sorted by: hot top controversial new old
[–] kamills@sh.itjust.works 3 points 4 days ago (3 children)

It's -(3^2) that's the rule right??

[–] sp3tr4l@lemmy.zip 4 points 3 days ago* (last edited 3 days ago) (1 children)

No, PEMDAS.

You do the exponent first, then multiplication.

-3² = -1 * 3²

or

-3² = (-1)(3²)

(-3)² would be how you'd represent what you are interpreting it as.

Your interpretation:

-3² != (-3)² = (-1(3))² = (-1 * 3)² = 9

vs

Correct Interpretation:

-3² = -3² = (-1)(3²) = -1 * 3² = -9

EDIT:

Every time you see a - directly infront of a number, say...

-x

...and there is no space to indicate the - represents a subtraction operator, such as in...

y - x

...the immediate prefix - actually represents:

(-1)x

or

-1 * x

Due to PEMDAS, if the exponent ² or ^2 is attached to...

-x² or -x^2

... this actually represents

(-1)(x²) or -1 * x^2

... such that PEMDAS is upheld, and the exponent recieves computational primacy.

EDIT 2:

I don't make these rules, but this is how it works.

Double check in wolfram alpha if you doubt it.

[–] Evil_Shrubbery@lemm.ee 1 points 3 days ago

(-3)²

Well, in my defense, that's has the uglies.

[–] Tkrun42@lemmy.world 2 points 3 days ago (1 children)

Correct, or, -1 x 3^2 Joke is democracy doesn't always get it right

[–] kamills@sh.itjust.works 1 points 3 days ago

I figured. I just had to check if I had gone mad

[–] flamingos@feddit.uk 0 points 3 days ago (1 children)

I would say it's -3 × -3.

[–] weastie@lemmy.world 6 points 3 days ago (1 children)

Nope, you can't assume the - is included in the square if there's no parenthesis around it. The answer is -9. Think of it like "0-3²" which is more obviously -9.

[–] flamingos@feddit.uk 1 points 3 days ago* (last edited 3 days ago) (1 children)

Nope, you can’t assume the - is included in the square if there’s no parenthesis around it. The answer is -9.

Surely that would mean the answer's ambiguous, no? The lack of brackets means we can't know definitively if - is included or not. But separately, I'd argue that -3 represents negative three, not subtract three, and negative three is it's own distinct number from positive three.

[–] WolfLink@sh.itjust.works 4 points 3 days ago* (last edited 3 days ago) (1 children)

Perhaps it’s not the most clear, but that absolutely is the standard convention for how to treat exponents, because it results in much simpler shorthand for writing things like this:

https://en.wikipedia.org/wiki/Taylor_series

Example on that page:

-x-(1/2)x^2 -(1/3)x^3 -(1/4)x^4 …

Using your definition you’d have to put a bunch of parenthesis: -x-(1/2)(x^2 )-(1/3)(x^3 )-(1/4)(x^4 )…

And believe me physicists would hate you if you made them do this because they’d have to do it constantly.

[–] flamingos@feddit.uk 2 points 3 days ago

It's been a hot minute since I've had to do any serious maths, but that does roughly line up with what I remember about BODMAS. It's just intuitively, there's a difference between - as an infix operator (10 - 5) and - as a prefix (-3). If you where to solve x^2^ where x = -3, I don't think you'd say it's -9.

[–] AdrianTheFrog@lemmy.world 1 points 3 days ago

the worst order of operations thing imo is with the denominator in division, many people say that 1/4x should be read as (1/4) * x and not 1/(4x), although I think this is usually the less popular option in polls

apparently wolfram alpha does it that way, as well as most newer graphing calculators (TI switched between the ti-82 and ti-83)