Forgot Password
Pentax Camera Forums Home
 

Reply
Show Printable Version 3 Likes Search this Thread
04-07-2023, 07:30 PM   #1
Closed Account
Michael Piziak's Avatar

Join Date: Dec 2013
Location: West Virginia
Posts: 2,815
My computers scientific calculator seems to be wrong - ???

My friend who is a genius at math says the answer to this is 1. Others say it is 36. Even my computers supposed scientific calculator says it's 36.

What gives?


Oh, here's the problem:

48/8(14-8)

Attached Images
 
04-07-2023, 08:20 PM   #2
Site Supporter
Site Supporter
luftfluss's Avatar

Join Date: Jun 2011
Location: NJ
Photos: Gallery | Albums
Posts: 11,627
1....
04-07-2023, 08:45 PM - 1 Like   #3
Moderator
Not a Number's Avatar

Join Date: Mar 2012
Location: Venice, CA
Posts: 10,526
It's because the calculator only evaluates operations going left to right. Thus it doesn't evaluate the parentheses until it gets to them.

The correct entry would be:
48 ÷ ( 8 × ( 14 - 8 ) )

Order of precedence for mathematical operations (without parentheses)
Multiplication
Division
Addition
Subtraction
(Mnemonic I learned was "My Dear Aunt Sally")
04-07-2023, 08:57 PM   #4
Closed Account
Michael Piziak's Avatar

Join Date: Dec 2013
Location: West Virginia
Posts: 2,815
Original Poster
QuoteOriginally posted by Not a Number Quote
It's because the calculator only evaluates operations going left to right. Thus it doesn't evaluate the parentheses until it gets to them.

The correct entry would be:
48 ÷ ( 8 × ( 14 - 8 ) )

Order of precedence for mathematical operations (without parentheses)
Multiplication
Division
Addition
Subtraction
(Mnemonic I learned was "My Dear Aunt Sally")

That's an easy way to learn it ! My dear Autn Sally !

---------- Post added 04-07-23 at 09:19 PM ----------

I've had verification on 2 other sites that I posted this to that the answer is indeed 1.
I also went to a few online scientific calculators that also came up with 36, not all, but enough.

04-08-2023, 01:24 AM   #5
Pentaxian
35mmfilmfan's Avatar

Join Date: Oct 2016
Location: Norfolk, UK
Posts: 4,339
QuoteOriginally posted by Not a Number Quote
It's because the calculator only evaluates operations going left to right. Thus it doesn't evaluate the parentheses until it gets to them.

The correct entry would be:
48 ÷ ( 8 × ( 14 - 8 ) )

Order of precedence for mathematical operations (without parentheses)
Multiplication
Division
Addition
Subtraction
(Mnemonic I learned was "My Dear Aunt Sally")
The one we had at school (ah, memories !) was 'BODMAS'.

This stood for 'Brackets' (self-explanatory); 'Of' (as in 1/4 of 36 - not often used), then as stated. That was about as far as I got - Calculus could just as well have been Martian, for all I could understand !
04-08-2023, 03:03 AM - 1 Like   #6
Moderator
Not a Number's Avatar

Join Date: Mar 2012
Location: Venice, CA
Posts: 10,526
Being nasty kids/teenagers we came up with our own mnemonic: "My Dog Ate (ahem) Something"
04-08-2023, 05:03 AM - 1 Like   #7
Loyal Site Supporter
Loyal Site Supporter




Join Date: Feb 2018
Posts: 1,903
My teenager says its "BEDMAS" = Brackets, Exponents, Division, Multiplication, Addition, Subtraction.
What I see is: Messy Bed because she never makes it in the morning.
I'd find another calculator app.

04-08-2023, 05:37 AM   #8
Pentaxian
Lord Lucan's Avatar

Join Date: Sep 2017
Location: South Wales
Photos: Gallery
Posts: 2,978
FWIW, I get 0.05955... when I put in "48/8(14-8)" on my PC's calculator app (kcalc). The inconsistency is due to the user(s) not following the correct input syntax when keying in, so different calculators or apps are interpretting it differently. There should be a multiplying sign in front of the opening bracket, at least I think that is what the formula is meant to be.
04-08-2023, 11:20 AM   #9
Closed Account
Michael Piziak's Avatar

Join Date: Dec 2013
Location: West Virginia
Posts: 2,815
Original Poster
My friend says this about the equation. Then I'm gonna let the thread die:

The full analysis of this situation is now clear: it depends on whether you think like a programmer, or a mathematician. C, and, through its influence over the decades, apparently many other languages as well -- clearly including Perl,as shown here -- is documented and standardized as evaluating expressions left to right, except for performing parenthetical expression evaluation first and bottom-up (or deepest-first). This is just a different rule from what a mathematician or school teacher would consider the proper rules of arithmetic, namely PEMDAS. Clearly, what's happening here is that all the participants in this discussion are programmers, who have grown up WTF commuters, physicians grown up with organic, are accustomed to the C rules and thus really do consider 36 "the right answer" because that's what the official programming language rules give you. However, I submit that, while that is certainly the expected result of the calculation in a organizational language, it is, nonetheless, not the "right answer" that someone who knows how to correctly perform arithmetic should get when doing the calculation "with pencil and paper." Outside of program source code, the rules of PEMDAS are in force and the real-world right answer is 1.The unfortunate fact, though, is that several generations of programmers have now grown up internalizing C-style left-to-right evacuation rules, to the point where they now consistently fail to recognize that exposing that method to the outside would, such as on the display and workings of a calculator app, is a semantic error that muddies the waters and perpetuates and spreads this dangerous misperception.
04-08-2023, 11:35 AM   #10
Site Supporter
Site Supporter
Just1MoreDave's Avatar

Join Date: Feb 2007
Location: Aurora, CO
Photos: Gallery | Albums
Posts: 6,340
What does the AI think? And can we get two AIs to battle to the death over the answer? That would be useful.
04-08-2023, 12:02 PM   #11
Closed Account
Michael Piziak's Avatar

Join Date: Dec 2013
Location: West Virginia
Posts: 2,815
Original Poster
I'll post this from what my math friend typed, then I'll let others on here argue it out or let the thread die. I posted this in 2 Linux forums and they are already batteling this out, LOL:

I haven't heard anything saying that mathematicians work left to right now, in defiance of PEMDAS. Certainly you work left to right if there's no need for PEMDAS -- no parentheses, no mixing of addition and subtraction, etc. But mathematics, and the rules for evacuating expressions, are one thing that absolutely ought not to change or "evolve over time": the rules need to be rock solid or all of math falls apart.

---------- Post added 04-08-23 at 12:52 PM ----------

I'll add this also:

It depends what source you use. Here multiplication "is of higher precedence than division."

Mixed division and multiplication

In some of the academic literature, multiplication denoted by juxtaposition (also known as implied multiplication) is interpreted as having higher precedence than division, so that 1 ÷ 2n equals 1 ÷ (2n), not (1 ÷ 2)n.[1] For example, the manuscript submission instructions for the Physical Review journals state that multiplication is of higher precedence than division,[20] and this is also the convention observed in prominent physics textbooks such as the Course of Theoretical Physics by Landau and Lifshitz and the Feynman Lectures on Physics.[d]

Source:https://en.wikipedia.org/wiki/Order_of_operations


Using this logic, then the answer would be 1 as multiplication is done first


Regardless, things need to be standardized before a rocket explodes on lift off
04-09-2023, 05:33 PM   #12
Moderator
Not a Number's Avatar

Join Date: Mar 2012
Location: Venice, CA
Posts: 10,526
I was taught multiplication takes precedence over division. Since multiplication is repeated iterations of addition it makes sense since addition takes preference over subtraction. What do I mean repeated iterations?

Multiplication
What is 4 times 3 e.g.:4 × 3 :? 4 + 4 + 4 = 12

Division
How many times does 3 go into 12 e.g.:12 ÷ 3:? 12 - 3 - 3 - 3 - 3 = 0 answer: 4 times
04-14-2023, 06:41 PM   #13
Closed Account
Michael Piziak's Avatar

Join Date: Dec 2013
Location: West Virginia
Posts: 2,815
Original Poster
I have had the following people answer 1 as being the correct answer.

A retired software developer.
A retired professor of mathematics, retired from Baylor University.
My sister, using her sons 4th grade math books as the basis for the rule(s).

One person answered 36 as being the answer, whom is my cousin who is an engineer.

But it seems to me like more people, and perhaps calculators answer 36 (even though the first 2 online Sci. calculators I googled gave 1 as the answer).

Then there are the people online that say the equation/problem is an "illegal" or "ambiguous" equation/problem.

Regardless, am I alone in thinking this could cause a problem, a big problem, in structures being built, rockets being launched, etc.... (?) Or do most of us believe such designers are using plenty of parenthesis to erase all doubt (?)

Addendum: Examples of such problems have occurred, see the post at: https://www.linuxquestions.org/quest...871/page6.html
04-15-2023, 10:48 PM   #14
Moderator
Not a Number's Avatar

Join Date: Mar 2012
Location: Venice, CA
Posts: 10,526
As a programmer I always use parentheses or break the operations down to separate lines of code. Coding can be further complicated with Boolean operations.
Reply

Bookmarks
  • Submit Thread to Facebook Facebook
  • Submit Thread to Twitter Twitter
  • Submit Thread to Digg Digg
Tags - Make this thread easier to find by adding keywords to it!
calculator, division, math, multiplication, operations, physics, post, rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nature Wrong Lens, Wrong time, Wrong…………. lukulele Post Your Photos! 4 05-08-2014 03:11 AM
Macro There seems to be so something wrong with this bumble-bee Aon Post Your Photos! 4 02-20-2014 05:29 PM
X-5 not recognised by my computers vic_in_berlin Troubleshooting and Beginner Help 10 04-08-2013 08:14 AM
Newbie seems to have wrong battery pack for SPII MD snapwell Film SLRs and Compact Film Cameras 7 08-15-2010 09:52 AM



All times are GMT -7. The time now is 09:01 PM. | See also: NikonForums.com, CanonForums.com part of our network of photo forums!
  • Red (Default)
  • Green
  • Gray
  • Dark
  • Dark Yellow
  • Dark Blue
  • Old Red
  • Old Green
  • Old Gray
  • Dial-Up Style
Hello! It's great to see you back on the forum! Have you considered joining the community?
register
Creating a FREE ACCOUNT takes under a minute, removes ads, and lets you post! [Dismiss]
Top