kzhe,
cRazi_man,

Ah damn it. It took me ages to find a calculator app that fits my needs… And now I find out it works like the one on the right.

DrDominate,
@DrDominate@lemmy.world avatar

Hiper Calc is the calculator app that I use. It’s very good. When I ran this equation, it actually notified me how the operands should be grouped (weak or strong) and provided two answers. Honestly the whole issue can be avoided if you use more parentheses

SmartmanApps,
@SmartmanApps@programming.dev avatar

the whole issue can be avoided

…by following all the order of operations rules

Razzazzika,

… the one on the right is correct… that’s a jank ass calculator on the left that doesn’t know how to do order of operations 8/2×(2+2) 8/2x4 4x4 16

force,

There isn’t a multiplication symbol though. By your logic something like 8÷2x would mean (8÷2)*x because order of operations

Or if you read 8÷2√x as (8÷2)*√x

Just notate 8÷2(2+2) as 8÷2x; x=(2+2) and you get it, you can substitute any complete expression with a variable in an equation and the logic stays the same.

Eezyville,
@Eezyville@sh.itjust.works avatar

You know sometimes both are correct.

SmartmanApps,
@SmartmanApps@programming.dev avatar

You know sometimes both are correct

Nope. That’s what the order of operations rules take care of.

SmartmanApps,
@SmartmanApps@programming.dev avatar

the one on the right is correct

No, it isn’t.

8/2×(2+2)

…isn’t the same thing as 8/2(2+2). You separated the term in the denominator, leading the (2+2) to get flipped into the numerator, hence wrong answer.

Razzazzika,

That would be 8/(2x(2+2)) if we were keeping it all in the denominator. Multiplication happens in the numerator if there are no parenthesis to distinguish it. If thr equation was written like this:

8


2x(2+2)

Then you would also be correct, but I have to respectfully disagree with your analysis.

SmartmanApps,
@SmartmanApps@programming.dev avatar

That would be 8/(2x(2+2)) if we were keeping it all in the denominator

(2x(2+2)) is the same thing as 2(2+2)

I have to respectfully disagree with your analysis

Which means you disagree with how Maths textbooks teach how to do this (see previous link).

GTG3000,

I’m with the right answer here. / and * have same precedence and if you wanted to treat 2(2+2) as a single unit, you should have written it like (2*(2+2)).

sushibowl,

It’s pretty common even in academic literature to treat implied multiplication as having higher precedence than explicit multiplication/division. Otherwise an expression like 1 / 2n would have to be interpreted as (1 / 2) * n rather than the more natural 1 / (2 * n).

A lot of this bullshit can be avoided with better notation systems, but calculators tend to be limited in what you can write, so meh. Unless you want to mislead people for the memes, just put parentheses around things.

GTG3000,

That’s fair. Personally, I just have a grudge against math notation in general. Makes my programmer brain hurt when there’s no consistency and a lot of implicit rules.

Then again, I also like Lisp so I’m not exactly without sin.

SmartmanApps,
@SmartmanApps@programming.dev avatar

Makes my programmer brain hurt when there’s no consistency and a lot of implicit rules.

All the order of operations rules of Maths are explicit

Ultraviolet,

The problem is whether or not that rule is taught depends on when and where you learned it. Schools only started teaching that rule relatively recently, and even then, not universally. Which of course makes for ideal engagement bait on your hellsite of choice.

SmartmanApps,
@SmartmanApps@programming.dev avatar

Schools only started teaching that rule relatively recently

Recently? The order of operations rules have been taught for more than a century (we can see them in Lennes’ letter).

Ultraviolet,

Order of operations in general, yes. Implied multiplication coming before explicit multiplication/division is what’s recent.

SmartmanApps,
@SmartmanApps@programming.dev avatar

Implied multiplication coming before explicit multiplication/division is what’s recent.

  1. “implicit multiplication” is not taught, because there’s no such thing as implicit multiplication
  2. the “controversy” over it isn’t recent either - we can see Lennes complaining about it more than 100 years ago! The more things change the more they stay the same (sigh).
SmartmanApps,
@SmartmanApps@programming.dev avatar

I’m with the right answer here

Apparently not.

if you wanted to treat 2(2+2) as a single unit

Yes, it is a Term subject to The Distributive Law, written just the way it is.

linuxdweeb,

Please Excuse My Dear Aunt Sally, she downloaded a shitty ad-infested calculator from the Google Play store.

brlemworld,

The calculator is correct

Pharmacokinetics,
@Pharmacokinetics@lemmy.world avatar

People keep debating over this stuff. I have a simpler solution. Math is not real.

Goodvibes,

The only real answer lmao. People really out here thinking the funny symbols on the paper follow absolute laws. Crazy.

SmartmanApps,
@SmartmanApps@programming.dev avatar

thinking the funny symbols on the paper follow absolute laws

They do. Maths is universal, just like the laws of Physics (which are often written using Maths BTW).

AdrianTheFrog,
@AdrianTheFrog@lemmy.world avatar

My mom’s a mathematician, she got annoyed when I said that the order of operations is just arbitrary rules made up by people a couple thousand years ago

tamal3,

It’s organized so that more powerful operations get precedence, which seems natural.

Set aside intentionally confusing expressions. The basic idea of the Order of Operations holds water even without ever formally learning the rules.

If an addition result comes first and gets exponentiated, the changes from the addition are exaggerated. It makes addition more powerful than it should be. The big stuff should happen first, then the more granular operations. Of course, there are specific cases where we need to reorder, or add clarity, which is why human decisions about groupings are at the top.

SmartmanApps,
@SmartmanApps@programming.dev avatar

The big stuff should happen first, then the more granular operations

The “big stuff” is stuff that is defined in terms of something else. i.e. exponents are shorthand for repeated multiplication… and multiplication is shorthand for repeated addition, hence they have to be done in that order or you get wrong answers.

AdrianTheFrog,
@AdrianTheFrog@lemmy.world avatar

“Wrong answers” only according to our current order of operations, math still works if you, for example, make additions come first (as long as you’re consistent about it).

OFC it is a convention and to change it you would have to change all expressions ever written all at the same time, to avoid confusion between competing standards. I’m not arguing that it should be changed, only that there is no ‘high truth’ behind it.

SmartmanApps,
@SmartmanApps@programming.dev avatar

“Wrong answers” only according to our current order of operations

No, according to arithmetic.

math still works if you, for example, make additions come first

No, it doesn’t - order of operations proof. The only way it could work with addition first is if we swapped the definitions of addition and multiplication around… but then we still have the same order of operations, all we’ve done is swapped around what we call addition and multiplication!

there is no ‘high truth’ behind it.

There is when it comes to order of operations.

AdrianTheFrog,
@AdrianTheFrog@lemmy.world avatar

Let’s assume for a minute addition comes first. We know 2+3 is 5, and 5x4 is the same as 5+5+5+5=20. What is the issue with that?

SmartmanApps,
@SmartmanApps@programming.dev avatar

5+5+5+5=20. What is the issue with that?

That it’s wrong. If I have 1 2 litre bottle of milk, and 4 3 litre bottles of milk - i.e. 2+3x4 - how many litres of milk do I have? Without even doing the arithmetic, just count it up and tell me how many litres there is.

AdrianTheFrog,
@AdrianTheFrog@lemmy.world avatar

If we change how equations are parsed so addition comes before multiplication, 2+3x4 is not the equation required to solve that problem. 2+(3x4) is the equation needed. You can’t change how equations work and then expect all equations to work the same after the change.

If your argument is that this will add parentheses where we didn’t need them before, that’s valid and its the reason we do it this way in the first place. But that doesn’t mean there is anything fundamentally wrong with having a different system of writing equations in which operations are executed in a different order.

Our whole system of writing equations is just a convention, and yes, it is a good and easy to understand and use way of writing math. But there is no fundamental truth behind it, only that it is simpler for the majority of use cases.

SmartmanApps,
@SmartmanApps@programming.dev avatar

Noted that you didn’t answer my question - the answer is I have 14 litres of milk. 2+3+3+3+3=14 litres. When you did “arbitrary addition first”, you got 20, which is wrong, which is why no other order of operations rules work than the ones we have.

You can’t change how equations work and then expect all equations to work the same after the change

In actual fact the point is that they will except for what ever your new notation is. e.g. if we instead defined + to mean multiply, and x to mean add, then we would do + before x, and again, that would be the only order of operations which works. i.e. the only order which gives us 14 litres.

that doesn’t mean there is anything fundamentally wrong with having a different system of writing equations in which operations are executed in a different order

No, and if you did that, you would again arrive at only one order of operations rules which works, cos I still have 14 litres, and the Maths in this new system still has to give an answer of 14 litres, not 20.

Our whole system of writing equations is just a convention

Nope, it’s all rules, found in any Maths textbook, and if you don’t obey the rules you get wrong answers (like you did when you got 20).

But there is no fundamental truth behind it

Yes there is - I have 14 litres, and only 1 set of order of operations rules gives that answer.

only that it is simpler for the majority of use cases

If you follow the rules of Maths then it is correct for every use case. That’s why they exist in the first place.

AdrianTheFrog,
@AdrianTheFrog@lemmy.world avatar

I think you misunderstand my argument. I could use still math to solve a real-world problem with an altered order of operations. You could still do anything you can do with regular math, if you had a different order of operations. You could make a programming language that parses your inputted expressions with a different order of operations and still use it to calculate collisions or render a 3d scene or do anything else that involves math. Do you need me to calculate something, to prove it to you?

The order of operations is just part of a system of notation and any system of notation that exists in the world is inherently arbitrary. The same way the way that how we draw the number 3 or the number 5 has no inherent meaning behind it other than the convention of how we interpret it, the order of operations is nothing more than a standard part of the notation. Again, I’m not saying that we should or could change it, as there would be no way to indicate which convention we are using and the standard order of operations works perfectly fine.

SmartmanApps,
@SmartmanApps@programming.dev avatar

I think you misunderstand my argument

No, you demonstrably didn’t understand mine, which is, what you are saying is impossible, but you’re still saying it’s possible.

I could use still math to solve a real-world problem with an altered order of operations

No, you can’t. You already tried to do addition first in 2+3x4 and found out why it doesn’t work. Ever since then you’ve been ignoring that result and pretending that there’s some other way to make it work. No, there isn’t. As long as multiplication is defined in terms of addition (i.e. 3x4=3+3+3+3) then it’s impossible to get a right answer unless you do multiplication before addition.

You could still do anything you can do with regular math, if you had a different order of operations

No, you can’t. Again, you already proved you can’t.

Do you need me to calculate something, to prove it to you?

Go ahead - I’m not holding my breath. I already told you why it literally can’t work. But note that adding brackets isn’t changing the order of operations - brackets are already part of the order of operations. Writing 2+3x4 as 2+(3x4) is exactly the same thing.

BTW just to FURTHER prove your “addition first” doesn’t work, look at this example…

3x4+2=3x6=18. But earlier you did 2+3x4=5x4=20 - not even the same answer in an “addition first” world! Welcome to why it’s impossible to make addition-first work. But knock yourself out - you’re welcome to try! 😂

The order of operations is just part of a system of notation

No, it isn’t. It’s part of the rules of Maths. Notation is how you write it - underlying that is how Maths actually works. This is embodied in the rules of Maths.

is inherently arbitrary

Completely fixed, and a result of the way the operators are defined - that was the only “arbitrary” bit, deciding what the operators were and what they were going to mean, but once you did that then the order of operations rules were already written for you (having already been determined as soon as you made the definitions of the operators in the first place).

number 5 has no inherent meaning behind it other than the convention of how we interpret it

Again, not a convention, a rule of how to interpret it. You can’t just decide to interpret 5 as four, or again, you end up with wrong answers. The rules of Maths prevent you from getting wrong answers. You found that out yourself when you tried to do addition first in 2+3x4.

AdrianTheFrog,
@AdrianTheFrog@lemmy.world avatar

the number 5 has no inherent meaning behind it other than the convention of how we interpret it

Again, not a convention, a rule of how to interpret it. You can’t just decide to interpret 5 as four, or again, you end up with wrong answers. The rules of Maths prevent you from getting wrong answers. You found that out yourself when you tried to do addition first in 2+3x4.

It’s only a wrong answer if you use the same expression you would with the standard order of operations. And I’m not saying we can randomly start interpreting 5 as four, just that there is no law of the universe that makes 5 look like that, and we could theoretically (not practically ofc) switch the definitions of the symbols 5 and 4 if we did it all at once and revised old math expressions to match the new standard. Just as there is no reason the letters “bike” mean what they do other than that’s what someone decided to call it, there is no reason the order of operations is what it is other than that is how someone decided to write it.

Scratch doesn’t even have an order of operations. You can still do math in it.

I’m not saying you can take any expression and get the same answer by doing addition before multiplication. I’m saying you can take any problem and get the correct answer by doing addition before multiplication. In your milk example, that means I would use the expression 2+(3x4) because 2+3x4 is no longer the correct expression needed to solve the problem.

(For an example of my distinction of the words “expression” and “problem”, “(4x)+2” is an expression, and “I start with 2 litres of milk. For every dollar I spend, I get 4 more liters of milk. How much milk do I have?” is a problem.)

My argument also relies on a distinction between the language of modern math and the concept of doing math, defining math as the dictionary definition of “The study of the measurement, properties, and relationships of quantities and sets, using numbers and symbols”. As you can see, this makes no mention of the notation commonly used in math. All I am saying is that you can still use numbers to solve problems with an altered order of operations, or by altering any part of the system of notation.

Perhaps seeing how I could solve a problem with a different order of operations will help illustrate my argument:

Problem: 2 cars approach an interchange at a 90 degree angle to each other. Car A approaches the station from 15 meters away at 30 meters/second and Car B approaches the station from 50 meters away at 20 meters/second. How fast is the distance between the cars decreasing?

https://lemmy.world/pictrs/image/a01d746a-6df5-4a57-b602-e03afe743a81.jpeg

Answer: the rate of change of the distance between the cars is approximately -27.777 meters per second.

As you can see, I used my altered math notation to find the correct answer. I can still solve a real-world problem with this notation, but the same expressions you would use before may not work now.

SmartmanApps,
@SmartmanApps@programming.dev avatar

It’s only a wrong answer

Really? You want to do that again? Ok, fine… If I have 1 2 litre bottle of milk, and 4 3 litre bottles of milk - i.e. 2+3x4 - how many litres of milk do I have?

you would with the standard order of operations

The definition of 5 as being 1+1+1+1+1 has nothing to do with order of operations.

there is no law of the universe that makes 5 look like that

No, but there is a rule of Maths which defines it.

switch the definitions of the symbols 5 and 4 if we did it all at once and revised old math expressions to match the new standard

In other words everything would be the same as now but we just switched the notation around. I already said that to you a while back. Now you’re getting it.

there is no reason the order of operations is what it is other than that is how someone decided to write it

Got nothing to do with how it’s written - Maths is written differently in many different countries, and yet the underlying order of operations rules are universal.

I’m not saying you can take any expression and get the same answer by doing addition before multiplication

And if it’s not the same answer then it’s wrong. You’re nearly had it.

I’m saying you can take any problem and get the correct answer by doing addition before multiplication

And I told you you can’t. Waiting on a proof from you. Start with 2+3x4 - show me how you can get the correct answer by doing addition first - it’s a nice simple one. :-)

that means I would use the expression 2+(3x4) because 2+3x4

They’re literally the same thing.

All I am saying is that you can still use numbers to solve problems with an altered order of operations, or by altering any part of the system of notation

And I told you that it’s impossible. Changing the notation doesn’t change the Maths.

As you can see, I used my altered math notation to find the correct answer

BWAHAHAHAHA! Nope! I see you putting brackets around the multiplication to make sure it gets done first - same as if you hadn’t used brackets at all! It’s the exact same notation we use now, just with some redundant brackets added to it! And, predictably, you left the addition for last.

Ok, let’s take your example and do addition first (like you claimed can be done)…

15²+50²=15x15+50x50=15x65x50=48,750. But 15²+50² is 2,725 according to my calculator. Ooooh, different answers - I wonder which one is right… I wonder which one is right…???

Thanks for proving it can only be done by following the order of operations rules (just like I’ve been saying to you all along). Bye now.

AdrianTheFrog,
@AdrianTheFrog@lemmy.world avatar

I"m beginning to wonder if you are willfully misunderstanding my point. Or perhaps you have sunk so much time into this argument you assume I must be wrong. Take another look at my third and fifth paragraphs. I promise, I am not trying to say what you think I’m trying to say.

I see you putting brackets around the multiplication to make sure it gets done first - same as if you hadn’t used brackets at all! It’s the exact same notation we use now, just with some redundant brackets added to it! And, predictably, you left the addition for last.

All I did was use the expression necessary to evaluate correctly with the altered order of operations. There are, in fact, times when you can remove brackets that you would otherwise need, for example (x+4)(x-2) would no longer need brackets. The fact that “old” expressions often have to be written with new brackets to evaluate correctly with an altered order of operations is something I fully understand. The presence of brackets where there would be none otherwise does not invalidate my point.

15²+50²=15x15+50x50=15x65x50=48,750. But 15²+50² is 2,725 according to my calculator. Ooooh, different answers - I wonder which one is right… I wonder which one is right…???

What? I never wrote 15²+50². That is an expression you copied incorrectly. Your incorrectly copied expression has little relevance to the problem at hand.

Ok, fine… If I have 1 2 litre bottle of milk, and 4 3 litre bottles of milk - i.e. 2+3x4 - how many litres of milk do I have?

If we were doing math with an altered order of operations, the expression 2+3x4 is just simply wrong. 2+(3x4) is the expression you need. If you try to do math the same as it is with the regular order of operations, it will not work. But that does not mean math with an altered order of operations is useless. It is still math. It can still be used to “study of the measurement, properties, and relationships of quantities and sets using numbers and symbols”.

I fully understand that to correctly evaluate an expression written with a certain order of operations in mind, you need to use that order of operations. If someone wrote an expression with a different order of operations in mind, you could solve it with a different order of operations and still get what the author of the expression intended. For example, I write the equation a+2xa-2 with my order of operations, expecting you to use the same order of operations, and tell you to simplify. If you get 3a-2, that is wrong, because you used an order of operations different than the one I intended to be used to solve the problem. Imagine, for a moment, an alternate universe where everyone uses a different order of operations and a+2xa-2 simplifies to a^2-4. All I am trying to say is that that their math, with a different order of operations, would be no less useful then our math.

In summary, my only claim is that you can still use a different order of operations to manipulate numbers and solve real world problems.

Waiting on a proof from you.

I wrote and evaluated all of those expressions in my last comment with a different order of operations in mind, and was still able to come to the correct answer.

SmartmanApps, (edited )
@SmartmanApps@programming.dev avatar

I wasn’t going to reply any more, but I see now you don’t understand terms either, so one more time for old time’s sake (and maybe you might finally get it)…

perhaps you have sunk so much time

You know teachers don’t get paid for helping students outside class time right?

assume I must be wrong

No assumption needed. What you are proposing is literally impossible. I’ve been saying that all along.

Take another look at my third and fifth paragraphs.

Ok…

I’m not saying you can take any expression and get the same answer by doing addition before multiplication

And so far you haven’t been able to show it works for any expression at all! Not even one expression! Just like I said would happen.

All I am saying is that you can still use numbers to solve problems with an altered order of operations

And I said you can’t, and you haven’t! All you did was put brackets around the multiplication to make sure we were still following the only order of operations that works! You have still not shown an actual instance where one can actually do addition first and get a right answer, not one! The idea that one could use addition first as an “alternate order of operations” is thus pure fantasy, just like I’ve been saying all along. It’s literally impossible.

for example (x+4)(x-2) would no longer need brackets

Yes it would! (x+4) is one term - that’s what the brackets means - “these things are all together”. If you remove that, because “addition first”, it’s now two terms, so the whole expression is two terms (instead of one), x, and 4(x-2) (which is a mistake people make when they write 8/2(2+2) as 8/2x(2+2) - just turned 2 terms into 3 terms and changed the answer!). Every example you’ve done so far you’ve used brackets to escape from having to do addition first, and the very same thing would therefore apply here - no brackets, no escaping “addition first” approach, brackets before addition leads to x+4(x-2)=x+(4x-8) =5x-8, which is not the product of (x+4) and (x-2).

The presence of brackets where there would be none otherwise does not invalidate my point

No, the fact that you’ve not been able to show a single instance of where addition before multiplication would work does. You can’t show “a way to solve this in an addition first world” when it’s literally impossible for an “addition first world” to exist in the first place.

I never wrote 15²+50²

https://programming.dev/pictrs/image/edc69c83-8236-41bd-905f-25b424486f99.png

…and I removed the brackets to show that addition first doesn’t work (since you keep putting in brackets to revert “addition first” back to the only order of operations that actually works).

It can still be used to “study of the measurement, properties, and relationships of quantities and sets using numbers and symbols”

And you’ve still not shown how. Every example you’ve used so far you’ve put in brackets to your (supposed) “addition first” so that we were evaluating it using the only order of operations that works. In other words, no, you can’t use “addition first” to “study of the measurement, properties, and relationships of quantities and sets using numbers and symbols” - you used the regular order of operations to do it! You haven’t shown a single example of where addition first could be used to do it.

you need to use that order of operations

You need to use an order of operations that gives a correct answer, of which there is only one - a fact you keep trying to avoid.

different order of operations and a+2xa-2 simplifies to a^2-4

No it wouldn’t, cos now you’re ignoring terms as well. As per my earlier working out, it would simplify to 5x-8 unless you also changed the definition of terms. Do you see yet why it’s impossible to have an “alternate order of operations”?

All I am trying to say is that that their math, with a different order of operations, would be no less useful then our math

And you’ve completely failed to show a single instance where this is true - which is what I’ve been saying all along, it’s impossible to have another set of order of operations that works. You keep pre-supposing it’s possible, but then add brackets to the multiplications so that we follow the actual correct order of operations, the only order of operations that works.

my only claim is that you can still use a different order of operations to manipulate numbers and solve real world problems

And you’ve still failed to solve a single problem using addition first, because it’s still a fact it’s literally impossible to do so.

was still able to come to the correct answer

by using the only order of operations that works. i.e. multiplication before addition.

Now I really am done - I’m not going any further down this rabbit hole of whatever other Maths you may not understand either (this post it was Terms - who knows what’s next)…

SmartmanApps,
@SmartmanApps@programming.dev avatar

My mom’s a mathematician, she got annoyed when I said that the order of operations is just arbitrary rules made up by people a couple thousand years ago

I’m not surprised. Here’s the proof of the order of operations rules. Also, the equals sign wasn’t invented until the 16th century, so only 500 years old at most (the earliest references to order of operations are over 400 years ago).

AdrianTheFrog,
@AdrianTheFrog@lemmy.world avatar

That proof for the order of operations sure seems to rely a lot on our current order of operations…

SmartmanApps,
@SmartmanApps@programming.dev avatar

That proof for the order of operations sure seems to rely a lot on our current order of operations

Doesn’t use order of operations at all. It only uses the definitions of the operators. i.e. 3x4=3+3+3+3 by definition. i.e. nothing to do with order of operations.

If I have 1 2l bottle of milk, and 4 3l bottles of milk, how many litres of milk do I have? It can be solved by simply adding them up - again, nothing to do with order of operations here, just simple addition. Now, write it out as a mathematical expression which uses multiplication, and tell me which order of operations gets you the right answer. Voila! Welcome to how we worked out what the order of operations rules had to be.

AdrianTheFrog,
@AdrianTheFrog@lemmy.world avatar

2+(4x3) gives the right answer, with addition coming before multiplication

SmartmanApps,
@SmartmanApps@programming.dev avatar

2+(4x3) gives the right answer, with addition coming before multiplication

If we rewrote all of Maths so that addition came before multiplication, then no, 2+3x4 would no longer mean what it does now (because + and x would have to mean something different to what they do now in order for the order to be swapped). The order of operations rules come directly from the definitions. You can’t just say “we’ll do addition first” without having defined what addition is now, nor multiplication. In a world where addition comes before multiplication, that means multiplication is no longer shorthand for addition (because that’s the very thing which means we have to do multiplication before addition, so it can’t be true anymore if now we’re doing addition first).

Let’s take an imaginary scenario where we now use x for add, and + for multiply. That would indeed mean that + has to be done before x, but note that + now means multiply. That means your “addition first” 2+(3x4) is what we currently mean by 2x(3+4) which is 14. Now take away the brackets (since I don’t use brackets when adding up the milk! Just 2+3x4). Your addition-first 2+3x4 is equivalent in our multiplication-first world to 2x3+4 which equals 10 - the wrong answer! So now you’ve created a world where we have to add brackets to things just to get the right answer! Why would you even want to do that when it works the way it is? The whole point to having order of operations rules is to not have to add brackets!

FlyingSquid,
@FlyingSquid@lemmy.world avatar

I’m with you. Has anyone ever actually seen a math? Can you buy a math at the math store? Are there bespoke math craftspeople?

No.

I rest my case.

tal,
@tal@lemmy.today avatar

“Math” is a mass noun. You can’t have “a math”. It’s like blood or love. You can have more blood or less blood. There might be units in which blood is measured that you can have a certain number of (“a gallon of blood”), but you can’t have, unqualified, a blood or two bloods (well, not in that sense of the word, anyway).

SmartmanApps,
@SmartmanApps@programming.dev avatar

You can’t have “a math”

No, you have a branch of Mathematics.

sunbather,

8÷2(2+2)=2(2+2)÷2(2+2)

alternatively if 8÷2(2+2)=16 that means 2(2+2)=8÷16 in other words 8=0,5 which it isnt

rasensprenger,

your first line is correct, but while it looks like 1 (and it might be under different conventions), evaluating according to standard rules (left to right if not disambiguated by pemdas) yields

2(2+2)/2(2+2) = 2(4)/2(4) = 24/24 = 8/24 = 44 = 16

Using implicit multiplication in quotients is weird and really shouldn’t happen, this would usually be written as 8/(2*(2+2)) or 8/2*(2+2) and both are much clearer

Your second argument only works if you treat 2(2+2) as a single “thing”, which it looks like, but isn’t, in this case

ICastFist,
@ICastFist@programming.dev avatar

The problem is that there’s no “external” parentheses to really tell us which is right: (8 / 2) * 4 or 8 / (2 * 4)

The amount of comments here shows how much debate this “simple” thing generates

EvokerKing,

Afaik the order of operations doesn’t have distributive property in it. It would instead simply become multiplication and would go left to right and would therefore be 16.

SmartmanApps,
@SmartmanApps@programming.dev avatar

Afaik the order of operations doesn’t have distributive property in it

The Distributive Law applies to all bracketed terms that have a coefficient. It’s literally the first step in solving brackets.

Aermis,

If you agree that parenthesis go first then the equation becomes 8/2x4. Then it’s simply left to right because multiplication does not take precedence over division. What’s the nuanced talk? That M comes before D in PEMDAS?

SmartmanApps,
@SmartmanApps@programming.dev avatar

If you agree that parenthesis go first then the equation becomes 8/2x4

No, it becomes 8/(2x4). You can’t remove brackets unless there’s only 1 term left inside. Removing them prematurely flips the 4 from being in the denominator to being in the numerator, hence the wrong answer.

SmartmanApps,
@SmartmanApps@programming.dev avatar

The problem is that there’s no “external” parentheses to really tell us which is right: (8 / 2) * 4 or 8 / (2 * 4)

The Distributive Law tells us it’s the latter.

dynamo,

16

MystikIncarnate,

People in this thread need to watch this: youtu.be/lLCDca6dYpA

GrimChaos,

And the much longer video by the same person:

Problem with PEMDAS: Why Calculators Disagree youtu.be/4x-BcYCiKCk

SmartmanApps,
@SmartmanApps@programming.dev avatar

Problem with PEMDAS: Why Calculators Disagree youtu.be/4x-BcYCiKCk

Debunked here - she never once refers to an actual Maths textbook!

Th0rgue,

This is the best video out there. A lot of people in north america have no idea.

SmartmanApps,
@SmartmanApps@programming.dev avatar

This is the best video out there

Debunked here - she never once refers to an actual Maths textbook!

SmartmanApps,
@SmartmanApps@programming.dev avatar

People in this thread need to watch this: youtu.be/lLCDca6dYpA

Debunked here. She managed to never once refer to an actual Maths textbook! Spoiler alert: everyone who has claimed it’s “ambiguous” has done the same thing - no references to any Maths textbooks.

MystikIncarnate,

If you think I’m navigating that mess of cross linked posts, well, you’re in for a surprise.

You’re really late to this thread.

She didn’t reference any math textbooks because she made the video for commoners, aka not math majors. Her explanations make sense even if they’re technically wrong from the perspective of pure mathematics.

Unfortunately, I don’t think many people are going to see your reply, and fewer still will deal with the format you’ve chosen to present it in; an even smaller subset will likely understand the concepts you’re trying to explain.

Unfortunately, posting this, so long after the thread was active, linking to your own social media as a reference, seems a lot more like attention seeking behavior. The kind of thing I would expect from a bot or phishing attack, especially since you seem to have copy/pasted the reply on several comments. It’s like you searched for the YouTube link and just vomitted the same reply on every reference to it. That’s bot behavior.

I’m not saying you’re actually a bot, or that anything you’ve posted is incorrect at all. It just seems suspect.

SmartmanApps,
@SmartmanApps@programming.dev avatar

you’re in for a surprise

I’m not actually. A lot of people don’t want to confront evidence that they’re wrong.

She didn’t reference any math textbooks because she made the video for commoners, aka not math majors.

Did you notice she’s a Physics major? In other words, she doesn’t have any Maths textbooks to reference.

Her explanations make sense

So, even when she couldn’t explain why one calculator “sometimes obeys juxtaposition, sometimes doesn’t”, that still made sense to you?

technically wrong

Bingo!

I don’t think many people are going to see your reply

These comments are going to show up in search results for the rest of eternity, so I’m quite happy to debunk the disinformation in it.

you seem to have copy/pasted the reply on several comments

3 different people referred to the same video, so yeah I did something I don’t normally do and copy/pasted for those 3 people. Read my other replies and you’ll find they’re all specific to the person I’m replying to.

It’s like you searched for the YouTube link

No, I’ve had multiple people tell me about it previously, as “proof” that Maths is ambiguous, hence why I wrote a thread debunking the claims she (and others) made.

It just seems suspect

It’s all legit, so feel free to go back and read what I’ve written given that context.

mindbleach,

Different compilers have robbed me of all trust in order-of-operations. If there’s any possibility of ambiguity - it’s going in parentheses. If something’s fucky and I can’t tell where, well, better parenthesize my equations, just in case.

Crozekiel,

This is the way. It’s an intentionally ambiguously written problem to cause this issue depending on how and where you learned order of operations to cause a fight.

SmartmanApps,
@SmartmanApps@programming.dev avatar

intentionally ambiguously written

learned order of operations to cause a fight

The order of operations are the same everywhere. The fights arise from people who don’t remember them.

Crozekiel,

Please see this section of Wikipedia on the order of operations.

The “math” itself might not be ambiguous, but how we write it down absolutely can be. This is why you don’t see actual mathematicians arguing over which one of these calculators is correct - it is not either calculator being wrong, it is a poorly constructed equation.

As for order of operations, they are “meant to be” the same everywhere, but they are taught differently. US - PEMDAS vs UK - BODMAS (notice division and multiplication swapped places). Now, they will say they are both given equal priority, but you can’t actually do all of the multiplication and division at one time. Some are taught to simply work left to right, while others are taught to do multiplication first; but we are all taught to use parentheses correctly to eliminate ambiguity.

SmartmanApps,
@SmartmanApps@programming.dev avatar

Please see this section of Wikipedia on the order of operations

That section is about multiplication, and there isn’t any multiplication in this expression.

The “math” itself might not be ambiguous, but how we write it down absolutely can be

Not in this case it isn’t. It has been written in a way which obeys all the rules of Maths.

This is why you don’t see actual mathematicians arguing over which one of these calculators is correct

But I do! I see University lecturers - who have forgotten their high school Maths rules (which is where this topic is taught) - arguing about it.

it is not either calculator being wrong

Yes, it is. The app written by the programmer is ignoring The Distributive Law (most likely because the programmer has forgotten it and not bothered to check his Maths is correct first).

US - PEMDAS vs UK - BODMAS

Those aren’t the rules. They are mnemonics to help you remember the rules

notice division and multiplication swapped places

Yes, that’s right, because they have equal precedence and it literally doesn’t matter which way around you do them.

you can’t actually do all of the multiplication and division at one time

Yes, you can!

Some are taught to simply work left to right

Yes, that’s because that’s the easy way to obey the actual rule of Left associativity.

we are all taught to use parentheses correctly to eliminate ambiguity

Correct! So 2(2+2) unambiguously has to be done before the division.

Crozekiel,

Just out of curiosity, what is the first 2 doing in “2(2+2)”…? What are you doing with it? Possibly multiplying it with something else?

there isn’t any multiplication in this expression.

Interesting.

I really hope you aren’t actually a math teacher, because I feel bad for your students being taught so poorly by someone that barely has a middle school understanding of math. And for the record, I doubt anyone is going to accept links to your blog as proof that you are correct.

SmartmanApps,
@SmartmanApps@programming.dev avatar

Just out of curiosity, what is the first 2 doing in “2(2+2)”…? What are you doing with it? Possibly multiplying it with something else?

Distributing it, as per The Distributive Law. Even Khan Academy makes sure to not call it “multiplication”, because that refers literally to multiplication signs., which, as I said, there aren’t any in this expression - only brackets and division (and addition within the brackets).

https://programming.dev/pictrs/image/8883c191-8fce-4ab8-875c-20454576dd0a.jpeg

I feel bad for your students

My students are doing well thanks.

https://programming.dev/pictrs/image/0cf3ae5a-febd-4397-9a35-6d5e12c818f3.png

I doubt anyone is going to accept links to your blog as proof that you are correct

You mean the blog that has Maths text book references, historical Maths documents, and proofs? You know proofs are always true, right? But thanks for the ad hominem anyway, instead of any actual proof or evidence to support your own claims.

linuxdweeb,

This is best practice since there is no standard order of operations across languages. It’s an easy place for bugs to sneak in, and it takes a non-insignificant amount of time to debug.

SmartmanApps,
@SmartmanApps@programming.dev avatar

there is no standard order of operations across languages

Yes there is. The rules of Maths are universal.

It’s an easy place for bugs to sneak in

But that’s because of programmers not checking the rules of Maths first.

SmartmanApps,
@SmartmanApps@programming.dev avatar

Different compilers

Different programmers.

it’s going in parentheses

Unfortunately some places don’t care where you’ve put brackets, they’ll just go ahead and change it anyway. Welcome to my quest to educate.

https://programming.dev/pictrs/image/048f671e-047a-4ed7-af0a-85d3c6bcff6b.jpeg

mindbleach,

That’s the same ambiguity, numbnuts. Your added parentheses do nothing. If you wanted to express the value 8 over the value 2*(1+3), you should write 8/(2*(1+3)). That is how you eliminate other valid interpretations.

As illustration of why there are competing valid interpretations: what human being is going to read “8/2 * (1+3)” as anything but 4*4? Those spaces create semantic separation. But obviously most calculators don’t have a spacebar, any more than they have to ability to draw a big horizontal line and place 2(1+3) underneath it. Ambiguous syntax for expressing mathematics is not some foundation-shaking contradiction. It’s a consequence of limitations in how we express even the most concrete ideas.

“The rules of math” you keep spamming about are not mathematical proofs - they’re arbitrary decisions made by individuals and organizations. In many cases the opposite choice would be equally sensible. Unlike the innate equivalence of multiplication and division, where dividing by two and multiplying by half are interchangeable. Same with addition and subtraction.

Do you want to argue that 8 - (2) + (1+3) should be 2?

SmartmanApps,
@SmartmanApps@programming.dev avatar

Your added parentheses do nothing

So you’re saying Brackets aren’t first in order of operations? What do you think brackets are for?

If you wanted to express the value 8 over the value 2*(1+3), you should write 8/(2*(1+3))

or, more correctly 8/2(1+3), as per the rules of Maths (we never write unnecessary brackets).

That is how you eliminate other valid interpretations

There aren’t any other valid interpretations.

what human being is going to read “8/2 * (1+3)” as anything but 4*4

Yes, that’s right, but 8/2x(1+3) isn’t the same as 8/2(1+3). That’s the mistake that a lot of people make - disobeying The Distributive Law.

Those spaces

…have no meaning in Maths. The thing that separates the Terms, in your example, is the multiply. i.e. an operator.

most calculators don’t have a spacebar

…because it’s literally meaningless in Maths.

any more than they have to ability to draw a big horizontal line and place 2(1+3) underneath it

Some of them can actually.

“The rules of math” you keep spamming about are not mathematical proofs

You should’ve read further on then. Here’s the proof.

they’re arbitrary decisions made by individuals

No, they’re a natural consequence of the way we have defined operators. e.g. 2x3=2+2+2, therefore we have to do multiplication before addition.

In many cases the opposite choice would be equally sensible

2+2x3=2+6=8 the correct answer, but if I do addition first…

2+2x3=4x3=12, which is the wrong answer. How is getting the wrong answer “equally sensible” as getting the right answer?

Do you want to argue that 8 - (2) + (1+3) should be 2?

No, why would I do that? 8-(2+1+3) does equal 2 though.

mindbleach,

You are a smug idiot.

8/2(1+3) is exactly the sort of thing programs love to misinterpret. I don’t give a shit what “rules of math” you insist are super duper universal, or what “we” do. They are not reliable. Clear parentheses are. Insisting you’re correct is not relevant. You stumbled into a pragmatic issue with grand philosophical assurances that aren’t even sound.

Yes, that’s right, but 8/2x(1+3) isn’t the same as 8/2(1+3).

… no, that’s fucking stupid.

Some of them can actually.

Hence the word “most.” Your cocksure months-late manic episode across this thread is the most “akshually” thing I have ever witnessed.

Here’s the proof.

You dense bastard! That’s a category error! You can’t prove that 2(3) means something different from 2*3. It’s only convention! It’s a thing we made up, unlike actual mathematical proofs, which are laws of the universe. If everyone disagreed with that then it would stop being true. That’s not a sentence you can say about anything that has a proof, instead of some evidence.

You keep talking about “rules of math” when what you mean is rules of this particular notation. Reverse Polish Notation doesn’t have this issue, at all. Distribution is not even possible in RPN. So however important you think it might be… it’s not universal.

[Those spaces] have no meaning in Maths.

THAT’S THE POINT, NUMBNUTS. It’s semantic separation that human beings will read in for context. Which they need, because some grammars have ambiguities, which can only be resolved by convention. Like how -6 is a number, and you can add or multiply -6, but 1 + -6 looks kinda weird, -6(3) is fine, and (3) -6 is asking for trouble.

The convention overwhelmingly used in computation is that parentheses are resolved first. Nothing is distributed over them - they are evaluated, and then used. In exactly the same way that multiplication can be treated as repeated addition, operations on parentheticals are treated as operations on equations reduced to scalars. It doesn’t fucking mean anything, to say 8/2*(1+3) is different from 8/2(1+3), because in the notation used by coders, they both become 8/2*4.

You might as well barge in pick a fight with N=N+1.

SmartmanApps,
@SmartmanApps@programming.dev avatar

You are a smug idiot

That’s your colloquialism for Maths teachers. Ok, got it.

8/2(1+3) is exactly the sort of thing programs love to misinterpret.

Programs, written by programmers, who have forgotten the rules of Maths.

that’s fucking stupid

So you’re saying the rules of Maths are stupid. Got it.

You can’t prove that 2(3) means something different from 2*3. It’s only convention!

No, it’s a rule of Maths - it’s literally the opposite operation to factorising.

https://programming.dev/pictrs/image/b7c076a5-a8fe-404f-a40b-a1b9118b0b21.jpeg

It’s a thing we made up

Nothing in Maths is made up. It’s based on our observations of how things work.

mathematical proofs, which are laws of the universe

Now you’re getting it.

this particular notation

…which is Maths.

Reverse Polish Notation doesn’t have this issue, at all

Neither does infix notation. All notations have to obey the rules of Maths, since the rules of Maths are universal.

Distribution is not even possible in RPN

Second hit in my Google results…

https://programming.dev/pictrs/image/170be4ec-55d6-4e36-98d0-0c2233e33fc2.png

(3) -6 is asking for trouble

It’s -3 - where’s the trouble?

say 8/2*(1+3) is different from 8/2(1+3), because in the notation used by coders, they both become 8/2*4

Welcome to why almost every single e-calculator is wrong (as opposed to handheld calculators) - MathGPT gets it right.

mindbleach,

Nothing in Maths is made up. It’s based on our observations of how things work.

The notation and syntax of how we express that, is made-up. There’s multiple options. There’s disagreements. Fuck me sideways, you are a teacher, and you can’t figure out how being off-topic works?

Evidently not, as you flip between ‘this particular notation is the notation!’ to ‘of course other notations exist’ and suffer zero cognitive dissonance. By capital-M “Maths,” do you mean the notation on paper, or the underlying laws-of-reality stuff? It depends! It’s ambiguous and requires context, or maybe you’re just factually wrong at least one of those times, and either way, that means it’s plainly not THE SAME KIND OF THING as the laws-of-reality stuff.

It’s a category error. You can prove that the word prove isn’t spelled proove, for some reason, but the heavens would not bend the other direction if that changed. We could swap square braces and parenthesis and nothing would be different. We could use the glyph “&” instead of “7.” These details are mutable and completely fucking arbitrary. But then & - 6 = 1, and you could never proove otherwise.

Second hit in my Google results…

Shows B being subtracted from A before that value is multiplied by C. It’s not distribution. It’s evaluating the parenthetical.

It’s -3 - where’s the trouble?

The fact it’s 3 and -6, not 3 - 6. Which is why I explicitly mentioned that -6 was a number, and used two other examples with -6. I wasn’t just making conversation. Jesus fucking Christ, a state trusts you with the education of children.

According to the textbook you’re now screenshotting at people, A(B) and (B)A are both correct - yes? They’re both valid? And spaces have no impact on an equation? And writing equations like -6 + 1 are fine, instead of (-6) + 1, since you don’t want needless parentheses?

SmartmanApps,
@SmartmanApps@programming.dev avatar

‘this particular notation is the notation!’ to ‘of course other notations exist’

The notation for division in some countries is the obelus, in other countries it’s a colon. Whatever country you’re in, the notation for that country is the notation for division (be it an obelus or a colon).

Maths,” do you mean the notation on paper, or the underlying laws-of-reality stuff

Both! Whatever notation your country uses, all the rules for Maths and use of that Maths notation are defined.

It’s ambiguous

No, it’s not.

It’s not distribution. It’s evaluating the parenthetical

And Distribution applies to brackets/parentheses where they have a coefficient. In other words, same same.

it’s 3 and -6, not 3 - 6

You didn’t put a comma between 3 and -6, so no, it’s not 3 and -6, it’s 3-6. That’s what you wrote, that’s what it is.

a state trusts you with the education of children

Related - have you noticed how children never get this wrong? It’s only adults who’ve forgotten the rules of Maths who get it wrong.

According to the textbook you’re now screenshotting at people, A(B) and (B)A are both correct - yes? They’re both valid? And spaces have no impact on an equation? And writing equations like -6 + 1 are fine, instead of (-6) + 1, since you don’t want needless parentheses?

Yes (though the latter is unconventional), yes (though the latter is unconventional), yes, yes (though unconventional - 1-6 is the conventional way to write that), yes, yes.

mindbleach,

Again pointing straight at RPN: does the colon go between the operands, or after them? That too is notation. That too is negotiable.

The parts of mathematics that are eternal and discovered are separate from the parts that are arbitrary and invented. We are talking almost exclusively about the latter.

Both!

It’s ambiguous

No, it’s not.

Do you read the things you write?!

And Distribution applies to brackets/parentheses where they have a coefficient. In other words, same same.

No.

What?

No!

Do you even know what your argument is?

The central point you spammed a dozen people with, here in this thread from last year, is an insistence that multiplying by a parenthetical is different from distribution. You explicitly said 2(3+1) and 2*(3+1) are not the same thing. So when your hot second of Google knowledge shows (3+1), *2, converted to RPN, you do not get to claim that’s the same thing as distribution, goddammit!

You didn’t put a comma between 3 and -6, so no, it’s not 3 and -6, it’s 3-6. That’s what you wrote, that’s what it is.

No, dumbass, (3) -6 is the quantities 3 and -6 in the format (A)B. A format you go on to say is fine with zero reflection or recognition, because you’re experiencing this conversation one sentence at a time and putting absolutely zero thought into context or meaning.

I fucking hated teachers like you. You’re not listening. You’re just preaching.

SmartmanApps, (edited )
@SmartmanApps@programming.dev avatar

multiplying by a parenthetical is different from distribution

Ok, let’s tweak it (I’ve practically never used RPN, but only took me a couple of minutes of research to work it out)…

1/2x3 same as 1 2 ÷ 3 x

https://programming.dev/pictrs/image/28660184-bcd6-4958-9241-e81f9b258e16.png

1/2(3) same as 1 2 3 x ÷

https://programming.dev/pictrs/image/cd7a28b6-87f9-4491-bc4b-77f2b7fea951.png

…and to bring it back to the original question…

8/2x(2+2)

https://programming.dev/pictrs/image/f246a865-4144-47bb-bb2a-1611886064cd.png

8/2(2+2)

https://programming.dev/pictrs/image/761f0462-09eb-4304-b25e-37212ffdbe4d.png

Learn something new every day, :-) and took me no time at all to debunk your claim that it’s not possible in RPN.

(3) -6 is the quantities 3 and -6 in the format (A)B

And what do you do with these “quantities”? Multiply them? If so then it’s exactly the same as A(B). If you’re talking about something else then tell me what you’re talking about.

zero thought

I managed to work out how to do distribution in RPN, something you claimed couldn’t be done, so who’s the one giving zero thought?

mindbleach, (edited )

If so then it’s exactly the same as A(B). If you’re talking about something else then tell me what you’re talking about.

I’m talking about how you said (A)B for A=3 B=-6 equals -3. By all means, tell me it’s because you read it as 3 - 6, because that’s my fucking point. The math is immutable. The syntax can be ambiguous.

I managed to work out how to do distribution in RPN, something you claimed couldn’t be done, so who’s the one giving zero thought?

You don’t understand the claim. No shit RPN can perform the individual steps of working through (A+B)C. But that equation does not exist in RPN. If you insist even (A+B)C is a different equation, then obviously ACBC*+ is a different equation. You can do the math for distribution, using RPN, but the concept of distribution does not exist within RPN.

You can’t have rules about parentheses in a notation that does not have parentheses.

What you did is only equivalent. In the exact same way that evaluating a parenthetical gets the same result as distribution. Because that part is math, not notation. And it doesn’t matter if you do the multiplication using repeated addition, or the Russian peasant method, or floating point, or whateverthefuck. The math doesn’t change… but many competing methods are equally valid.

SmartmanApps,
@SmartmanApps@programming.dev avatar

I’m talking about how you said (A)B for A=3 B=-6 equals -3

No, that’s not what I said, since that’s not what you said. You didn’t write (A)B where A=3 and B=-6, you wrote (3)-6, which is 3-6 (the brackets are redundant as they are 2 terms separated by an operator), which is -3. If you intended this to be interpreted as a single term then you should’ve written (3)(-6), which is -18. Alternatively, if you had written (3)6, that would be equal to 18, but you wrote (3)-6, which is 2 terms separated by a minus. You wrote (A)-B, not (A)B (or (A)(B)), and so I read it as (A)-B.

The syntax can be ambiguous.

No, it’s not. Now that I know what you mean, you just failed to write it the way you apparently intended - you didn’t follow the syntax rules for multiplying by a negative.

but the concept of distribution does not exist within in RPN

So what you’re really saying, as far as I can tell, is brackets themselves don’t exist in RPN.

evaluating a parenthetical gets the same result as distribution

Except when it doesn’t, which is my original point.

mindbleach,

So what you’re really saying, as far as I can tell, is brackets themselves don’t exist in RPN.

As far as you can tell. Really. Like it’s an oblique implication, and not the next sentence.

If this is the rate you absorb information when it’s repeatedly laid out in plain fucking English, I’m not sure we’ll live long enough for you to grasp why your original point was off-topic. Good day.

SmartmanApps,
@SmartmanApps@programming.dev avatar

As far as you can tell. Really. Like it’s an oblique implication

Indeed there was an oblique implication in me saying “as far as I can tell”, but you seemed to miss it (I was wording it in a polite way, rather than being downright rude like a lot of people in here seem to have no trouble with at all, but water off a duck’s back…).

your original point was off-topic

The OP was about an e-calculator giving the wrong answer, so I don’t see how explaining why it’s doing that is off-topic (in your view).

Good day

Bye now.

Zummy,

I don’t understand why people say Maths. Math encompasses every single type of Math. Maths is just wrong.

SkyeStarfall,

Because it’s British English

Zummy,

That may be, but Math still encompasses all Math so there’s no need to pluralize it.

quinkin,

Mathematics.

joby,

The discipline is “mathematics.” It’s really not unreasonable that in some parts of the world, it got shortened to maths.

Tlaloc_Temporal,

And the other error present is the incorrect pluralisation. Mathematica means the entire area or domain of knowledge, while mathematics sounds like several lines of thinking, which is weird when we use it as a singular. Maths doesn’t refer to several kinds of math, and that’s confusing.

SmartmanApps,
@SmartmanApps@programming.dev avatar

Mathematica

https://programming.dev/pictrs/image/7c47b981-731f-4d51-91ca-2d5e308633b7.png

Maths doesn’t refer to several kinds of math

It refers to all branches of Mathematics.

Tlaloc_Temporal,

That’s an after the fact justification.

SmartmanApps,
@SmartmanApps@programming.dev avatar

That’s an after the fact justification

You got some sources with dates in them to show it was “after”, and not, you know, before?

Tlaloc_Temporal,

The original Greek “-ikos” was both the feminine singular when refering to “the art” (the whole field), and the neuter plural when refering to “things pertaining to the art”. Latin took just the feminine singular, and most Latin-based languages today still use a singular, including English terms older than 1500 or so, like chemistry rather than chemics, taxonomy v. taxonomics, or arithmetic as opposed to arithmetics‽

Later in the Renaissance, people remembered Greek existed, and decided to try and bring back the neuter plural by taking a perfectly good -ic and slapping an s on it. Thus we get the somewhat newer sciences of physics, mathematics, ballistics, demographics, statistics, and so on.

The shortening of mathematics to “math” and “maths” was done much later, around 1900, give or take a few decades. Both versions can be found as purely written contractions beforehand, but their use in speech and whether the s was thruncated appears random.

Thus, if you must use a plural, the original useage has singular for the field (“Biomechanics is a difficult subject.”), and plural for things relating to the field (“The mathematics used are difficult to parse.”); don’t try to justify using several thousand year old grammar (from a region remote enough that we forgot about it for several centuries) with syntax rules not present in the original. English is plenty fucked up as it is, let it build it’s own syntax and heal a bit, eh?

SmartmanApps,
@SmartmanApps@programming.dev avatar

So, no sources. Got it.

The original Greek “-ikos” was both the feminine singular when refering to “the art” (the whole field)

In modern English it’s The Arts - plural as it refers to all types of art (music, painting, etc.).

whether the s was thruncated appears random

I’m not sure North Americans would appreciate being called “random”. 😂 Just the other day I was surprised when I saw a Canadian who used an American spelling, and when I asked him about it he said he was pretty much forced to because programming uses American spelling.

useage

Usage

several thousand year old grammar (from a region remote enough that we forgot about it for several centuries) with syntax rules not present in the original.

Did you miss the part where it says it’s a borrowed word?

SkyezOpen,

And British English is wrong. Those motherfuckers stick “u” into way too many words.

Afghaniscran,

Anymore of this disrespect and I’ll stick “u” into an early grave.

/jk

I feel obligated to say English that comes from England is the only real English. You can keep your Americanese.

soggy_kitty,

I’ll have you find that there’s more Americans and statistically likely to have more “motherfuckers” in america

Zehzin,
@Zehzin@lemmy.world avatar

What is math short for?

firewyre,

It’s a shortened form of mathematics, build a bridge and get over it

Zummy,

Ok, but the British also shortened television and made it tele. That makes sense because they took part of the word to do it. If you were going to shorten the word mathematics, why wouldn’t it be math, especially when that would follow what you did with television. Why shorten the word and then add the s from the end for no reason?

firewyre,

Television isn’t a plural word tho? And if they were talking about more than one television I feel like they would absolutely say teles (tellies?), altho not British so 🤷‍♂️

SmartmanApps,
@SmartmanApps@programming.dev avatar

why wouldn’t it be math, especially when that would follow what you did with television

Because television is singular (a TV set) and Maths is plural, same as Bros. is the abbreviation of brothers. i.e. when abbreviating a plural you keep the “s”.

SmartmanApps,
@SmartmanApps@programming.dev avatar

I don’t understand why people say Maths

Because it’s plural.

every single type of Math

In other words, every branch of Mathematics.

Elderos,

In some countries we’re taught to treat implicit multiplications as a block, as if it was surrounded by parenthesis. Not sure what exactly this convention is called, but afaic this shit was never ambiguous here. It is a convention thing, there is no right or wrong as the convention needs to be given first. It is like arguing the spelling of color vs colour.

Zagorath,
@Zagorath@aussie.zone avatar

This is exactly right. It’s not a law of maths in the way that 1+1=2 is a law. It’s a convention of notation.

The vast majority of the time, mathematicians use implicit multiplication (aka multiplication indicated by juxtaposition) at a higher priority than division. This makes sense when you consider something like 1/2x. It’s an extremely common thing to want to write, and it would be a pain in the arse to have to write brackets there every single time. So 1/2x is universally interpreted as 1/(2x), and not (1/2)x, which would be x/2.

The same logic is what’s used here when people arrive at an answer of 1.

If you were to survey a bunch of mathematicians—and I mean people doing academic research in maths, not primary school teachers—you would find the vast majority of them would get to 1. However, you would first have to give a way to do that survey such that they don’t realise the reason they’re being surveyed, because if they realise it’s over a question like this they’ll probably end up saying “it’s deliberately ambiguous in an attempt to start arguments”.

itslilith,
@itslilith@lemmy.blahaj.zone avatar

The real answer is that anyone who deals with math a lot would never write it this way, but use fractions instead

Zagorath,
@Zagorath@aussie.zone avatar

So are you suggesting that Richard Feynman didn’t “deal with maths a lot”, then? Because there definitely exist examples where he worked within the limitations of the medium he was writing in (namely: writing in places where using bar fractions was not an option) and used juxtaposition for multiplication bound more tightly than division.

https://aussie.zone/pictrs/image/8ccdd67c-5446-4dad-8caa-8ad839b0f997.png

Here’s another example, from an advanced mathematics textbook:

https://aussie.zone/pictrs/image/c0e208b5-b2d6-4c5f-9ade-849de50a623a.png

Both show the use of juxtaposition taking precedence over division.

I should note that these screenshots are both taken from this video where you can see them with greater context and discussion on the subject.

custard_swollower,

Mind you, Feynmann clearly states this is a fraction, and denotes it with “/” likely to make sure you treat it as a fraction.

barsoap,

Yep with pen and paper you always write fractions as actual fractions to not confuse yourself, never a division in sight, while with papers you have a page limit to observe. Length of the bars disambiguates precedence which is important because division is not associative; a/(b/c) /= (a/b)/c. “calculate from left to right” type of rules are awkward because they prevent you from arranging stuff freely for readability. None of what he writes there has more than one division in it, chances are that if you see two divisions anywhere in his work he’s using fractional notation.

Multiplication by juxtaposition not binding tightest is something I have only ever heard from Americans citing strange abbreviations as if they were mathematical laws. We were never taught any such procedural stuff in school: If you understand the underlying laws you know what you can do with an expression and what not, it’s the difference between teaching calculation and teaching algebra.

SmartmanApps,
@SmartmanApps@programming.dev avatar

never a division in sight

There is, especially if you’re dividing by a fraction! Division and fractions aren’t the same thing.

if you see two divisions anywhere in his work he’s using fractional notation

Not if it actually is a division and not a fraction. There’s no problem with having multiple divisions in a single expression.

barsoap,

Division and fractions aren’t the same thing.

Semantically, yes they are. Syntactically they’re different.

SmartmanApps,
@SmartmanApps@programming.dev avatar

Semantically, yes they are

No, they’re not. Terms are separated by operators (division) and joined by grouping operators (fraction bar).

barsoap,

That’s syntax.

…let me take this seriously for a second.

The claim “Division and fractions are semantically distinct” implies that they are provably distinct functions, we can use the usual set-theoretic definition of those. Distinctness of functions implies the presence of pair n, m, elements of an appropriate set, say, the natural numbers without zero for convenience, such that (excuse my Haskell) div n m /= fract n m, where /= is the appropriate inequality of the result set (the rational numbers, in this example, which happens to be decidable which is also convenient).

Can you give me such a pair of numbers? We can start to enumerate the problem. Does div 1 1 /= fract 1 1 hold? No, the results are equal, both are 1. How about div 1 2 /= fract 1 2? Neither, the results are both the same rational number. I leave exploring the rest of the possibilities as an exercise and apologise for the smugness.

SmartmanApps,
@SmartmanApps@programming.dev avatar

let me take this seriously for a second

You need to take it seriously for longer than that.

implies that they are provably distinct functions

No, I’m explicitly stating they are.

we can use the usual set-theoretic definition

This is literally Year 7 Maths - I don’t know why some people want to resort to set theory.

Can you give me such a pair of numbers?

But that’s the problem with your example - you only tried it with 2 numbers. Now throw in another division, like in that other Year 7 topic, dividing by fractions.

1÷1÷2=½ (must be done left to right)

1÷½=2

In other words 1÷½=1÷(1÷2) but not 1÷1÷2. i.e. ½=(1÷2) not 1÷2. Terms are separated by operators (division in this case) and joined by grouping symbols (brackets, fraction bar), and you can’t remove brackets unless there is only 1 term left inside, so if you have (1÷2), you can’t remove the brackets yet if there’s still some of the expression it’s in left to be solved (or if it’s the last set of brackets left to be solved, then you could change it to ½, because ½=(1÷2)).

Therefore, as I said, division and fractions aren’t the same thing.

apologise for the smugness

Apology accepted.

barsoap, (edited )

1÷½=1÷(1÷2) but not 1÷1÷2.

I’m not asking you to explain how division isn’t associative, I’m asking you to find an n, m such that ⁿ⁄ₘ is not equal to n ÷ m.

To compare two functions you have to compare them one to one, you have to compare ⁄ to ÷, not two invocation of one to three invocation of the others or whatever.

Also I’ll leave you with this. Stop being confidently incorrect, it’s a bad habit.

EDIT: OMG you’re on programming.dev. A programmer should understand the difference between syntax and semantics. This vs. this. Mathematicians tend to call syntax “notation” but it’s the same difference.

Another approach: If frac and div are different functions, then multiplication would have two different inverses. How could that be?

SmartmanApps,
@SmartmanApps@programming.dev avatar

I’m not asking you to explain how division isn’t associative

I was explaining why we have the rule of Terms (which you’ve not managed to find a problem with).

I’m asking you to find an n, m such that ⁿ⁄ₘ is not equal to n ÷ m

I already pointed out that’s irrelevant - it doesn’t involve a division followed by a factorised term. You’re asking me to defend something which I never even said, nor is relevant to the problem. i.e. a strawman designed to deflect.

Stop being confidently incorrect

You haven’t shown that anything I’ve said is incorrect. If you wanna get back on topic, then come back to showing how 1÷½=1÷(1÷2) but not 1÷1÷2 is, according to you, incorrect (given you claimed division and fractions are the same thing)

EDIT: OMG you’re on programming.dev.

Yeah, welcome to why I’m trying to get programmers to learn the rules of Maths

barsoap,

You’re asking me to defend something which I never even said

I said:

Semantically, yes they are

You replied:

No, they’re not.

Thus, you made a claim about semantics. One which I then went on and challenged you to prove, which you tried to do with a statement about syntax.


The opposite of div is to multiply. The opposite of frac is to invert the fraction.

I did not say “opposite”. I said “inverse”. That term has a rather precise meaning.

You haven’t shown that anything I’ve said is incorrect. If you wanna get back on topic, then come back to showing how 1÷½=1÷(1÷2) but not 1÷1÷2 is, according to you, incorrect (given you claimed division and fractions are the same thing)

Your statement there is correct. It is also a statement about syntax, not semantics. Divisions and fractions are distinct in syntax, but they still both are the same functions, they both are the inverse of multiplication.

Yeah, welcome to why I’m trying to get programmers to learn the rules of Maths

PEMDAS is not a rule of maths. It’s a bunch of bad American maths pedagogy. Is, in your opinion, “show your work” a rule of maths? Or is it pedagogy?

SmartmanApps,
@SmartmanApps@programming.dev avatar

Thus, you made a claim about semantics

And told you what it was.

challenged you to prove

Which I did with a concrete example, which you have since ignored.

I did not say “opposite”. I said “inverse”

The inverse of div is to multiply. The inverse of frac is to invert the fraction - happy now?

Divisions and fractions are distinct in syntax, but they still both are the same functions

No, they’re not. Division is a binary operator, a fraction is a single term.

they both are the inverse of multiplication

Multiplication is also a binary operator, and division is the opposite of it (in the same way that plus and minus are unary operators which are the opposite of each other). A fraction isn’t an operator at all - it’s a single term. There is no “opposite” to a single term (except maybe another single term which is the opposite of it. e.g. the inverse fraction).

PEMDAS is not a rule of maths

No, it’s a mnemonic to remind people of the actual rules.

barsoap,

Which I did with a concrete example, which you have since ignored.

You have given nothing of that sort. You provided a statement about a completely orthogonal topic instead. “Prove that the sky is blue” – “Here, grass is green” – “That doesn’t answer the question” – “Nu-uh it does!”. That’s you. That “Nu-uh”.

The inverse of frac is to invert the fraction - happy now?

“Inverting a fraction” is not a functional inverse. You’re getting led astray by terminology, those two uses of the word “invert” have nothing to do with each other, it’s a case of English having bad terminology (in German we use different terms so the confusion doesn’t even begin to apply).

Go read that wikipedia article I linked. Can you even read it. Do you have the necessary mathematical literacy.

No, they’re not. Division is a binary operator, a fraction is a single term.

Do you want to tell me that fractions don’t take two numbers? That two numbers applied to division don’t form a term?

Multiplication is also a binary operator, a and division is the opposite of it

Inverse. I read elsewhere that you’re a math teacher and this is just such a perfect example of what’s wrong with math ed: Teachers don’t even know the fucking terminology. You don’t know maths. You know a couple of procedural rules you shove into kids, rules that have to be un-taught in university because nothing of it has anything to do with actual maths.

No, it’s a mnemonic to remind people of the actual rules.

There’s no such thing anywhere but in the US. Those rules are a figment of the imagination of the US education system.


You are up to your scalp in the Dunning-Kruger effect. Two possibilities: You quadruple down and become increasingly bitter, or you find yourself an authority that you trust, e.g. a university professor, and ask them in person. Ask a Fields Medalist if you can get hold of one. You think you know more about this than me. Motherfucker you do not, but I also acknowledge that I’m just some random guy on the internet to you.


If you want to continue this, I have one condition: Explain, in your own words, the difference between syntax and semantics. If you have done that, done that homework, I’m willing to resume your education. Otherwise, take the given advice and get lost I’ve got better things to do than to argue with puerile windbags.

SmartmanApps,
@SmartmanApps@programming.dev avatar

That two numbers applied to division don’t form a term?

Now you’re getting it! Correct, they don’t. They form an expression. Terms are separated by operators, and joined by grouping symbols. Expressions are made up of terms and operators (since, you know, operators separate terms). I told you way back in the beginning that 1÷2 is 2 terms, and ½ is 1 term. Getting back to the original question, 2(2+2) is 1 term and 2x(2+2) is 2 terms.

you find yourself an authority that you trust

Which time that I mentioned textbooks, historical Maths documents, and proofs did you miss?

university professor

University professors don’t teach order of operations - high school teachers do. That’s like saying “Ask the English teacher about Maths”.

If you want to continue this

Why would I want to when you ignore Maths textbooks and proofs? See my first comment in this post that you’ve finally got the difference now. See ya.

barsoap,

They form an expression. Terms are separated by operators, and joined by grouping symbols. Expressions are made up of terms and operators (since, you know, operators separate terms).

Terms, expressions, symbols, all those are terms about syntax. Not semantics. Do you start to notice something?

Why would I want to when you ignore Maths textbooks and proofs?

To learn. I challenge you again to explain the difference between syntax and semantics. Last chance.

SmartmanApps,
@SmartmanApps@programming.dev avatar

If frac and div are different functions, then multiplication would have two different inverses. How could that be?

The opposite of div is to multiply. The opposite of frac is to invert the fraction.

SmartmanApps,
@SmartmanApps@programming.dev avatar

denotes it with “/” likely to make sure you treat it as a fraction

It’s not the slash which makes it a fraction - in fact that is interpreted as division - but the fact that there is no space between the 2 and the square root - that makes it a single term (therefore we are dividing by the whole term). Terms are separated by operators (2 and the square root NOT separated by anything) and joined by grouping symbols (brackets, fraction bars).

SmartmanApps,
@SmartmanApps@programming.dev avatar

used juxtaposition for multiplication bound more tightly than division

It’s called Terms - Terms are separated by operators and joined by grouping symbols. i.e. ab=(axb).

SmartmanApps,
@SmartmanApps@programming.dev avatar

The real answer is that anyone who deals with math a lot would never write it this way

Yes, they would - it’s the standard way to write a factorised term.

but use fractions instead

Fractions and division aren’t the same thing.

itslilith,
@itslilith@lemmy.blahaj.zone avatar

Fractions and division aren’t the same thing.

Are you for real? A fraction is a shorthand for division with stronger (and therefore less ambiguous) order of operations

SmartmanApps,
@SmartmanApps@programming.dev avatar

Are you for real?

Yes, I’m a Maths teacher.

A fraction is a shorthand for division with stronger (and therefore less ambiguous) order of operations

I added emphasis to where you nearly had it.

½ is a single term. 1÷2 is 2 terms. Terms are separated by operators (division in this case) and joined by grouping symbols (fraction bars, brackets).

1÷½=2

1÷1÷2=½ (must be done left to right)

Thus 1÷2 and ½ aren’t the same thing (they are equal in simple cases, but not the same thing), but ½ and (1÷2) are the same thing.

Gordon,

So 1/2x is universally interpreted as 1/(2x), and not (1/2)x, which would be x/2.

Sorry but both my phone calculator and TI-84 calculate 1/2X to be the same thing as X/2. It’s simply evaluating the equation left to right since multiplication and division have equal priorities.

X = 5

Y = 1/2X => (1/2) * X => X/2

Y = 2.5

If you want to see Y = 0.1 you must explicitly add parentheses around the 2X.

Before this thread I have never heard of implicit operations having higher priority than explicit operations, which honestly sounds like 100% bogus anyway.

You are saying that an implied operation has higher priority than one which I am defining as part of the equation with an operator? Bogus. I don’t buy it. Seriously when was this decided?

I am no mathematics expert, but I have taken up to calc 2 and differential equations and never heard this “rule” before.

Incandemon,

I can say that this is a common thing in engineering. Pretty much everyone I know would treat 1/2x as 1/(2x).

Which does make it a pain when punched into calculators to remember the way we write it is not necessarily the right way to enter it. So when put into matlab or calculators or what have you the number of brackets can become ridiculous.

mcteazy,

I’m an engineer. Writing by hand I would always use a fraction. If I had to write this in an email or something (quickly and informally) either the context would have to be there for someone to know which one I meant or I would use brackets. I certainly wouldn’t just wrote 1/2x and expect you to know which one I meant with no additional context or brackets

SmartmanApps,
@SmartmanApps@programming.dev avatar

1/2x and expect you to know which one I meant with no additional context or brackets

By the definition of Terms, ab=(axb), so you most certainly can write that (and Maths textbooks do write that).

SmartmanApps,
@SmartmanApps@programming.dev avatar

Sorry but both my phone calculator and TI-84 calculate 1/2X

…and they’re both wrong, because they are disobeying the order of operations rules. Almost all e-calculators are wrong, whereas almost all physical calculators do it correctly (the notable exception being Texas Instruments).

You are saying that an implied operation has higher priority than one which I am defining as part of the equation with an operator? Bogus. I don’t buy it. Seriously when was this decided?

The rules of Terms and The Distributive Law, somewhere between 100-400 years ago, as per Maths textbooks of any age. Operators separate terms.

I am no mathematics expert… never heard this “rule” before.

I’m a High School Maths teacher/tutor, and have taught it many times.

SmartmanApps,
@SmartmanApps@programming.dev avatar

It’s not a law of maths in the way that 1+1=2 is a law

Yes it is, literally! The Distributive Law, and Terms. Also 1+1=2 isn’t a Law, but a definition.

So 1/2x is universally interpreted as 1/(2x)

Correct, Terms - ab=(axb).

people doing academic research in maths, not primary school teachers

Don’t ask either - this is actually taught in Year 7.

if they realise it’s over a question like this they’ll probably end up saying “it’s deliberately ambiguous in an attempt to start arguments”

The university people, who’ve forgotten the rules of Maths, certainly say that, but I doubt Primary School teachers would say that - they teach the first stage of order of operations, without coefficients, then high school teachers teach how to do brackets with coefficients (The Distributive Law).

And009,

BDMAS bracket - divide - multiply - add - subtract

Tlaloc_Temporal,

BEDMAS: Bracket - Exponent - Divide - Multiply - Add - Subtract

PEMDAS: Parenthesis - Exponent - Multiply - Divide - Add - Subtract

Firstly, don’t forget exponents come before multiply/divide. More importantly, neither defines wether implied multiplication is a multiply/divide operation or a bracketed operation.

And009,

Exponents should be the first thing right? Or are we talking the brackets in exponents…

Tlaloc_Temporal,

Exponents are second, parentheses/brackets are always first. What order you do your exponents in is another ambiguity though.

SmartmanApps,
@SmartmanApps@programming.dev avatar

What order you do your exponents in is another ambiguity though

No it isn’t - top down.

Tlaloc_Temporal,

2^3^4 is ambiguous. 2^(3^4) is standard practice, but some calculators aren’t that smart and will do (2^3)^4.

It’s ambiguous because it works both ways, not because we don’t have a standard. Confusion is possible.

SmartmanApps,
@SmartmanApps@programming.dev avatar

The only confusion I can see is if you intended for the 4 to be an exponent of the 3 and didn’t know how to do that inline, or if you did actually intend for the 4 to be a separate numeral in the same term? And I’m confused because you haven’t used inline notation in a place that doesn’t support exponents of exponents without using inline notation (or a screenshot of it).

As written, which inline would be written as (2^3)4, then it’s 32. If you intended for the 4 to be an exponent, which would be written inline as 2^3^4, then it’s 2^81 (which is equal to whatever that is equal to - my calculator batteries are nearly dead).

we don’t have a standard

We do have a standard, and I told you what it was. The only confusion here is whether you didn’t know how to write that inline or not.

Tlaloc_Temporal,

It’s ambiguous because it works both ways, not because we don’t have a standard.

Try reading the whole sentence. There is a standard, I’m not claiming there isn’t. Confusion exists because operating against the standard doesn’t immediately break everything like ignoring brackets would.

Just to make sure we’re on the same page (because different clients render text differently, more ambiguous standards…), what does this text say?

2^3^4

It should say 2^3^4; “Two to the power of three to the power of four”. The proper answer is 2⁸¹, but many math interpreters (including Excel, MATLAB, and many students) will instead compute 8⁴, which is quite different.

We have a standard because it’s ambiguous. If there was only one way to do it, we’d just do that, no standard needed. You’d need to go pretty deep into kettle math or group theory to find atypical addition for example.

SmartmanApps,
@SmartmanApps@programming.dev avatar

There is a standard, I’m not claiming there isn’t

Ah ok. Sorry, got caught out by a double negative in your sentence.

Confusion exists because operating against the standard doesn’t immediately break everything like ignoring brackets would

Ah but that’s exactly the original issue in this thread - the e-calc is ignoring the rules pertaining to brackets. i.e. The Distributive Law.

https://programming.dev/pictrs/image/90bc8d4e-665e-4068-86b8-640e47078ddf.png

Ah ok. Well that was my only confusion was what you had actually intended to write, not how to interpret it (depending on what you had intended). Yes should be interpreted 2^81.

including Excel

Yeah, but Excel won’t let you put in a factorised term either. It’s just severely broken because the people who wrote it didn’t bother checking the rules of Maths first. Programmers not knowing the rules of Maths doesn’t mean Maths is ambiguous (it certainly creates a lot of confusion though!).

We have a standard because it’s ambiguous. If there was only one way to do it, we’d just do that,

Disagree. There is one way to do it - follow the rules of Maths. That’s why they exist. The order of operations rules are at least 400 years old, and make it not ambiguous. If people aren’t obeying the rules then they’re just wrong - that doesn’t make it ambiguous. It’s like saying if e-calcs started saying 1+1=3 then that must mean 1+1 is ambiguous. It might create confusion, but it doesn’t mean the Maths is ambiguous.

SmartmanApps,
@SmartmanApps@programming.dev avatar

Brackets are ALWAYS first.

SmartmanApps,
@SmartmanApps@programming.dev avatar

neither defines wether implied multiplication is a multiply/divide operation or a bracketed operation

The Distributive Law says it’s a bracketed operation. To be precise “expand and simplify”. i.e. a(b+c)=(ab+ac).

SmartmanApps,
@SmartmanApps@programming.dev avatar

Not sure what exactly this convention is called

It’s 2 actual rules of Maths - Terms and The Distributive Law.

never ambiguous

Correct.

there is no right or wrong

Yes there is - obeying the rules is right, disobeying the rules is wrong.

SmartmanApps,
@SmartmanApps@programming.dev avatar

Not sure what exactly this convention is called

It’s The Distributive Law

It is a convention thing, there is no right or wrong

No, it’s an actual rule, and 1 is the only correct answer here - if you got 16 then you didn’t obey the rule.

Rentlar,

I treat • and × differently, • I treat like the left side and × I treat like the right side calculation.

firewyre,

wtf

SmartmanApps,
@SmartmanApps@programming.dev avatar

I treat • and × differently, • I treat like the left side and × I treat like the right side calculation

They literally mean the same thing - just one is used in some countries and the other is used in other countries.

Rentlar,

Yes they both are multiply, but…

Calculate 8 ÷ 2a where a = 4. Then,

Calculate 8 ÷ 2 × a where a = 4.

See how in the first form a is implied to be part of the fraction where in the second it isn’t?

A dot • could be between 2 and a and it would still follow the first example. In vector multiplication, dot and cross products produce different results.

SmartmanApps,
@SmartmanApps@programming.dev avatar

Calculate 8 ÷ 2a where a = 4. Then,

Calculate 8 ÷ 2 × a where a = 4.

See how in the first form a is implied to be part of the fraction where in the second it isn’t?

It’s not implied, it’s explicitly because of the definition of Terms.

P.S. now substitute a=2 and you’ll see why it matters.

A dot • could be between 2 and a and it would still follow the first example

No, it wouldn’t. Inserting a dot (multiplication) makes it the same as your second example. i.e. 3 Terms, not 2 Terms.

In vector multiplication, dot and cross products produce different results.

This isn’t vector multiplication. This is Year 7 algebra.

Rentlar, (edited )

We agree that the two situations are separate. You can call them terms or whatever, since we’re multiplying and dividing the idea of terms seems irrelevant here to me but I suppose for pedantry’s sake we can entertain it. It doesn’t matter what a is, but the first result is 4 ÷ a the second result is 4a.

I use the dot as an expression of the same term rather than separate. This is matter of my notational convention, due to dot multiplication providing a single scalar result where cross multiplication resulting in a vector product. You can write 10 paragraphs telling me that my convention is wrong and why but I don’t really care that much, to save you some time.

ETA: When I handwrite out non-Vector equations, you will rarely see me write a • or a × sign inside of a fraction anyway, it’s placement is generally clear enough for me, and I will put brackets where it’s confusing.

SmartmanApps,
@SmartmanApps@programming.dev avatar

We agree that the two situations are separate

Ok, that’s a start.

but the first result is 4 ÷ a the second result is 4a

Exactly! So when a=2 then 4÷a=2, and 4a=8, which isn’t the same thing. Welcome to why 2a and 2xa (and therefore also 2.a) aren’t the same thing.

I use the dot as an expression of the same term rather than separate.

But that is incorrect. A dot is used for multiplication. i.e. it separates terms. If you use a . for 2.a, then you are writing the same thing as 2xa, not the same thing as 2a.

This is matter of my notational convention

Well, that’s fine enough if you keep it to yourself, but don’t use it in anything anyone else is going to read, or you’re going to run into the issues I just pointed out

complacent_jerboa,

this is why I never use ÷ (or more realistically “/”) without explicit brackets denoting order of operations.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • 196@lemmy.blahaj.zone
  • fightinggames
  • All magazines