Odd behavior in calculator
In the Help and Support, Notes for Scientific calculator:
Notes
In Scientific mode, Calculator is precise to 32 significant digits.
Calculator honors operator precedence when calculating in Scientific mode.
One must manually enter the correct order in standard mode.
August 6th, 2011 7:49am
Thanks for the input guys.
Free Windows Admin Tool Kit Click here and download it now
August 6th, 2011 8:46am
There is no problem here. This is how I entered the calculation in both
Standard and Scientific modes:
Standard: We need to remember that this mode does not include parantheses, so the equation needs to be reorganised to take account of that fact. Also, the memory function might need to be involved.
Step 1: 2213720*0.8 MS (Place the result of the calculation in memory)
Step 2: 2213720*0.8-1474634.36-4732.2-223747 (Removed parantheses and inverted the signs:
x-(y1+y2+y3) is identical to x-y1-y2-y3)
Step 3: Result of Step 2 / MR (Divided the result of Step 2 by that of Step 1, which was placed in memory)
Step 4: Result of Step 3 * 100 (self-explanatory)
Following all that through, we get the following result after Step 4:
3.831923188117738
Scientific: Equation entered as written: ((2213720*0.8)-(1474634.36+4732.2+223747))/(2213720*0.8)*100
This yields 3.8319231881177384673761812695372
As you can see, the results when truncated to the same number of decimal places are identical. The reason for the discrepancy between Windows Calculator (and any other calculator to some degree, for that matter) and doing the calculation by manual longhand
is due to how numbers are represented in the internal registers of the calculator. Depending on the numbers involved, and the length of the internal registers (Scientific mode utilises longer length registers when compared to Standard mode), these discrepancies
can add up, in particular when irrational numbers e.g. pi and
√2 are involved.
August 6th, 2011 10:08am
Hi,
Today i tried to paste the following line into calc.exe
((2213720*0,8) - (1474634,36+4732,2+223747)) / (2213720*0,8)*100
(Remember to replace the decimal sign to match your regoinal settings)
In standard mode the result is = 18,96611459443832
In scientific mode the result is = 3,8319231881177384673761812695372
The correct result is 3,8.........
Can anoyne explain this behavior and verify the problem?
Free Windows Admin Tool Kit Click here and download it now
August 7th, 2011 3:50am
Hi,
there are a lot of issues known in Windopws calculator which mostly see to arise from floating point operations and rounding. And it is known calculator interprets differently in scientific mode as it does in standard. if you search the internet (and
microsoft kb) you will find a lot of issues with calc.exe, most of which were never fixed.
I would recommend not to use calculator for scientific or otherwise more complex calculations.MCP/MCSA/MCTS/MCITP
August 7th, 2011 4:21am