Showing posts with label Radio Shack. Show all posts
Showing posts with label Radio Shack. Show all posts

Saturday, January 2, 2021

Retro Review: Radio Shack EC-4018

 Retro Review:   Radio Shack EC-4018








HAPPY NEW YEAR!


Quick Facts:


Company:  Radio Shack

Model:  EC-4018

Equivalent of:  Casio fx-470

Type:  Scientific 

Years:  Late 1980's

Display:  10 digits

Batteries:  Solar

Memory Registers: 1


Keyboard


The keyboard of the EC-4018 is a folding landscape.    The top half has the screen and 18 gray keys (scientific) to the right side, and two solar panel strips to the left.  The bottom half has 15 large black keys (arithmetic).  I really like the large keys on this calculator.  The keys are really easy to press and operated, and they also have a nice feel to them.  


Features


*  Trigonometric functions, logarithms, powers, rots

*  Convert to and from degrees-minutes-seconds

*  Four base conversions:  binary, decimal, octal, hexadecimal

*  Boolean Algebra: AND, OR, XOR, NEG

*  Fractions, combinations, permutations, reciprocal, factorials of integers


Physical Constants


INV 1:  Speed of Light in a Vacuum: c =  299792458 m/s

INV 2:  Planck's Constant:  h = 6.626176 * 10^-34 J s 

INV 3:  Universal Gravitational Constant:  G = 6.672 * 10^-11 N m^2/kg^2

INV 4:  Elementary Charge:  e = 1.6021892 * 10^-19 C

INV 5:  Electron Rest Mass:  me = 9.109534 * 10^-31 kg

INV 6:  Atomic Mass Unit:  u = 1.6605655 * 10^-27 kg

INV 7:  Avogadro's Constant:  Na = 6.022045 * 10^23/mol

INV 8:  Boltzmann Constant:  k = 1.308662 * 10^-23 J/K

INV 9:  Molar Volume of Ideal Gas:  Vm = 0.02241383 m^3/mol


According to the Casio fx-650 manual, these values are based on 1978 Japan Industrial Standards.  


The nice thing is that the units are stated next to the symbol.  


Verdict 


I am really like the keyboard and the contrast of the font colors.  The bright orange and gold really stand out against the black keyboard.   The screen's digits are really nice and big.  As I mentioned before, the keys have a nice feel.  


If you like a folding scientific calculator, you are going to have to search for a vintage calculator.  The good thing about Radio Shack is that their calculators tend to be less expensive than Casio.  



Sources:


"Electronic Calculators"  epocalc.net  Last Updated April 25, 2013.  http://www.epocalc.net/pages/mes_calcs_03.htm   Retrieved December 12, 2020.


Casio fx-650 Operation Manual



Eddie


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


Sunday, June 7, 2020

Retro Review: Radio Shack EC-4024

Retro Review: Radio Shack EC-4024

Radio Shack EC-4024 Calculator


Quick Facts:

Model:  EC-4024
Company:  Radio Shack
Equivalent of:  Casio fx-50F
Type:  Scientific 
Years:  approximately 1987 - 1995
Display:  10 digits
Batteries:  Solar 
Logic:  Algebraic (AOS)

Memory:
Registers:  7 
Constants:  9
Pre-Programmed Formulas: 23
Programming Steps: 29 between 2 slots

Features:  A Little Bit of Almost Everything

The EC-4024 has the following modes:

Mode 0:  Compute  (Main mode)
Mode 1:  Base Mode  (can be used in programs)
Mode 2:  Linear Regression (y = A + Bx) (can be used in programs)
Mode 3:  Single Deviation (one variable stats) (can be used in programs)
Mode 4:  Degrees Angle Mode
Mode 5:  Radians Angle Mode
Mode 6:  Gradians Angle Mode

Modes 7, 8, and 9:  Fixed, Scientific, and Normal (standard) display modes, respectively.

Mode . (decimal point) sets the EC-4024 in run mode while Mode EXP sets the EC-4024 in program writing mode.

The calculator handles fractions and converts results between fractions and decimal equivalents.

The base mode has the traditional four bases (binary, octal, decimal, hexadecimal integers) with Boolean algebra (OR, AND, NOT, XOR, NXOR, NEG).  

Equivalents

The Radio Shack EC-4024 is the equivalent of the Casio fx-50F calculator from the late 1980s.   There is a calculator similar to them both, which is a Casio fx-10F, however the fx-10F has an angled body and lacks the scientific constants.   

Constants

Outside of the statistics mode, the shift keys of the 1 through 9 keys holds the following constants that can be recalled (1978 Japan Industrial Standard, JIS Z-8202-1978) :

1:  C: Speed of Light:  299792458 m/s
2:  h:  Plank Constant: 6.626176 * 10^-34 J s
3:  G:  Universal Gravitational Constant: 6.672 * 10^-11 N m^2 kg^2
4:  e:  Elementary Charge:  1.6021892 * 10^-19 C 
5:  me:  Electron Mass: 9.109534 * 10^-34 kg
6:  u:  Atomic Mass Unit:  1.66055655 * 10^-27 kg
7:  Na:  Avogadro Constant: 6.022045*10^23 / mol
8:  k:  Boltzmann Constant: 1.380662 * 10^-23 J/K
9:  Vm:  Molar Value of Ideal Gas at Standard Temperature and Pressure: 0.02241383 m^3/mol

What is neat about this is that the units are listed next the constant name.  Example:  C(ms^-1) is the shift function of the 1 key.

Statistics Variables

The following are the variables used in the statistics mode.  The functions for the y values, A, B, and r are available to LR mode only.  The left parenthesis key becomes the comma key, and the right parenthesis key is the predict key (LR mode only).  

Shift 1:  average of x values
Shift 2:  population deviation of x values
Shift 3:  sample deviation of x values
Shift 4:  averages of y values
Shift 5:  population deviation of y values
Shift 6:  sample deviation of y values
Shift 7:  A:  intercept
Shift 8:  B:  slope
Shift 9:  r:   correlation
Kout 1:  Σx^2
Kout 2:  Σx
Kout 3:  n (number of data points)
Kout 4:  Σy^2
Kout 5:  Σy
Kout 6:  Σxy

Formulas

There are 23 formulas.  The character that is on the far left side of the screen prompts for the variable to be entered.   For a full list of formulas, please see the link below to download the manual.  The fx-10F manual also applies to both fx-50F and EC-4024 as well.   

Enter required values with the [RUN] key, not the [ = ] key. 

Programming

The program capacity is only 29 steps.  Thankfully, most of the shift/Kout/Mode key combinations are merged keystrokes.  For example, [MODE] [ 5 ] takes only one step, and so does [SHIFT] [ 1/x ] (for x!).  However, each press of a number key in terms of entering numbers takes a step, so to enter a numerical constant for example, 400, takes three steps ([ 4 ], [ 0 ], [ 0 ]).  With only 29 steps, economy and storing constants prior to running programs is key.  

There are a few programming tools:

x>0:  Tests whether the value in the display is positive.  If so, the program loops back to the first step in the program.

x≤M:  Tests whether the value in the display is less than or equal to the value in the M register.  If the test is true, the program loops back to the first step in the program.

ENT (the [RUN] key in write mode):  Prompts the user to enter a value.  You'll need to have a valid number entered to continue programming.

HLT (the [SHIFT] [RUN] key in write mode): Stops the calculator to show the display mid-program.  Press the [RUN] key to continue.

ALPHA (the [FMLA] key in write mode):  Prompts the user to enter a value with a prompt "A?" through "F?".   The values are stored here are stored in registers 1 through 6, respectively.

A → K1, B → K2, C → K3, D → K4, E → K5, F → K6

Sample Program:  Use the formula below to estimate gravity:

g = G * mass / radius^2 = G * A / B^2

G is the Gravitational Constant (use [SHIFT] [ 3 ])
Let A = mass
Let B = radius


Program:  P1/P2 (you designate which program area to use)

SHIFT  3    (G)
×
FMLA  a b/c  (A?)
÷
FMLA  ° ' ''  (B?)
(enter a non-zero number here, like 1)
x^2
=

Test:  Press P1/P2  

Enter 5.96E24 at the A? prompt
Enter 6.38E6 at the B? prompt

Result:  9.76924362

All programming is done blind.  The only edit function is that during programming, pressing [SHIFT] [ C ] erases the last step.

The program space can be erased by entering a number program from scratch or prior to choosing which program slot, pressing [SHIFT] [ C ].  A little confusing.  

Verdict

The keyboard is very clean and organized.  Despite the lack of steps, the EC-4024 is a great calculator and programmable scientific calculators that run on solar power are far and few between.  I was lucky to find the EC-4024 because usually fx-10F, fx-50F, and EC-4024 are either not available or command a medium to high price.

Radio Shack EC-4024 close up: Screen showing a calculation in progress


Download the manual here:  

Source:
Casio "fx-10F/fx-50F Scientific Calculator" manual.   


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. 

Sunday, December 15, 2019

Tandy PC-4: What Can You Do With 1,568 Bytes in Basic?

Tandy PC-4: What Can You Do With 1,568 Bytes in Basic?

On December 1, 2019, reviewed the Tandy Pocket Computer PC-4.  (link here:  http://edspi31415.blogspot.com/2019/12/retro-review-tandy-pc-4-pocket-computer.html ).  The PC-4 comes with 544 bytes, but with an OR-1 RAM card, the memory goes up to 1,568 bytes. 

How much can I fit in 1,568 bytes?  Here's an attempt. 

P0:  Factorial

10 PRINT "N!"
20 INPUT "N",N
25 F=0
30 FOR I=1 TO N
40 F= LOG(I)+F
50 NEXT I
60 E= INT(F)
70 R=10↑( FRAC(F))
80 PRINT N;"! ="
90 PRINT R;"*10↑";E

P1:  Quadratic Equation

100 PRINT "AX↑2+BX+C=0"
105 INPUT "A",A
110 INPUT "B",B
115 INPUT "C",C
120 D=B↑2-4*A*C
125 S=-B/(2*A)
130 T=SQR( ABS(D))/(2*A)
135 IF D<0 300="" font="" then="">
200 R=S-T
205 T=S+T
210 S=R
215 PRINT "X1 =";S
220 PRINT "X2 =";T
225 GOTO 400
300 PRINT "REAL: ";S
305 PRINT "IMAG: ";T
400 PRINT "AGAIN?"
405 INPUT "0 FOR NO ",R
410 IF R≠0 THEN 105
415 END

P2:  Horizontal Curve

10 MODE 4     (Degrees Mode)
15 INPUT "TAN. LNGTH",T    (tangent length)
20 INPUT "ANGLE",D
25 R=T/ TAN(D/2)
30 L=R*D*π/180
35 C=2*R* SIN(D/2)
40 PRINT "R =";R     (radius)
45 PRINT "L=";L     (arc length)
50 PRINT "C =";C    (chord length)
55 END

P3:  Amortizing a Monthly Loan (Annual Principal and Interest)

50 SET F2  (Fix 2)
100 INPUT "LOAN",L
105 INPUT "RATE",I
110 I=I/1200
115 INPUT "YEARS",T
120 N=12*T
125 U=(1-(1+I)↑(-N))/I
130 P= RND(L/U,-2)   (note the -2 in the round command)
135 PRINT "PMT: $";P
140 B=L
200 FOR Y=1 TO T
201 S=0
202 C=0
205 FOR K=1 TO 12
210 E= RND(B*I,-2)
215 S=S+E
220 A=P-E
225 C=C+A
230 B=B-A
235 NEXT K
240 PRINT "YEAR: ";Y
245 PRINT "INT= $";S
250 PRINT "PRN= $";C
255 PRINT "BAL= $";B
260 NEXT Y
270 PRINT "LAST= ";P+B   (last payment)
275 SET N   (floating decimal)
280 END

P4:  Linear Regression, Y=A+BX with correlation, R

100 VAC    (clear variables A-Z)
200 N=N+1   (N: counter)
205 PRINT "POINT ";N
210 PRINT "X",X
215 PRINT "Y",Y
220 C=C+X:F=F+X↑2
230 D=D+Y:G=G+Y↑2
240 E=E+X*Y
245 INPUT "DONE? NO=0 ",Z
250 IF Z=0 THEN 200
300 H = SQR((F-C↑2/N)/N)
305 I= SQR((G-D↑2/N)/N)
310 B=((N*E-C*D)/(N*F-C↑2))
315 A=(D-B*C)/N:R=B*H/I
325 PRINT "SLP=";B
330 PRINT "ITC=";A
335 PRINT "CORR=";R
340 END

P5:  Snell's Law

10 MODE 4      (degrees mode)
15 INPUT "N1",M    (index of refraction - 1st medium)
20 INPUT "INCIDENCE",T   (angle of incidence)
25 INPUT "N2",N     (index of refraction - 2nd medium)
30 H = ASN(M/N* SIN(T))
35 R= SIN(T-H)↑2/ SIN(T+H)↑2
40 R=1/2*R*100
50 PRINT "REFRACTION=";H;"°"
55 PRINT "REFLECT=";R;"%"
60 END

°  (degree character):  EXT mode, SHIFT C
% (percent character):  EXT mode, SHIFT Q

P6:  Rectangular/Polar Conversions

100 MODE 4
105 INPUT "1.P>R 2.R>P",C
110 IF C=1 THEN 200
115 IF C=2 THEN 300
120 GOTO 105
200 INPUT "RADIUS",R
205 INPUT "ANGLE,"T
210 X=R* COS(T)
215 Y=R* SIN(T)
220 PRINT "X=";X
225 PRINT "Y=";Y
230 GOTO 900
300 INPUT "X",X
305 INPUT "Y",Y
310 R= SQR(X↑2+Y↑2)
315 IF X>0 THEN 500
320 IF X<0 600="" font="" then="">
325 IF X=0 THEN 700
500 IF Y≥0 THEN T= ATN(Y/X)
505 IF Y<0 t="ATN(Y/X)+360</font" then="">
510 GOTO 800
600 IF Y≥0 THEN T= ATN(Y/ ABS(X))+180
605 IF Y<0 t="ATN(Y/X)+180</font" then="">
610 GOTO 800
700 IF Y>0 THEN T=90
705 IF Y=0 THEN T=0
710 IF Y<0 t="270</font" then="">
715 GOTO 800
800 PRINT "RADIUS=";R
805 PRINT "ANGLE=";T
900 PRINT "AGAIN (NO=0)",C
905 IF C≠0 THEN 105
910 END

P7:  Area and Circumference on a Circle

10 INPUT "R",R
25 PRINT "C=";2*π*R
35 PRINT "A=";π*R↑2

Remaining:  8 bytes

Eddie

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

Thursday, June 23, 2016

Programming with the Radio Shack EC-4004

Programming with the Radio Shack EC-4004

(Another milestone: this is blog #600! I can't thank you all enough!) 

To see my retro review of this calculator I did two years ago, click here:




The Radio Shack EC-4004 calculator’s programming mode is AOS (algebraic operating system).  Rarely you see a calculator with AOS any more (think the Casio fx-260 and Texas Instruments TI-30A), but it used to be prominent operating system with RPN.   In AOS, the uniary functions (trigonometric, logarithmic, factorial, for example) are entered after you enter the number.  Hence:  14 [ln] calculates ln(14) ≈ 2.639057329.

The storage of the EC-4004 is a mere 38 steps which can be distributed into two program slots.  That is not a lot.  Furthermore, if you enter numeric constants, each digit counts a step.  Remember, the display does NOT display the key, so be careful when entering programs.  There are a few program commands:

RTN ([INV] [ 9 ]):  Returns program control the first step (beginning). 

X ≤ M ([INV] [ 8 ]):  If the display is less than or equal to M, return to the first step.  Otherwise, go to the next step.

X > 0 ([INV] [ 7 ]): If the display is greater than 0, return to the first step.  Otherwise, go to the next step.

ENT ([RUN] in learn mode):  Prompt for a number.  The next step is to put a “placeholder” number as long as it will be valid in calculations.  Since each digit counts as a step, try to use placeholder numbers like 0, 1, or 2.  I’m not sure if the placeholder number is merged with ENT.  You can instead, use Kin or Min to store the entry in memory.

HLT ([INV] [RUN]): Halts the program to display immediate results.  Think of it as the PAUSE command.

X<>K ([INV] [Kout]): Exchange with a memory register.  The EC-4004 has six memory registers, plus one additional independent memory register (M).

[Kin] and [Kout] is your store and recall, respectively.

On to the list of sample programs!  Anything after double slashes (\\) is a comment. The hashtag (#) stands for placeholder number.

Area of a Regular Polygon

Formula:  (n*s^2)/(4*tan(180°/n)), n = number of sides, s = side length

MODE,  4 \\ sets Degree mode
ENT \\ prompt for n
#  \\ enter a placeholder number
Min \\ store in M
*
ENT \\ prompt for s
#  \\ placeholder number
X^2
÷
(
4
*
(
180
÷
MR \\ recall n
)
TAN
)
=

Test 1:  n = 6, s = 2.6,  result 17.56299519
Test 2:  n = 10, s = 3.87, result 115.2353964

 Sum of f(x)

In particular, Σ x^2 + 1 from x = 1 to M.  M is the upper limit.  You can adapt this to include any f(x), but remember you’ll only have 26 steps to work with for f(x).  Your variable for f(x) is register 1 (use [Kout], 1)

Before running, store the upper limit minus 1 in M, 0 in both registers 1 and 2.  (0, [ Kin ], 1; [ Kin ], 2).  Register 1 is your counter, register 2 is your sum.   In Summary:

M = upper limit – 1, Register 1 = 0, Register 2 = 0

Kout 1  \\ recall register 1 and add one
+
1
=
Kin 1
X^2 \\ f(x) starts here
+
1
=   \\ end f(x) with equals
+   \\ add result to register 2
Kout 2
=
Kin 2
Kout 1 \\ put register 1 in the display
X≤M   \\ is X≤M? If so, go to the beginning
Kout 2 \\ display sum

Test 1:  If the upper limit is 5, store 4 in M.  Result:  60
Test 2:  If the upper limit is 8, store 7 in M.  Result:  212

Payment of a Loan (with no balloon)

Formula:  PMT = PV / ((1 – (1 + r)^-n)/r)

Store the following amounts before running:
K1 = PV, present value or loan amount
K2 = n, number of payments.  Example: For 30 years for monthly payments, store 360 in K2.
K3 = r, periodic interest rate as a decimal.  Example: For 6% compounded monthly, enter 0.06/12 in K3.


Kout 1 \\ recall PV
÷
(
(   
1
-
(
1
+
Kout 3  \\ recall r
)
X^Y
Kout 2 \\ recall n
+/-
)
÷
Kout 3
)
=


Test 1:  K1 = 200,000, K2 = 360, K3 = 0.055/12.  Result:  1,135.58
Test 2:  K1 = 234,000, K2 = 360, K3 = 0.038/12.  Result:  1,090.34

Easy Traverse Calculation

Calculates the new point knowing the original coordinates, direction, and angle of travel.  The angle 0° comes from due east and rotates counterclockwise (see diagram below). 



Store before hand:
K1 = original coordinate easting (E, x)
K2 = original coordinate northing (N, y)

Distance is stored in K3 and angle is stored K4.  At the completion of the program, the new coordinates are stored in K1 and K2, respectively, to allow chain calculations.

MODE 4 \\ degrees mode
Kout 1
+
ENT \\ prompt for distance
# \\ placeholder number
Kin 3
*
ENT \\ prompt for angle
# \\ placeholder number
Kin 4
COS
=
Kin 1
HLT \\ display new easting coordinate
Kout 2
+
Kout 3
*
Kout 4
SIN
=
Kin 2 \\ display new northing coordinate


Test:  E0 = 10,000,  N0 = 10,000
Given distance = 110, angle = 126°,  E1 ≈ 9,935.343, N1 ≈ 10,088.992
Continuing,
Given distance = 150, angle = 30°, E2 ≈ 10,065.247, N2 ≈ 10,163.992

Measuring Dew Point (in degrees Celsuis)

W = 237.3 * V/(1 – V)
V = (ln H + (17.27*C)/(237.3+C))/17.27

Where:
H = relative humidity, store as a decimal (Example:  for 55.8% store 0.558 in K1)
C = temperature in degrees Celsius

Store before hand:  H in register 1 (K1), C in register 2 (K2). 

This program illustrates a perfect example of the effect of the limited programming space.  During the calculation, 17.27 and 237.3 are stored in K3 and K4, respectively to save program space.  And believe me, we’ll need every bit of it.

Kout 1 \\ H
LN
+
17.27
Kin 3
*
Kout 2 \\ C
÷
(
237.3
Kin 4
+
Kout 2
)
=
÷
Kout 3
Min // store V in M
*
Kout 4
÷
(
1
-
MR
)
=

Remember K1 = H, K2 = C
Test 1:  H = 51% (0.51), C = 27°C, Result ≈ 16.0003°C
Test 2:  H = 46% (0.46), C = 85°F = 29.44444444°C, Result ≈ 16.6110°C

Chebyshev Polynomial of the First Kind, for -1<x<1

Formula for -1<x<1:  T_n(x) = cos(n * acos x)   (source: Wolfram, http://mathworld.wolfram.com/ChebyshevPolynomialoftheFirstKind.html, see line 44)

ENT \\ prompt for x
#  \\ placeholder number
COSˉ¹
*
ENT \\ prompt for n
#  \\ placeholder number
=
COS

Test 1:  T_2(0.25) = -0.875  (x = 0.25, n = 2)
Test 2:  T_3(-0.68) = 0.782272  (x = -0.68, n = 3)

That is a small collection of programs for the EC-4004.  If you want me to do more, let me know.  Until then, have a great day everyone and stay safe!

Eddie

This blog is property of Edward Shore, 2016



Sunday, September 14, 2014

Retro: Radio Shack EC-4004

I recently purchased two calculators from https://www.devicegoround.com:

* Casio fx-115D SUPER-FX (talked about this in a previous post) and
* Radio Shack EC-4004

The EC-4004 is similar to the Casio fx-3600P, both manufactured beginning in 1981. The EC-4004 is battery powered taking two smaller-sized button batteries. (Currently it is running on LR-1130 and Radio Shack carries equivalent sized batteries.)


In addition to the independent memory (M), the EC-4004 has six additional memory registers. The Kin key stores the number into one of the six registers, which the Kout key is the recall key. In spite of its manual not mentioning this, the EC-4004 supports storage arithmetic.

Storage Arithmetic:

Let # represents registers 1 through 6:

Add x to #: x [ Kin ] [ + ] #
Subtract x from #: x [ Kin ] [ - ] #
Multiply x to #: x [ Kin ] [ × ] #
Divide #/x: x [ Kin ] [ ÷ ] #


Features:

* Single Variable Statistics and Linear Regression

* Programming including integrals

* Fractions. Kind of limited, you can enter fractions in operations and get answers in fractions (simplest form). Once a number in decimal form is entered, the result will be in decimal form. No converting from fractions to decimal feature is present, either.

* ENG and <-ENG key. These represent a number in different ways:

ENG: decreases the exponent part by 10^3, multiplies the mantissa by 1000
<-ENG: increases the exponent part by 10^3, divides the mantissa by 1000

Example: 23400 [ = ]
[ ENG ] (23.4 x 10^3)
[ ENG ] (23400 x 10^0)
[ ENG ] (23400000 x 10^-3)

23400 [ = ]
[ <-ENG ] (0.0234 x 10^6)
[ <-ENG ] (0.0000234 x 10^9)
[ <-ENG ] (0.0000000234 x 10^12)

Operating System

The operating system is AOS (Algebraic Operating System). I realize that AOS is a Texas Instruments term, however, it applies here. Simply put, any one-argument function (e^x, trig, log) are pressed after the number is entered. Example:

ln 2431.74 is calculated as 2431.74 [ ln ] (Result: 7.796362329)


Programming

Learn Mode: Mode 0, press [ P1 ] or [ INV ] [ P1 ] for P2.
Run Mode: Mode Decimal Point ( . ). Execute programs by pressing [ P1 ] or [ INV ] [ P1 ] for P2.

Memory: 38 steps, fully-merged
Number of Program Slots: 2

Not a lot of room, but it is handy for storing quick calculations. You have to be real precise in entering keystrokes because there are no editing features. We do have some tools in programming mode:

[ RUN ] (ENT): Acts as a stop, which will prompt the user to enter numbers. A program stopped midway has an ENT indicator. In run mode, the [ RUN ] continues program execution.

You can use [ RUN ] in programming mode prior to entering number (acts a placeholder). The number itself will not be stored as a step. This is important as programs may not run correctly without this step. Make sure that the placeholder numbers used make the calculations valid for each step!

x > 0 ( [ INV ] [ 7 ] ): Tests the number in the display. If the number is greater than zero, control goes back to the beginning. Execution stops.

x ≤ M ( [ INV ] [ 8 ] ): Tests whether the number in the display is equal to or less than what is stored in the independent Memory M. If the test is true, return to the beginning of the program. Execution stops.

RTN ( [ INV ] [ 9 ] ): Stops execution and returns to the beginning of the program.

[ INV ] [ MODE ]: is the clear program command. This is extremely important to do before starting any new problems.

Mode 1 is the Integral mode. Use P1 or P2 as the function. According to the manual, start going into Learn mode. Begin the program by pressing (number if needed) [ INV ] [ MR ] (Min). Use [ MR ] for the independent variable. End the function with [ = ]. Go into Mode 1, press P1 or P2, then lower limit, [ RUN ], upper limit, [ RUN ]. The EC-4004 stores the following in its registers:

1: lower limit
2: upper limit
3: subdivisions (store by INV RUN)
4: f(lower limit)
5: f(upper limit)
6: numeric integral

Sample Programs

Area of an Ellipse

A = π * a * b

Mode 0, P1: I am using 1 as placeholders.
ENT ( [ RUN ] key) 1
[ × ]
ENT 1
[ × ]
[EXP] key for π
[ = ]
RTN

Run P1: enter a, press [ RUN ], enter b, press [ RUN ], get the area.
Press [ AC ] to leave execution mode.

Examples:
a = 6, b = 3, Area = 56.54866776
a = 3, b = 8.1, Area = 76.340707148

Discriminant Tester

Here is a program where the placeholder numbers are important - all steps must count as valid.

Program: Calculate b^2 - 4ac. If positive, calculate its square root. If not, return to the beginning of the program and display 0.

Use the x ≤ M test.

I used P2 for this example:
0
[ INV ] [ MR ] (Min)
ENT 8
[ INV ] [ +/- ] x^2
[ - ]
4
[ × ]
ENT 3
[ × ]
ENT -2
[ = ]
[ INV ] [ RUN ] (HLT)
[ INV ] [ 8 ] x≤M (x ≤ 0?)
[ INV ] [ ( ] ( √ )


Note the order of entry: b, a, c

Examples:
b = 8, a = 3, c = -2. Results: 88, 9.38083152.
b = 1, a = 1, c = 7. Results: -27, 0. Press [ AC ]

Integral: an example

Calculate ∫ x * e^x dx from x =1 to x = 2. Use P1.

Keystrokes:

Enter the function:
[ MODE ] [ 0 ] (LRN)
[ P1 ]
[ INV ] [ MR ] (Min)
[ MR ]
[ × ]
[ MR ]
[ INV ] [ ln ] (e^x)
[ = ]

Enter integration mode:
[ MODE ] [ 1 ] ( ∫dx is displayed)
[ P1 ]
1 [ RUN ] 2 [ RUN ]

Approximate Result: 7.38906 x 10^0 (7.38906)

Source: "Programmable EC-4004 Scientific Calculator Owner's Manual" Radio Shack, 1981.




This may be my last blog entry before I head to Reno, NV, next weekend. I am going to the HHUC (HP Handhelds User Community) 2014 conference, http://hhuc.us/2014/index.htm . I plan to blog about some of the highlights of the conference in a future blog post. Until then, take care and thanks for your subscriptions, comments, and questions.

Eddie


This blog is property of Edward Shore. 2014

RPN HP 12C: Fibonacci and Lucas Sequences

  RPN HP 12C: Fibonacci and Lucas Sequences Golden Ratio, Formulas, and Sequences Let φ be the Golden Ratio: φ = (1 + √5) ÷ 2...