Showing posts with label chain mode. Show all posts
Showing posts with label chain mode. Show all posts

Sunday, April 13, 2025

Spotlight: Commodore P50

Spotlight: Commodore P50


Quick Facts



Model: P50

Company: Commodore

Timeline: 1978

Type: Scientific, Programming

Memory: 24 Steps

Order of Operations? No

Battery: 1 x 9-volt battery

Memory Registers: 1

Screen: 8 digits, red LED lights










Manual: www.wass.net/manuals/Commodore%20P50.pdf

From Kate Wasserman, Ph. D.’s website: https://www.wass.net/


This is my first Commodore calculator. The purchase included the calculator a manual, which is available from Kate Wasserman’s website above.



Calculating With the P50


Even though the P50 is a larger sized calculator, the calculator feels light weight. The keys are a pleasure to press.


The set of the P50’s functions is a set of basic of scientific calculators:


* Arithmetic functions

* 1/x, x^2, √x. The power function is missing.

* Logarithmic and exponential functions: log, 10^x, ln, e^x

* Trigonometric Functions: sin, cos, tan, arcsin, arccos, arctan, π key.

* Factorial of positive integer: [ n! ]

* Integer part: [ INT ]

* Memory keys: store, recall, product, sum, exchange. We only get one memory register on the P50.


Every function is a primary key except the inverse the inverse trigonometric functions, which are accessed by the [ arc ] key first.


The P50 operates in Chain mode. That is, operations happen in the order of the keys pressed, without regard to the order of operations.


Example:

9 [ × ] 7 [ + ] 8 [ = ] returns 71.

8 [ + ] 9 [ × ] 7 [ = ] returns 119.


There are no parenthesis keys, hence for more complex calculations, the use of the memory key is needed.



Powers and Roots


The P50 is missing the power function. The manual suggests that powers are calculated by the following keystroke sequence:


y^x: y [ ln ] [ × ] x [ = ] [ e^x ]

y^(1/x): y [ ln ] [ × ] x [ 1/x ] [ = ] [ e^x ]


Alternatively:

y^x: y [ log ] [ × ] x [ = ] [ 10^x ]

y^(1/x): y [ log ] [ × ] x [ 1/x ] [ = ] [ 10^x ]


Example:

5^8: 5 [ ln ] [ × ] 8 [ = ] [ e^x ]; returns 390,625

5^(1/8): 5 [ ln ] [ × ] 8 [ 1/x ] [ = ] [ e^x ] returns 1.2228445.


Other function sequences:


Absolute Value, abs(x): [ x^2 ] [ √x ]

4th Power, x^4: [ x^2 ] [ x^2 ]

Cube, x^3: [ STO ] [ x^2 ] [ x^2 ] [ ÷ ] [ RCL ] [ = ] (memory is used)

Sign Function, x ≠ 0, sgn(x): [ STO ] [ x^2 ] [ √x ] [ ÷ ] [ RCL [ = ] (memory is used)

Fraction Part, frac(x): [ STO ] [ - ] [ RCL ] [ INT ] [ = ] (memory is used)


Programming


The P50 has a 24-step capacity. There are no merged keystrokes with exceptions:


* The arcsin, arccos, and arctan key sequences ( [ arc ] [ sin ], [ arc ] [ cos ], [ arc ] [ tan ]) are merged.

* The [ GOTO ] key is followed by a two digit address. In this case any steps 0 through 9 are preceded by a zero (00 -09).


The low amount of programming steps and the one memory register to work with, the P50 programming module is good for short, quick repeated calculations. The programming keys available are:


[ lrn ]: Learn/(Run) Mode Toggle. In run mode you are only shown the step number and nothing else.


[ R/S ]: Run/Stop

[ SSTP ]: Single Step key. However, it only works in run mode, executing program steps one step at a time. This is the most annoying quirk of the P50, almost making it programming in the blind calculator. There are no key codes with each step, and they really should be.

[ GOTO ] ##: Directs the P50 to go to step 00-23. The two digit number after a GOTO counts as one step.


There are three skip functions. If the test is true, the program either:

* Skips the next step or

* Skips the next two steps if the step that follows the test is a GOTO.


[ SKZ ]: Skip if the number in the display is zero. (skip if x = 0)

[ SKN ]: Skip if the number in the display is negative. (skip if x < 0)

[ SKP ]: Skip if the number in the display is positive or zero. (skip if x ≥ 0)


In order for the program to stop and display results and reset for the next calculation, we need the following sequence of steps:

R/S

GTO 00


Otherwise, the program could run unintentionally forever.


There is no clear program button, but programs are not kept when the P50 is turned off.  


P50: Sample Programs


Round to the nearest hundredths (2 decimal places)


×

1

0

0

+

.

5

INT

÷

1

0

0

=

R/S

GTO

00



Examples:

36.728 → 36.73

54.616 → 54.62

40.303 → 40.30 (display shows 40.3)


Permutation


nPr = n! / (n – r)!


STO

-

R/S

n!

1/x

×

RCL

n!

=

R/S

GTO

00


To Run: (GTO 00): n R/S r R/S nPr


Examples:


n = 20, p = 8: 5.0791104 E09 (5,079,110,400)

n = 12, p = 6: 665,280

n = 13, p = 7: 8,648,640


Volume of a Sphere


V = 4 * π * r^3 / 3


STO

x^2

x^2

÷

RCL

×

π

×

4

÷

3

=

R/S

GTO

00


Examples:

r = 11.1: 5,728.7193

r = 6: 904.77868

r = 10: 4,188.7902


Pseudo Random Number Generator


#_i = frac( (π + #_i) ^ 5) = M – int (M) (where M = e^( 5 * ln (#_i + π))


+

π

=

ln

×

5

=

e^x

-

INT

=

R/S

GTO

00


To run: seed R/S, R/S, R/S, ….


Examples:

0.552 → 0.4561281 → 0.7501096 → 0.6846062

0.838 → 0.1437699 → 0.7511575 → 0.8871519



Modulus of Positive Numbers


a > 0, b > 0, a mod b = a – int(a / b) * b


÷

R/S

STO

=

-

INT

×

RCL

=

R/S

GTO

00


To run: a R/S b R/S result


Examples:

19 mod 7 = 5

288 mod 17 = 16


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. 



Monday, July 10, 2023

Retro Review: Sears Electronic Slide Rule

Retro Review: Sears Electronic Slide Rule



Quick Facts


Model: Electric Slide Rule,  801.58771

Company: Sears

Production Years:  1974 - mid 1970s

Power:  Battery, originally AA chargeable NiCad*

Type:  Scientific

Operating System:  Chain

Memory Registers:  1

Display:  One line:  8 digits, 2 lights:  one for overflow (error), one for negative numbers

Same Key Set as:   Rockwell 61R


*  I purchased this calculator at the Pasadena City College Swap Meet on July 2, 2023.  The calculator is in great condition, along with a great leather case and instruction manual.   The calculator was re-configured to run on 4 regular AA batteries, to that I'm very grateful.





Keyboard and Scientific Functions 


Most of the functions available are shifted functions.  The equals key is in an usual place, on the 2nd row from the top, above the arithmetic keys.  Access the shifted functions (written in white) by pressing the black key [ f ]. 


Scientific Functions Available:


Logarithm:  ln, log, e^x, 10^x

Roots and Powers:  √x, x^y, 1/x

Trigonometry:  sin, cos, tan, arc (inverse)

Memory Functions:  m+, m-, m+x^2  (add the square of a display to memory) x←m (recall), x→m (store), x←→m (exchange with memory), x←→y (swap arguments, not shifted) 


DR:  Data Recovery function is activated the key sequence [ f ] [ f ] (not a typo, DR is the shifted function of [ f ]).  What this does is two-fold:


1.  Erase the last number entered.

2.  Activate the intended shifted function without having the need to press [ f ] again.


Example:  e^4


[ 4 ] [ 4 ]:   Display:  44

[ f ] [ f ]:   Erases the last 4,  Display:  4

[ 4 ]:  Calculates e^4, Display:  54.59814



CF:  Clear Function.   Cancels out the shifted function [ f ].


Example:  12 + 89


[ 1 ] [ 2 ] [ + ]

[ f ]:   next key pressed will be a shifted function

[ c ce ] (cf):  cancels out that shifted function

[ 8 ] [ 8 ] [ = ]:  Display: 100


There are two switches:  Power (On/Off) on the left, and Angle mode (Degrees/Radians) on the right.  


Negative Numbers





There was no room on the display for a negative sign (apparently), instead negative numbers are indicated by a bright red light on the upper right hand of the display, next to the clear Neg imprint on the screen.  


I would prefer the negative sign on the display, to the left of the number.  


Chain Mode


The Slide Rule operates in chain mode, which is the calculations happen exactly the way they are entered, with no respect to the order of operations.   Note that there are no parenthesis keys.


For example:


4 + 3 × 8 returns 56


3 × 8 + 4 returns 28



Powers


Assume that n is a positive integer.


a^n  can be accomplished by entering a, repeatedly pressing [ × ] n-1 times, finishing by pressing [ = ].


7^5:  7 [ × ] [ × ] [ × ] [ × ] [ = ].  Result:  16807

[ × ] four times. 



1/(a^n) can be accomplished by entering a, repeatedly pressing [ ÷ ] n+1 times, finish by pressing [ = ].


4^-3:  

4 [ ÷ ]:  Display:  4

[ ÷ ]:  Display:  1   (4^0 = 1)

[ ÷ ]:  Display:  0.25   (4^-1 = 1/4)

[ ÷ ]:  Display :  0.0625  (4^-2 = 1/16)

[ = ]:  Display:  0.015625  (4^-3 = 1/64)


The power function x^y operates on the formula e^(y × ln x).   This may lead to rounding errors.  





Example:


2^3 = 8.


2 [ × ] [ × ] [ = ]  returns 8.   The exact answer.

2 [ f ] [ 6 ] (x^y) 3 [ = ] returns 7.999993


Floating Point Rounding Errors


One drawback of the Electronic Slide rule is the rounding floating point errors.  


70 [ f ] [ ÷ ] (1/x)  returns 0.0142857

Press [ f ] [ ÷ ] (1/x) again returns 70.00007


0.5 [ f ] [ 0 ] (arc) [ 2 ] (cos) returns 59.99999 degrees (it should be 60 degrees)


The forensic test returns 10.4382 (9 sin cos tan arctan arccos arcsin).  


I think the calculator can handle numbers to what the display capacity allows.  There is no internal guard digits to help with accuracy.    


Final Thoughts


I like the feel of the calculator.   The screen has large green numbers which makes the display easy to read.   The keys are are pretty responsive, especially back in the day when it comes to lower-cost calculators in the 1970s (around $100).  


I am not the biggest fan of the negative number indicator, the Rockwell 61R has a negative sign.  Not a deal breaker, though.  The good thing is that red indicator light is bright.  


The Slide Rule is great for fans of Chain Mode (non-algebraic mode).   


If you buy one be sure that:  the charging cord and rechargeable batteries are included and in good working order or the calculator is modified to work on regular AA batteries.


I like how the manual goes in depth with the operations and its library of applications.  



Sources:


Download the manual from Katie Wasserman's Page:  


Sears Electronic Slide Rule:  

https://www.wass.net/manuals/Sears%20Slide%20Rule.pdf


Rockwell 61R:

https://www.wass.net/manuals/Rockwell%2061R.pdf


calculator.org's page on the  Sears Electronic Slide Rule (retrieved July 2, 2023):

https://www.calculator.org/calculators/Sears_Electronic_Slide_Rule.html




Eddie



All original content copyright, © 2011-2023.  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. 


Friday, May 6, 2016

What’s New: CALC 1 by CalcFxC, LLC

What’s New:  CALC 1 by CalcFxC, LLC


Programmer/Author:  CalcFxC, LLC
Platform:  iOS (iPhone, iPod Touch, iPad)
Price:  Up to $5.99 for the full, non-ad version

There is a free version, but it is with ads and you may not get all the features you want.  There are in-app purchases on the free version if you want. 



This blog entry will focus on some of the update (as of 3/24/2016). 

I reviewed the app on a previous blog entry:  http://edspi31415.blogspot.com/2012/10/review-of-freecalcfxc.html

To review, CALC 1 (previously named CalcFxC), has focused calculators and formula calculators.  Focused calculators are calculators that are set on a specific theme or task.  This includes the general, time value of money, statistics, conversions, and general (scientific) calculators.    Hold any key for a second, and you will see help text that applies to the key.  Formula calculators are calculators that are based on equation solving.  This includes solving percentage problems, profit margin, effective interest rate vs nominal interest rate, permutations, combinations, probability density functions, and polynomial solvers.  You can also make a customized focused or formula calculator. 

We also have Form Calculators.  These are guided calculators that answer specific questions, such as finding the monthly payment of a loan, a time value of money worksheet, an amortization worksheet (which can be copied and emailed), depreciation, and dates. 

Some of the New Features

Value Preview




This is my favorite of the new update (as of 3/24/2016) is the value preview.  Any storage register, be it the time value of money, formula register, or variables, you will see the current value of the register printed directly on the key. 

Swap Key (iPhone/iPod Touch) takes you to Currency Conversion





The swap key takes you the currency conversion and automatically takes the number on the X Stack (bottom stack) as its argument.  The best part is that the most current conversion rates are used (assuming your device is connected to the internet).  Once conversion is complete, the results are placed on the X stack.

Chain Mode




New to CALC 1 is chain mode.  Most four-function, non-scientific calculators that you find operate on Chain Mode.   Operations in chain mode work on the number in the display (x-stack) in the order you press the key, ignoring the Order of Operations.  For example:

Pressing 7 [ + ] 2 [ x ] 5 [ = ] in chain mode returns 45.  (Under Order of Operations, the 7+2*5 = 17)

CALC 1 also has Algebraic and RPN entry modes. 

Form Calculator Results are placed in History



This not only transfers single amounts but also any applicable tables.  To see the details of any Form Calculator related history item, click on the information button (the blue I in a circle).  This is useful if you want to work with a lot of what-if scenarios or if you making a set of calculations that you want to refer to at a later time. 

Please check this app out, Roger Carey has a done a solid job on this calculator. 



This blog is property of Edward Shore, 2016.

RPN: DM32 and DM42: Stopping Sight Distance (Metric)

RPN: DM32 and DM42: Stopping Sight Distance (Metric) The Stopping Sight Distance Formula – Derivation The stopping sight di...