multiplication by juxtaposition and order of operations

Prometheus

Everything is mutable; nothing is sacred
Reaction score
589
You do any math within brackets/parenthesis first. While within these brackets, you do any parenthesis in them first, then exponents, then (left to right) any multiplication or division(M and D have the same math priority!), and then (left to right) any addition or subtraction(addition and subtraction have the same math priority!). Do the same outside the brackets.
 

Samael88

Evil always finds a way
Reaction score
181
You do any math within brackets/parenthesis first. While within these brackets, you do any parenthesis in them first, then exponents, then (left to right) any multiplication or division(M and D have the same math priority!), and then (left to right) any addition or subtraction(addition and subtraction have the same math priority!). Do the same outside the brackets.

What part of "divisions are done from top to bottom in the old ways" don't you understand?
You are talking about from left to right as if it where the way it has always been.
I learned to calculate without fancy computers doing the math for us and that was what we learned back in the days.
And I reiterate if I where to calculate in your way in my power formulas I would get arrested for murder because of my profession.
 

Flare

Stops copies me!
Reaction score
662
There seems to be some mis-teaching which said multiplication took priority over division, but in actuality they have the same priority.
Er... what does the priority of multiplication relative to the priority of division have to do with this? This post summarizes the point of the thread nicely.

Please explain those for us who does not have English as our first language.

And no, it is not mis-teaching, you have learned to calculate in a "modern" way, we who see it as the answer being one calculates with the old ways only.
If I am wrong then every formula I have learned in my occupation is wrong and many people are going to die because of it. When it comes to calculations involving power then a nine instead of a one is a big difference.
Would your equations be written in an ambiguous fashion though?
Also, some examples of these formulae you work with would be nice (just to quell my curiosity :p)

Ah, then it is incorrect since Exponentials are prioritized before brackets.
Source to back up your information? Every textbook and teacher/lecturer I've had prioritizes brackets before exponentials and I don't think they would all be wrong...
 

Samael88

Evil always finds a way
Reaction score
181
Bah, I give up this damn discussion, I am to tired for these kind of things right now.

Would your equations be written in an ambiguous fashion though?
Also, some examples of these formulae you work with would be nice (just to quell my curiosity :p)
I will send them to you in a PM tomorrow then.
 

Prometheus

Everything is mutable; nothing is sacred
Reaction score
589
I think you're getting confused with fractions. 2 divided by 3 is the same as 2 over 3 or 2/3. When you have 2/3(4), the brackets simply mean multiplication. You'd do 2 divided by 3, and then that times 4. You only prioritize the math WITHIN the parenthesis, not its standing in the overall scheme of things.
 

Samael88

Evil always finds a way
Reaction score
181
I think you're getting confused with fractions. 2 divided by 3 is the same as 2 over 3 or 2/3. When you have 2/3(4), the brackets simply mean multiplication. You'd do 2 divided by 3, and then that times 4. You only prioritize the math WITHIN the parenthesis, not its standing in the overall scheme of things.

I think that you are thinking about this calculation as an equation, when you have all variables given you don't use exactly the same rules as you do when you have some none given variables.
Once again I going to tell you, if I where to calculate the way you want then I would kill people, and I am not joking.

How would you calculate this one then?
Code:
            133-100
75-(75-58)*--------- =
            150-100

Calculate that one correctly using your rules and explain to me why you are correct in the way you calculate it and I will rest my case.
 

Flare

Stops copies me!
Reaction score
662
I think that you are thinking about this calculation as an equation, when you have all variables given you don't use exactly the same rules as you do when you have some none given variables.
Where do you get your information from? I haven't seen anything to suggest that the order of operations changes under certain circumstances

How would you calculate this one then?
Since I'm not really bothered with trying to align numbers over a makeshift fraction bar...

75-(75-58)*(133-100)/(150-100)
75-17*33/50
75-561/50
75-11.22
63.78

How would you have done it/what answer do you get? (FWIW, Wolfram and my calculator are both giving the same result)
 

Prometheus

Everything is mutable; nothing is sacred
Reaction score
589
Code:
            133-100
75-(75-58)*---------
            150-100
This is the same as 75 - (75-58)*(133-100)/(150-100)
75 - 17 * 33/50
75 - 17 * .66
75 - 11.22
63.78
 

Bronxernijn

You can change this now in User CP.
Reaction score
43
I was taught that 6 divided by 2 is not the same as 6 over 2. It is in outcome (3), but not in a formula.

6 over 2 is one number, whereas 6 divided by 2 are two. So the problem with the OP's little quiz is that 6 divided by 2 can by some people be taken as 6 over 2. In that case, the outcome of 9 is correct. If it is read as it is said, the correct outcome is 1. Multiply has priority over divide.

Only if you think 6 divided by 2 may be interpreted as 6 over 2, the answer of 9 is correct. As I have stated before, 6 divided by 2 is NOT the same as 6 over 2. By thinking so you are essentially giving the dividing operation priority over everything. Therefore, 1 can be the only correct answer.


To react to an earlier post: 3 over 4 times 2 is 1.5. Because 3 over 4 has to be interpreted as a single real number, there is no divide operation anywhere here.


Another reaction:
Code:
            133-100
75-(75-58)*--------- =
            150-100

133-100
--------- is a single number and equals ((133-100)/(150-100)).
150-100
 

Flare

Stops copies me!
Reaction score
662
Multiply has priority over divide.
Where do people get this idea? Multiplication and division are of equal priority - if they are both found in the expression, then they are performed in the order they are found as you read the expression left to right

http://www.mathgoodies.com/lessons/vol7/order_operations.html said:
Rule 1: First perform any calculations inside parentheses.
Rule 2: Next perform all multiplications and divisions, working from left to right.
Rule 3: Lastly, perform all additions and subtractions, working from left to right.

http://en.wikipedia.org/wiki/Order_of_operations said:
The standard order of operations, or precedence, is expressed here:
terms inside parentheses or brackets
exponents and roots
multiplication and division As they appear left to right
addition and subtraction As they appear left to right

There's also...
one
two

Sadly, I can't find anything which states that multiplication would be prioritised over a division operation that precedes it (assuming no brackets involved, of course)
 

Romek

Super Moderator
Reaction score
963
I don't think anybody here disagrees with the fact that division and multiplication are of equal priority and are performed as they appear from left to right.
The debate is more about whether 2y takes priority over 2 * y.
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
2y and 2*y are the exact same thing.

I think you ought to go back and take a look at Romek's earlier post, he pointed out something very interesting that actually has some evidence for it.

I still stand by my post after it, that WolframAlpha probably isn't a good source for the proper usage of the order of operations. It does try and interpret the input, instead of merely calculating it, which may or may not have some effect on the answer.
 

Prometheus

Everything is mutable; nothing is sacred
Reaction score
589
The issue is that calculators will assume 2(1+2) = (2+4) as it will distribute, if you don't put the *.
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
The issue is that calculators will assume 2(1+2) = (2+4) as it will distribute, if you don't put the *.

I think the issue here is that only some calculators will group them into (2(1+2)) (or at least provide the same results for this case) for use in the equation. While 2(1+2) and (2+4) are equivalent, if you wish to use this value in an equation, you absolutely must put parenthesis around them for it to make sense.

I also want to point out that in my last post, I was specifically referring to the use of 2y vs 2*y in the original equation (2y/2y), and that I was not denying that 2y = 2*y.
 

Bronxernijn

You can change this now in User CP.
Reaction score
43
I stand corrected, and my post on multiplication before dividing is complete bullshit.

The issue with 2y or 2*y still stands on me. I had trouble explaining some stuff to a kid at work earlier today.
 

SerraAvenger

Cuz I can
Reaction score
234
I would personally support ab > a*b (by order of precedence) for the simple reason that I would rather introduce syntactic sugar for (a*b) than for a*b. It's just slightly more elegant.
Defining ab as a*b would just mean that we save a single character, which is usually a dot.
In most of these cases, a*b is (a*b) anyway (for reasons of associativity) and hence we will not loose much if we write ab. In those cases where there is a difference, it is still more convenient to write ab rather than (ab), especially for stuff like (a*b*c*d)/t = abcd/t.
I would also like to add that a similar notation for /+and- is missing but would make some things much more elegant to write.

Since, however, there seems to be no global convention I suggest that if you introduce such notation in your code, clearly document the precedence. Similarly, if you use such notation in your code, and you're not sure, add the parentheses.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    So what it really is me trying to implement some kind of better site navigation not change the whole theme of the site
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top