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.
  • 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
          • 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
            #13

            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
            • 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
              #14

              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
              • 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
                          • M miki bgd

                            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 Offline
                            Richard Andrew x64R Offline
                            Richard Andrew x64
                            wrote on last edited by
                            #21

                            People using the calculator in standard mode are not interested in doing "mathematics!" They just want to do some quick calculations. :rolleyes:

                            The difficult we do right away... ...the impossible takes slightly longer.

                            D 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.

                              M Offline
                              M Offline
                              MadMyche
                              wrote on last edited by
                              #22

                              The simple calculator chains together what you are entering following the natural reading order. This has been known as the Arithmetic Order of Operations. This is kinda like "interpreted" programming such as JavaScript which is processed line by line. The Algebraic Order of Operations (FOIL, PEMDAS, et al) is followed by the scientific calculator; and is like "compiled" programming, in which you can declare an object anywhere within the class, before or after it is called.

                              Director of Transmogrification Services Shinobi of Query Language Master of Yoda Conditional

                              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
                                #23

                                In related news; Political Calculations: Court Upholds Math Order of Operations[^] I have no problems with the software performing as if it is limited like a hardware-calculator, but it should not produce the history it does without explanation.

                                Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

                                1 Reply Last reply
                                0
                                • Richard Andrew x64R Richard Andrew x64

                                  People using the calculator in standard mode are not interested in doing "mathematics!" They just want to do some quick calculations. :rolleyes:

                                  The difficult we do right away... ...the impossible takes slightly longer.

                                  D Offline
                                  D Offline
                                  Dr Walt Fair PE
                                  wrote on last edited by
                                  #24

                                  Richard Andrew x64 wrote:

                                  eople using the calculator in standard mode are not interested in doing "mathematics!" They just want to do some quick calculations

                                  Real mathematics starts with differential equations. Everything before that is trivial.

                                  CQ de W5ALT

                                  Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

                                  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.

                                    D Offline
                                    D Offline
                                    Dr Walt Fair PE
                                    wrote on last edited by
                                    #25

                                    miki-bgd wrote:

                                    This is really insulting for anyone who knows how to count up to more then 10.

                                    Everyone knows that after 10 comes oneteen twoteen, etc up to ten teen

                                    CQ de W5ALT

                                    Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

                                    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