Calculator's scientific mode provides all the features of the standard calculator plus the following:
In Calculator's standard mode, calculations are always performed in the order in which they're entered. If you type 4+5*6=, for example, Calculator displays 54, the result of adding 4 to 5 and multiplying the sum by 6.
This is not the case in Calculator's scientific mode. Here, the order in which an expression is evaluated depends on the operations involved. Multiplication and division, for example, are always performed before addition or subtraction. In the scientific calculator, therefore, the expression 4+5*6 returns 34, the result of adding 4 to the product of 5 times 6.
Fortunately, it isn't necessary to memorize Calculator's rules about operator precedence. You can simply watch Calculator's display as you enter your calculation. Whenever you type an operator (for example, +, *, or /), Calculator checks to see whether the operator you just entered has a higher precedence than the previous operator you entered. If it doesn't have a higher precedence, Calculator evaluates the last operation and displays an intermediate result. If it does have a higher precedence, no intermediate result is displayed.
For example, suppose you type the following in Calculator's scientific mode:
4*5+
After you type the plus sign, Calculator, recognizing that addition has a lower precedence than multiplication, evaluates 4*5 and displays the intermediate result—20. If, on the other hand, you type
4+5*
Calculator sees that your last operation, multiplication, has higher precedence than the previous one, addition. So, it does not display an intermediate result. Instead, it waits for your next number or numbers. If you follow the asterisk with
6=
Calculator goes ahead and multiplies 5*6. Then it adds 4 to the result.
What if you need to override Calculator's normal order of operations? You can do that in either of two ways. In the case of 4+5*6, for example, you can simply click the = button after entering the 5. That forces Calculator to carry out the addition and display the intermediate result—9. Now you can complete the calculation by entering *6=.
Alternatively, you can enter parentheses before and after the operation you want Calculator to perform first. Expressions within parentheses are always evaluated immediately, regardless of what follows the closing parenthesis.
With that discussion of precedence out of the way, let's now take a tour of the scientific calculator's capabilities.
The scientific calculator offers these additional arithmetic operations not available in the standard calculator:
The scientific calculator offers these exponential and logarithmic functions:
The Inv check box, located along the left edge of the window, provides the inverse function of the above operations. First select Inv, and then click the function you want to use. After you use an inverse function, the Inv box clears automatically.
When the Inv check box is selected, x^y returns the yth root. For example, to find the seventh root of a number, enter the number, select Inv, click x^y, and then click 7. Similarly, the inverse of x^3 and x^2 return the cube root and square root, respectively, of a number. And the inverse of log and ln return 10 and e, respectively, raised to the power of a number.
The Hex, Dec, Oct, and Bin options let you switch between the hexadecimal, decimal, octal, and binary number systems. If Calculator is displaying a number when you switch, it converts that number to the system you switch to. So, for example, if you want to know the octal equivalent of 123456 decimal, you can simply enter that number (be sure you're in decimal mode when you do), and then select Oct.
NOTE
In all number systems except decimal, Calculator works only with positive integers. When you switch from decimal to one of the other number systems, Calculator discards the fractional portion of the number, if any.
You can enter only those digits that are appropriate for the current number system. If you're in binary, for example, Calculator accepts only 0 and 1. If you're in hexadecimal, you can use the A through F buttons, as well as the numerals 0 through 9.
When you use the binary, octal, or hexadecimal number systems, you can select one of the options at the right side of the Calculator window to change the size of the value currently displayed. If the Qword option is selected, Calculator displays the full value of the current number, which can be up to 64 bits (16 digits in hexadecimal). If you switch to Dword, Calculator displays only the least significant 32 bits. Selecting Word displays only the least significant 16 bits, and selecting Byte displays only the least significant 8 bits.
The And, Or, Xor, and Not buttons perform logical bitwise operations on numbers in any number system, by internally converting the numbers to binary, performing the bitwise operation, and then displaying the answer in the selected number system.
The Lsh button shifts numbers left by the number of bits you specify. (For example, to shift the displayed number left by 4 bits, click Lsh, enter 4, and click =.) When the Inv check box is selected, Lsh shifts numbers the specified number of bits to the right.
The sin, cos, and tan buttons return sine, cosine, and tangent, respectively. When the Inv check box is selected, they return arcsine, arccosine, and arctangent. For hyperbolic functions, first select the Hyp check box, and then the button for the function you want. The trigonometric functions are available only when you use the decimal number system.
The options on the right side of Calculator's window govern the way Calculator expects to see angles expressed. The default setting is Degrees, but you can switch to Radians or Grads.
To switch the displayed number from normal decimal format to degree-minute-second format, click dms. In degree-minute-second format, the degrees are to the left of the decimal point. The minutes are the first two digits to the right of the decimal point, and the seconds are to the right of the minutes. To switch back, select Inv, and then click dms.
Pressing the pi button enters the constant pi. A shortcut for entering 2p is to select Inv and then click pi.
To calculate sums, averages, and standard deviations of groups of numbers, first click the Sta button. That opens a separate window in which you can enter as many numbers as you like. See Figure 35-1.
After the Statistics Box window opens, you'll want to move it to another part of the screen so that it doesn't overlap the main Calculator window. You'll be moving back and forth between the two windows, so it's helpful to be able to see both at once.
To enter numbers into the statistics box, enter the number in the main Calculator window, and then click the Dat button to move the displayed value to the statistics box.
When you have entered all the numbers you need to work with, you can perform the following calculations. The result will be displayed in the main Calculator window.
The four buttons in the Statistics Box window do the following: