Why is there not a Square Root button in calc.exe?
support.microsoft.com
support.microsoft.com
On "Standard" view, type:
1 + 2 * 3 =
Answer comes back as 9
Switch to "Scientific" view and type the same,
Answer comes back as 7
The reason (of course) is operator precedence; in standard mode it's interpreted as "1 + 2 =" then "* 3 =", while in scientific view it respects BODMAS.
But to me it's counter-intuitive that changing the View also changes the Mode of operation.
If they'd just named that menu "Mode" instead of "View" I'd be fine with it.
On computer calculators, I always type "1 + 2 * 3 =" as "2 * 3 =", "+ 1 =" because I learned the hard way that I can't asume that a calculator is going to respect order of precedence or not.
This also kind of influences my programming, probably for the better - I would rather use parens and be clear than be ambiguous and trust that my interpreter and I agree on what has proper precedence.
And if the software has the capability to do it right why bother building in a 'broken' mode.
Apple's Calculator.app works similarly, although their default state is better. If you open up the "Shown Paper Tape" window, and type "1 + 2 * 3 [enter]", it replies "1 + 2 * 3 = 7" If you then type "1 + 2 [enter]", it replies "1 + 2 = 3", then if you hit " * 3 [enter]" it replies "1 + 2 * 3 = 9".
The '=' key will do the same.
edit: Doh! That's what the linked page says. In my defense I have a horrible connection tonight and it didn't load until just now :)
edit 2: Lol@ the itchy trigger-finger. Isn't that what the downvote karma limit is for? :)
some other nice tools there too.
The point he or she was making was that a person that doesn't know that sqrt(x)=x^1/2 probably wouldn't be calculating the for example velocity of a projectile