![]() |
Previous | Table Of Contents | Next | ![]() |
Math Operations
The list of general math operations supported by the RPN Calculator is shown below. Each of these operations is identified by both a textual instruction statement and a keystroke sequence. The former is used when you prepare your program via a word processor such as Notepad and the latter is used when you prepare your program by clicking on the calculator's keys.
Note that any math operation that requires two operands uses the contents of the X and Y stack locations for these two operands. Any math operation that requires only one operand uses the contents of the X stack location for this operand. The result of any math operation is always placed into the X location of the stack after the operands have been removed from the stack.
Mean | ![]() ![]() |
Returns the mean of whatever data points you have summed using the Sum+ key since the last ClearSum (or ClearREG) keystroke. The mean of the X values is placed into the X stack location and the mean of the Y values is placed into the Y stack location. The stack does NOT lift hence the Z and T stack locations are not disturbed. For more info see the section entitled Statistics. |
---|---|---|
StdDev | ![]() ![]() |
Returns the standard deviation of whatever data points you have summed using the Sum+ key since the last ClearSum (or ClearREG) keystroke. For more info see the section entitled Statistics. |
LR | ![]() ![]() |
Returns in X the slope and in Y the y axis intercept of that straight line which best fits in a least squares sense the data points you have summed using the Sum+ key since the last ClearSum (or ClearREG) keystroke. For more info see the section entitled Least Squares Curve Fitting. |
Sum+ | ![]() |
Adds the X and Y stack entries to two separate statistical summations that are implemented with registers 10 through 15 as described in the sections entitled Statistics and Least Squares Curve Fitting. |
Sum- | ![]() ![]() |
Subtracts the X and Y stack entries from the two separate statistical summations. This keystroke allows you to remove a bad data point and thus avoid having to start over. |
ln | ![]() ![]() |
Natural logarithm. As an example, the keystroke sequence:
1 0 ln will result in the value 2.30259 |
e^x | ![]() ![]() |
Exponentiation or inverse natural logarithm. As an example, the keystroke sequence:
1 ex will result in the value 2.71828 |
log | ![]() ![]() |
Common logarithm. As an example, the keystroke sequence:
1 0 0 log will result in the value 2.0 |
10^x | ![]() ![]() |
Antilog or inverse common logarithm. As an example, the keystroke sequence:
2 10x will result in the value 100. |
->R | ![]() ![]() |
Convert from polar to rectangular representation.
As an example, if the calculator is currently in degrees mode
then the keystroke sequence:
63.43 ENTER 2.236 ->R will result in X = 1 and Y = 2 since (magnitude, angle) = (2.236, 63.43 deg) is the polar representation of the Cartesian point (x,y) = (1,2). |
->P | ![]() ![]() |
Convert from rectangular to polar representation.
As an example, if the calculator is currently in degrees mode
then the keystroke sequence:
2 ENTER 1 ->P will result in X = 2.236 and Y = 63.43 degrees which is the polar representation of the Cartesian point (x,y) = (1,2). |
sin | ![]() ![]() |
Sine function of trigonometry. As an example, if the calculator is
currently in degrees mode then the keystroke sequence:
3 0 sin will result in the value .5 since sin(30 deg) = .5 |
sin^-1 | ![]() ![]() |
Arcsine or inverse sine function. As an example, if the calculator is
currently in degrees mode then the keystroke sequence:
. 5 sin-1 will result in the value 30 since sin(30 deg) = .5 |
cos | ![]() ![]() |
Cosine function of trigonometry. As an example, if the calculator is
currently in degrees mode then the keystroke sequence:
6 0 cos will result in the value .5 since cos(60 deg) = .5 |
cos^-1 | ![]() ![]() |
Arccosine or inverse cosine function. As an example, if the calculator is
currently in degrees mode then the keystroke sequence:
. 5 cos-1 will result in the value 60 since cos(60 deg) = .5 |
tan | ![]() ![]() |
Tangent function of trigonometry. As an example, if the calculator is
currently in degrees mode then the keystroke sequence:
4 5 tan will result in the value 1.0 since tan(45 deg) = 1.0 |
tan^-1 | ![]() ![]() |
Arctangent or inverse tangent function. As an example, if the calculator is
currently in degrees mode then the keystroke sequence:
1 . 0 tan-1 will result in the value 45 since tan(45 deg) = 1.0 |
INT | ![]() ![]() |
Integer portion. This operation tosses the fractional portion of the
current contents of the X stack location. As an example, the keystroke
sequence:
2 . 3 INT will result in the value 2.0 |
FRAC | ![]() ![]() |
Fractional portion. This operation tosses the integer portion of the
current contents of the X stack location. As an example, the keystroke
sequence:
2 . 3 FRAC will result in the value 0.3 |
sqrt | ![]() ![]() |
Square root. As an example, the keystroke sequence:
9 sqrt will result in the value 3. |
x^2 | ![]() ![]() |
Square. As an example, the keystroke sequence:
9 x2 will result in the value 81. |
y^x | ![]() ![]() |
Raise y to the x power. As an example, the keystroke sequence:
2 ENTER 3 yx will result in the value 8. |
ABS | ![]() ![]() |
Absolute value. As an example, the keystroke sequence:
2 CHS ABS will result in the value +2. |
1/x | ![]() ![]() |
Reciprocal. As an example, the keystroke sequence:
2 1/x will result in the value .5 |
![]() |
Previous | Table Of Contents | Next | ![]() |