Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Microsoft calculator - new math rules?

Microsoft calculator - new math rules?

Scheduled Pinned Locked Moved The Lounge
comhelptutorialquestion
25 Posts 15 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    miki bgd
    wrote on last edited by
    #1

    I was using win10 calculator and something didn't add up to. In History of calculations there is: 4 * 3 + 4 * 3 = 48 :confused::confused: Immediately on google i have found a thread answers.microsoft.com with explanation on difference between standard and scientific mode. I can agree with how standard mode works, but it is not excuse to display it wrong in History! And then answer from some guy that a lot of people don't know algebraic order of operations... This is so lame. Because of people who don't know even below basic rules of math, all others should be poisoned (yes, this is how politics work, but this is science)? This is really insulting for anyone who knows how to count up to more then 10.

    Z OriginalGriffO K K L 8 Replies Last reply
    0
    • M miki bgd

      I was using win10 calculator and something didn't add up to. In History of calculations there is: 4 * 3 + 4 * 3 = 48 :confused::confused: Immediately on google i have found a thread answers.microsoft.com with explanation on difference between standard and scientific mode. I can agree with how standard mode works, but it is not excuse to display it wrong in History! And then answer from some guy that a lot of people don't know algebraic order of operations... This is so lame. Because of people who don't know even below basic rules of math, all others should be poisoned (yes, this is how politics work, but this is science)? This is really insulting for anyone who knows how to count up to more then 10.

      Z Offline
      Z Offline
      ZurdoDev
      wrote on last edited by
      #2

      Since you can't enter it all in one step, the history IS accurate. Just saying. :sigh:

      Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

      C 1 Reply Last reply
      0
      • M miki bgd

        I was using win10 calculator and something didn't add up to. In History of calculations there is: 4 * 3 + 4 * 3 = 48 :confused::confused: Immediately on google i have found a thread answers.microsoft.com with explanation on difference between standard and scientific mode. I can agree with how standard mode works, but it is not excuse to display it wrong in History! And then answer from some guy that a lot of people don't know algebraic order of operations... This is so lame. Because of people who don't know even below basic rules of math, all others should be poisoned (yes, this is how politics work, but this is science)? This is really insulting for anyone who knows how to count up to more then 10.

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #3

        No, it's the way a "standard" calculator works. 1 + 3 * (evaluate so far gives 4) * 3 = 12. "Proper" calculators use operator precedence, but unless they come with parentheses the statndard ones don't. If you try it on Android's Calculator app, it evaluates as it goes:

        1 + 3
        4

        but then uses precedence:

        1 + 3 x
        4

        1 + 3 x 3
        10

        (But that has parentheses!)

        Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        D 1 Reply Last reply
        0
        • Z ZurdoDev

          Since you can't enter it all in one step, the history IS accurate. Just saying. :sigh:

          Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

          C Offline
          C Offline
          CodeWraith
          wrote on last edited by
          #4

          That's no reason to display nonsense. How about RPN[^]? The problem is that RPN is like pointers: Absolutely simple and many people just don't ever get it. What's so hard about 4 3 * 4 + 3*? Edit: fixed the link

          I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

          Z J 2 Replies Last reply
          0
          • C CodeWraith

            That's no reason to display nonsense. How about RPN[^]? The problem is that RPN is like pointers: Absolutely simple and many people just don't ever get it. What's so hard about 4 3 * 4 + 3*? Edit: fixed the link

            I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

            Z Offline
            Z Offline
            ZurdoDev
            wrote on last edited by
            #5

            CodeWraith wrote:

            That's no reason to display nonsense.

            It's not nonsense. It literally is the history. Just because the history doesn't make sense when done all at once, does not mean it IS NOT the history.

            Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

            C M 2 Replies Last reply
            0
            • OriginalGriffO OriginalGriff

              No, it's the way a "standard" calculator works. 1 + 3 * (evaluate so far gives 4) * 3 = 12. "Proper" calculators use operator precedence, but unless they come with parentheses the statndard ones don't. If you try it on Android's Calculator app, it evaluates as it goes:

              1 + 3
              4

              but then uses precedence:

              1 + 3 x
              4

              1 + 3 x 3
              10

              (But that has parentheses!)

              Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

              D Offline
              D Offline
              DerekT P
              wrote on last edited by
              #6

              If you do precisely the same key / button sequence in scientific mode, it gives the answer 24. Given that I use calculator in both modes, but most of the time just use whatever mode it re-opens in for a quick calculation, this is a bit of a worry... Never noticed it before. The behaviour is the same in the Windows 8 calculator too. I can see why (with no parentheses available in "standard" view) but it's not exactly intuitive. Would help if the history automatically inserted parentheses where default operator sequence has been used.

              OriginalGriffO 1 Reply Last reply
              0
              • Z ZurdoDev

                CodeWraith wrote:

                That's no reason to display nonsense.

                It's not nonsense. It literally is the history. Just because the history doesn't make sense when done all at once, does not mean it IS NOT the history.

                Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

                C Offline
                C Offline
                CodeWraith
                wrote on last edited by
                #7

                Back when programmable calculaters were still a thing, it was only HP (as far as I know) who preferred to use a notation (RPN) that provided absolute clarity (as well as a history, if you need it at all). All others simply showed the keys in the order in which they were pushed, useful or not. Looking back, I don't think it mattered. Calculators were only the first generation of brain pacemakers. Look at the modern, much more powerful pacemakers and how they are used. Everything is well as long as the heads of those zombies stay nicely hollow and empty. Who cares what nonsense you display as long as the zombies are happy and keep stroking their pacemaker and fill someone's pockets?

                I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

                1 Reply Last reply
                0
                • D DerekT P

                  If you do precisely the same key / button sequence in scientific mode, it gives the answer 24. Given that I use calculator in both modes, but most of the time just use whatever mode it re-opens in for a quick calculation, this is a bit of a worry... Never noticed it before. The behaviour is the same in the Windows 8 calculator too. I can see why (with no parentheses available in "standard" view) but it's not exactly intuitive. Would help if the history automatically inserted parentheses where default operator sequence has been used.

                  OriginalGriffO Offline
                  OriginalGriffO Offline
                  OriginalGriff
                  wrote on last edited by
                  #8

                  If you think about it, it's not really a problem. Those who are used to the "Proper" way of doing things will automatically make sure it's in "Scientific" mode before they do anything (mine lives in "Programmer" mode even though I rarely use it); those who are used to an "old fashioned" cheapo desk calculator will leave it in "Standard" so the additional buttons don't confuse them ... :laugh:

                  Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                  "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                  "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                  M N 2 Replies Last reply
                  0
                  • C CodeWraith

                    That's no reason to display nonsense. How about RPN[^]? The problem is that RPN is like pointers: Absolutely simple and many people just don't ever get it. What's so hard about 4 3 * 4 + 3*? Edit: fixed the link

                    I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

                    J Offline
                    J Offline
                    jackbrownii
                    wrote on last edited by
                    #9

                    Beat me to advocacy of RPN. There was a small amount of time getting used to my first HP calculator in college. After that, I almost can't use a standard one. I grimace when forced to use a calculator with an equals button. :) PCalc on my phone allows RPN, so, I'm mostly happy after the screen died on my HP48.

                    D C 2 Replies Last reply
                    0
                    • M miki bgd

                      I was using win10 calculator and something didn't add up to. In History of calculations there is: 4 * 3 + 4 * 3 = 48 :confused::confused: Immediately on google i have found a thread answers.microsoft.com with explanation on difference between standard and scientific mode. I can agree with how standard mode works, but it is not excuse to display it wrong in History! And then answer from some guy that a lot of people don't know algebraic order of operations... This is so lame. Because of people who don't know even below basic rules of math, all others should be poisoned (yes, this is how politics work, but this is science)? This is really insulting for anyone who knows how to count up to more then 10.

                      K Offline
                      K Offline
                      kmoorevs
                      wrote on last edited by
                      #10

                      Really, I wouldn't even expect it to be smart enough to apply order of operations correctly. A spreadsheet is a better tool for complex calculations anyway. Cool, so I learned something new anyway...never knew about the parentheses available under scientific and standard. If those were available in standard mode, there would be no problem. I have to admit that my math skills aren't what they used to be...depend totally on calculators and spreadsheets for even simple calculations anymore. :sigh:

                      "Go forth into the source" - Neal Morse

                      1 Reply Last reply
                      0
                      • M miki bgd

                        I was using win10 calculator and something didn't add up to. In History of calculations there is: 4 * 3 + 4 * 3 = 48 :confused::confused: Immediately on google i have found a thread answers.microsoft.com with explanation on difference between standard and scientific mode. I can agree with how standard mode works, but it is not excuse to display it wrong in History! And then answer from some guy that a lot of people don't know algebraic order of operations... This is so lame. Because of people who don't know even below basic rules of math, all others should be poisoned (yes, this is how politics work, but this is science)? This is really insulting for anyone who knows how to count up to more then 10.

                        K Offline
                        K Offline
                        kalberts
                        wrote on last edited by
                        #11

                        In APL, all operators have equal precedence. To a certain degree, I can understand the arguments for it. For the very basic operators, it is easy to follow: Do multiplications before additions. But advanced programming languages (APL not the least) has so many operators for which there is no obvious or "natural" precendece. If you want to minimize the number of parentheses, you must have a list of operator precedence available at all times. I guess that you can trust Visual Studio graying down "unneccessary" parentheses, and remove those. But when you read such minimal-parentheses code, you need that precedence list to see what is happening. You see lots of programmers adding "unneccessary" parentheses so that their C code looks halfway like Lisp :-), "just to be sure", and in a hardcopy output you have a terrible job finding the matching parenthesis. As a general rule: If your program code to any significant degree depends on operator precedence, or multiple levels of parentheses to override the defaults, then you need to break down your expressions into simpler sub-expressions. The compiler will anyway assign a memory location to hold the value of each subexpression, so you might as well do it yourself, and give a descriptive name to it! In languages like APL there is one single rule: Left-to-right. Any parenthesis indicates a deviation from this rule: Watch out! So APL programs are never Lisp-like (well, that is one of the reasons :-)). I sort of like it. Even though I grew up with "multiplications before additions", I cannot off hand tell whether a logical XOR is done before or after a logical shift or an equality test. Which operators have higher precedence tahan preincrement but lower than postincrement? I don't know. I can't list those lower than preincrement, and can't tell just why bitwise negation goes before casting, while logical OR goes after. APL never gives you problems like this.

                        M 1 Reply Last reply
                        0
                        • M miki bgd

                          I was using win10 calculator and something didn't add up to. In History of calculations there is: 4 * 3 + 4 * 3 = 48 :confused::confused: Immediately on google i have found a thread answers.microsoft.com with explanation on difference between standard and scientific mode. I can agree with how standard mode works, but it is not excuse to display it wrong in History! And then answer from some guy that a lot of people don't know algebraic order of operations... This is so lame. Because of people who don't know even below basic rules of math, all others should be poisoned (yes, this is how politics work, but this is science)? This is really insulting for anyone who knows how to count up to more then 10.

                          L Offline
                          L Offline
                          Lost User
                          wrote on last edited by
                          #12

                          48 is correct, as per natural [germanic based] language which is expressed left to right. same way you read a sentence, in the order presented. it's 24 if it's "bodmas", but seeing as bodmas is younger than natural language it's absolutely not new math rules, in fact it's the original and oldest math rules. and btw: any accountant 1. will tell you 4 X 3 + 4 X 3 = 48, anything else and the auditors will have your skin. 2. in accounting brackets BRACES mean something completely different than others suggest, .... i.e. 4 X 3 + (4 X 3) = 0 ... 4 X 3 + (4) X (3) = 48 ... 4 X (3 + 4) X 3 = -84 so those old rules are: - still very much alive - very important to the person that provisions the money for your pay/salary.

                          Message Signature (Click to edit ->)

                          1 Reply Last reply
                          0
                          • Z ZurdoDev

                            CodeWraith wrote:

                            That's no reason to display nonsense.

                            It's not nonsense. It literally is the history. Just because the history doesn't make sense when done all at once, does not mean it IS NOT the history.

                            Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

                            M Offline
                            M Offline
                            miki bgd
                            wrote on last edited by
                            #13

                            Yes, but looking through the History you don't see steps, you see only final equations. And they are wrong. Mathematics is an exact science - you can't interpret it as you wan't.

                            Richard Andrew x64R 1 Reply Last reply
                            0
                            • OriginalGriffO OriginalGriff

                              If you think about it, it's not really a problem. Those who are used to the "Proper" way of doing things will automatically make sure it's in "Scientific" mode before they do anything (mine lives in "Programmer" mode even though I rarely use it); those who are used to an "old fashioned" cheapo desk calculator will leave it in "Standard" so the additional buttons don't confuse them ... :laugh:

                              Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                              M Offline
                              M Offline
                              miki bgd
                              wrote on last edited by
                              #14

                              You will agree with me when i say that it is possible to omit checking if it is in scientific or standard mode. And why should i, if i wan't to perform some basic calculations. Then to confirm the result i will check the history, i see correct equation and i assume result is correct. It could be, but not necessary. In win7 at least you had different forms of calculator, so you can easily see which mode you are using. In win10 if you don't pay attention to exact buttons (and why should you, if you use physical keyboard), you can't tell, since both calculators are of same size. This is very poor UX.

                              D 1 Reply Last reply
                              0
                              • J jackbrownii

                                Beat me to advocacy of RPN. There was a small amount of time getting used to my first HP calculator in college. After that, I almost can't use a standard one. I grimace when forced to use a calculator with an equals button. :) PCalc on my phone allows RPN, so, I'm mostly happy after the screen died on my HP48.

                                D Offline
                                D Offline
                                David ONeil
                                wrote on last edited by
                                #15

                                [https://play.google.com/store/apps/details?id=o2s.emul.hp41cx\](https://play.google.com/store/apps/details?id=o2s.emul.hp41cx) - Worth the $10, but there is a free version if you search. There are also other HPs emulated with more searching.

                                The forgotten roots of science | C++ Programming | DWinLib

                                K 1 Reply Last reply
                                0
                                • J jackbrownii

                                  Beat me to advocacy of RPN. There was a small amount of time getting used to my first HP calculator in college. After that, I almost can't use a standard one. I grimace when forced to use a calculator with an equals button. :) PCalc on my phone allows RPN, so, I'm mostly happy after the screen died on my HP48.

                                  C Offline
                                  C Offline
                                  CodeWraith
                                  wrote on last edited by
                                  #16

                                  I already knew RPN from FORTH before I ever got a programmable calculator. FORTH's most important data structure is the stack and RPN just shows in which order parameters are pushed onto the stack and processed by operators. Just one step away from assembly, but a very neat language.

                                  I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

                                  1 Reply Last reply
                                  0
                                  • D David ONeil

                                    [https://play.google.com/store/apps/details?id=o2s.emul.hp41cx\](https://play.google.com/store/apps/details?id=o2s.emul.hp41cx) - Worth the $10, but there is a free version if you search. There are also other HPs emulated with more searching.

                                    The forgotten roots of science | C++ Programming | DWinLib

                                    K Offline
                                    K Offline
                                    k5054
                                    wrote on last edited by
                                    #17

                                    PCalc seems to be an iphone app, so maybe the HP48GX emulator might be a better choice: [‎i48 on the App Store](https://apps.apple.com/us/app/i48/id329454950)

                                    1 Reply Last reply
                                    0
                                    • K kalberts

                                      In APL, all operators have equal precedence. To a certain degree, I can understand the arguments for it. For the very basic operators, it is easy to follow: Do multiplications before additions. But advanced programming languages (APL not the least) has so many operators for which there is no obvious or "natural" precendece. If you want to minimize the number of parentheses, you must have a list of operator precedence available at all times. I guess that you can trust Visual Studio graying down "unneccessary" parentheses, and remove those. But when you read such minimal-parentheses code, you need that precedence list to see what is happening. You see lots of programmers adding "unneccessary" parentheses so that their C code looks halfway like Lisp :-), "just to be sure", and in a hardcopy output you have a terrible job finding the matching parenthesis. As a general rule: If your program code to any significant degree depends on operator precedence, or multiple levels of parentheses to override the defaults, then you need to break down your expressions into simpler sub-expressions. The compiler will anyway assign a memory location to hold the value of each subexpression, so you might as well do it yourself, and give a descriptive name to it! In languages like APL there is one single rule: Left-to-right. Any parenthesis indicates a deviation from this rule: Watch out! So APL programs are never Lisp-like (well, that is one of the reasons :-)). I sort of like it. Even though I grew up with "multiplications before additions", I cannot off hand tell whether a logical XOR is done before or after a logical shift or an equality test. Which operators have higher precedence tahan preincrement but lower than postincrement? I don't know. I can't list those lower than preincrement, and can't tell just why bitwise negation goes before casting, while logical OR goes after. APL never gives you problems like this.

                                      M Offline
                                      M Offline
                                      miki bgd
                                      wrote on last edited by
                                      #18

                                      I can see your point. But, idea behind calculator is: in Standard mode any new operation it calculates as x += 1 or x *= 2, so new operation is applied to result of all previous operations. Which, personally, i don't like, because this can be achieved by pressing "=" button after every operation, but i can understand. Anyway, problem to me is not this Standard vs Scientific (although using 2 different design algorithms in 1 program is usually really bad thing to do), but that History contains wrong equation. Which means that if you didn't check in which mode you are, result that you used can be wrong. Which can induce different set of problems.

                                      1 Reply Last reply
                                      0
                                      • M miki bgd

                                        You will agree with me when i say that it is possible to omit checking if it is in scientific or standard mode. And why should i, if i wan't to perform some basic calculations. Then to confirm the result i will check the history, i see correct equation and i assume result is correct. It could be, but not necessary. In win7 at least you had different forms of calculator, so you can easily see which mode you are using. In win10 if you don't pay attention to exact buttons (and why should you, if you use physical keyboard), you can't tell, since both calculators are of same size. This is very poor UX.

                                        D Offline
                                        D Offline
                                        DerekT P
                                        wrote on last edited by
                                        #19

                                        I agree. I normally only need standard mode and will switch to it, if I have other windows open in the background and don't want the thing taking up half the screen. Other times though if it's in scientific and I've got multiple screens or not doing other stuff, I'll leave it like that. (I use the Win8 calculator, even on Win10, as it saves so much real estate.) I must say I'd never considered the results of my calculations would differ depending on how many buttons I had on screen. :wtf:

                                        1 Reply Last reply
                                        0
                                        • OriginalGriffO OriginalGriff

                                          If you think about it, it's not really a problem. Those who are used to the "Proper" way of doing things will automatically make sure it's in "Scientific" mode before they do anything (mine lives in "Programmer" mode even though I rarely use it); those who are used to an "old fashioned" cheapo desk calculator will leave it in "Standard" so the additional buttons don't confuse them ... :laugh:

                                          Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                                          N Offline
                                          N Offline
                                          Nelek
                                          wrote on last edited by
                                          #20

                                          OriginalGriff wrote:

                                          mine lives in "Programmer" mode even though I rarely use it

                                          programmer mode can't use / don't give real / floats

                                          M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups