|
Section 3: Functions44
|
|
From a program, you use the ABS function which changes the sign, if negative. For example,
calculate the absolute value of 3 and –3.
|
|
Press
|
|
See Displayed
|
|
Comment
|
|
3 gABS
|
|
|
|
|+3|
|
|
CHS
|
|
|
|
|
|
gABS
|
|
|
|
|–3|
|
|
|
Functions of x and the Exponential Function (yx)
|
These functions are listed in Figure 33. They all leave the result in the X-register.
All expect an input value to be in the X-register. yX expects, in addition, a
y value in the Y-register. It is worth noting that the conditions given
for INPUT VALUE(S) can generally be predicted by common sense. For example, the table tells us
that to calculate the reciprocal, the input value cannot be 0, which is exactly what we would expect
because we ordinarily attach no meaning to 1 ÷ 0. If we attempt to calculate the reciprocal of
zero, the blinking display emphatically warns us of the error. Try it. Just press CLx g1/x.
You can stop the blinking by pressing any key.
|
|
Sample Case: Common Logarithm. Calculate the power gain in decibels of an amplifier yielding
twice the value of the input power.
|
|
Note: decibels = 10 log (2)
|
|
Press
|
|
See Displayed
|
|
Comment
|
|
10 ENTER
|
|
|
|
Save value 10.
|
|
2 fLOG
|
|
|
|
Log 2.
|
|
×
|
|
|
|
Answer.
|
|