Showing posts with label AOS. Show all posts
Showing posts with label AOS. Show all posts

Saturday, August 2, 2025

AOS Calculators: Duplicating a Value Without Retyping It

AOS Calculators: Duplicating a Value Without Retyping It



Note: The following applies to scientific classic calculators who operate under the algebraic operating system (AOS) (that is what Texas Instrument’s calls it). I tested this procedure with the following calculators: TI-30X ECO, HP 10bII+ (Algebraic mode), and Casio fx-260 Solar.



Introduction: Going Back to 1976


Imagine it is 1976 and you have have an SR-56 from Texas Instruments. Here is what an SR-56 looks like: http://www.datamath.org/Sci/WEDGE/ZOOM_SR-56.htm


You are tasked to calculate 1.401103287^1.401103287 and do not want to write the number twice. According to page 53 of the SR-56 manual, one approach is to key in:


1.401103287 [ y^x ] [ CE ] [ = ]

Result: 1.604057054


For that particular calculator, SR-56, pressing [ CE ] once stores the number in the display as the second operand allowing the value to duplicated without having to retype the number.


If we tried that on a modern TI-30Xa/TI-30 ECO RS, the display would clear to zero instead of showed the previous number.


However, there are a few tricks we can employ to achieve the similar result.



Trick 1: Pressing the Reciprocal Key Twice


As long as the number in the display is nonzero, pressing [ 1/x ] [ 1/x ] registers the number in the display for as a second operand. In calculators operating in AOS, executing one-argument functions only operate and effect the number in the display only.


Pressing [ 1/x ] takes the reciprocal of the number and registers the number in the display. Pressing [ 1/x ] again returns the number.


**The keystrokes omits any [ 2nd ] or [ SHIFT ] keys.


Example 1:

Expression: x * log x

Keystrokes: x [ × ] [ 1/x ] [ 1/x ] [ LOG ] [ = ]


5.8 * log 5.8

Keystrokes: 5.8 [ × ] [ 1/x ] [ 1/x ] [ LOG ] [ = ]

Result: 4.427882363


Example 2:

Expression: x^x

Keystrokes: x [ y^x ] [ 1/x ] [ 1/x ] [ = ]


3.088 ^ 3.088

Keystrokes: 3.088 [ y^x ] [ 1/x ] [ 1/x ] [ = ]

Result: 32.51797379


Example 3:

Expression: x * sin x

Keystrokes: x [ × ] [ 1/x ] [ 1/x ] [ SIN ] [ = ]


50° * sin 50°

Keystrokes: ([DRG] to DEG/[ MODE ] (DEG))

50 [ × ] [ 1/x ] [ 1/x ] [ SIN ] [ = ]

Result: 38.30222216


4^4 + 1 / (3^3)

Keystrokes:

4 [ y^x ] [ 1/x ] [ 1/x ] [ + ]

[ ( ] 3 [ y^x ] [ 1/x ] [ 1/x ] [ ) ] [ 1/x ] [ = ]

Result: 256.037037


If the calculator has a cube function (x^3), we can execute this keystroke:

4 [ y^x ] [ 1/x ] [ 1/x ] [ + ]

[ ( ] 3 [ x^3 ] [ ) ] [ 1/x ] [ = ]



Trick 2: Inverse Function Trick


This trick extends the reciprocal trick to include a function that acts on two (and theoretically more) “reversible” functions. This trick applies to the expressions with the following format:


f(x) OP g(x)


f(x)

f^-1(x)

f(x)

f^-1(x)

f(x)

f^-1(x)

SIN

SIN^-1

e^x

LN

X^3

∛

COS

COS^-1

LN

e^x

∛

X^3

TAN

TAN^-1

10^x

LOG

Hyperbolic

Inverse Hyperbolic

SIN^-1

SIN

LOG

10^x

Inverse Hyperbolic

Hyperbolic

COS^-1

COS

X^2

√



TAN^-1

TAN

√

X^2




OP covers the arithmetic operations: [ + ], [ - ], [ × ], [ ÷ ], [ y^x ], and [ y^(1/x) ]


The general keystroke sequence is: x [ f(x) ] [ OP ] [ f^-1(x) ] [ g(x) ] [ = ]


Let’s illustrate this with a few examples. Assume the calculator is in degrees mode.


Example 1:

sin 40° * cos 40°

f(x) = sin x, f^-1(x) = sin^-1 x, g(x) = cos x

Keystrokes: 40 [ SIN ] [ × ] [ SIN^-1 ] [ COS ] [ = ]

Result: 0.492403877


Example 2:

tan 32° * sin 32°

f(x) = tan x, f^-1(x) = tan^-1 x, g(x) = sin x

Keystrokes: 32 [ TAN ] [ × ] [ TAN^-1 ] [ SIN ] [ = ]

Result: 0.331130307


Example 3:

log 881 * ln 881

f(x) = log x, f^-1(x) = 10^x, g(x) = ln x

Keystrokes: 881 [ LOG ] [ × ] [ 10^x ] [ LN ] [ = ]

Result: 19.97005314


Example 4:

e^3.5 / √3.5

f(x) = e^x, f^-1(x) = ln x, g(x) = √x

Keystrokes: 3.5 [ e^x ] [ ÷ ] [ LN ] [ √ ] [ = ]

Result: 17.70095363


Example 5:

√4.555 + e^4.555

f(x) = √x, f^-1(x) = x^2, g(x) = e^x

Keystrokes: 4.555 [ √ ] [ + ] [ x^2 ] [ e^x ] [ = ]

Result: 97.24099983


The inverse function “recovers and registers” the original x. It’s kind of simulating the LAST x feature on RPN calculators.


Sources


Datamath. “Texas Instruments SR-56“ December 5, 2001. http://www.datamath.org/Sci/WEDGE/SR-56.htm


Texas Instruments. Programmable Slid-Rule Calculator SR-56: Owner’s Manual. Dallas, TX. 1976


Eddie


All original content copyright, © 2011-2025. Edward Shore. Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited. This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author.


All posts are 100% generated by human effort.  The author does not use AI engines and never will.


Sunday, January 26, 2020

HP 42S & Casio fx-260 Solar: Continued Fractions

HP 42S & Casio fx-260 Solar: Continued Fractions

Introduction

Let x be a real number.  Then x can be represented by the fraction:

x = n_1 + 1/(n_2 + 1/(n_3 + 1/(n_4 + 1/(n_5 + ...))))

The above form is known as a continuous fraction, which can either have a finite set of terms or infinite set of terms.   In short form, continuous fractions can be written in a vector form:

x = [ n_1, n_2, n_3, n_4, n_5, ... ]

If you are given a continuous fraction (n_1, n_2, etc.), you can calculate x with the following keystrokes, starting with the last term n_k and working left to n_1:

RPN Calculators

1.  Start by entering n_k, then press [ 1/x ]
2.  Loop:  For each n_m for 1 < m < k:  enter n_m, [ + ], [ 1/x ]
3.  For n_1:  Enter n_1, [ + ]

Remember, we are working leftwards. 

Example:

Calculate 2 + 1/( 3 + 1/(5 + 1/2)).   In other words x = [2, 3, 5, 2]

2 [ 1/x ]
5 [ + ] [ 1/x ]
3 [ + ] [ 1/x ]
2 [ + ]

Result:  81/35 ≈ 2.31429

The program CF for the HP 42S (and Swiss Micros DM42 and Free42 emulator) calculates the value of a continued fraction.  Instructions:

1.  Run CF ( [ XEQ ] (CF) )
2.  Enter n_k, press (LAST)
3.  For each n_m for 1 < m < k, enter n_m, press (MID)
4.  For n_1, enter n_1, press (1ST).  You get the result.

HP 42S/DM42/Free 42 Program CF

00 {56-Byte Prgm}
01 LBL "CF"
02 LBL 04
03 CLMENU
04 "LAST"
05 KEY 1 GTO 01
06 "MID"
07 KEY 2 GTO 02
08 "1ST"
09 KEY 3 GTO 03
10 MENU
11 LBL 00
12 STOP
13 GTO 00
14 LBL 01
15 1/X
16 GTO 04
17 LBL 02
18 +
19 1/X
20 GTO 04
21 LBL 03
22 + 
23 CLMENU
24 EXITALL
25 RTN
26 END

Classic Algebraic (AOS) Calculators

We can use the same strategy for classic algebraic calculators such as the Casio fx-260 Solar II and TI-30Xa Solar:

1.  Start by entering n_k, then press [ 1/x ]
2.  Loop:  For each n_m for 1 < m < k: press [ + ], enter n_m, press [ = ], [ 1/x ]
3.  For n_1:  Enter n_1, [ + ]

Remember, we are working leftwards. 

Calculate 2 + 1/( 3 + 1/(5 + 1/2)).   In other words x = [2, 3, 5, 2]

2 [ 1/x ]
[ + ] 5 [ = ] [ 1/x ]
[ + ] 3 [ = ] [ 1/x ]
[ + ] 2 [ = ]

Result:  81/35 ≈ 2.31429


Eddie

All original content copyright, © 2011-2020.  Edward Shore.   Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited.  This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author.

Casio fx-50F/Radio Shack EC-4024 Program Collection: October 2026

Casio fx-50F/Radio Shack EC-4024 Program Collection: October 2026 Notes: * The fx-50F/EC-4024 has a 29 step program space betwe...