Showing posts with label Radio Shack EC-4004. Show all posts
Showing posts with label Radio Shack EC-4004. Show all posts

Sunday, July 8, 2018

Fun with the Radio Shack EC-4004

Fun with the Radio Shack EC-4004


Complex Number Multiplication

(a + bi) * (c + di) = (a*c – b*d) + (b*c + a*d)i

Store values in the following memory registers before running the program:

K1 = a
K2 = b
K3 = c
K4 = d

Output is stored in registers K5 (real part) and K6 (imaginary part).

Program:

Kout 1
*
Kout 3
-
Kout 2
*
Kout 4
=
Kin 5
HLT
Kout 2
*
Kout 3
+
Kout 1
*
Kout 4
=
Kin 6

Example:

(-8 + 3i)*(6 + 3i)   (K1 = -8, K2 = 3, K3 = 6, K4 = 3)

Result:  -57 – 6i (K5 = -57, K6 = -6)]

Product of Integers

The following program will between and b:  Product = a * (a + 1) * (a + 2) * … * b

P = Π n from n = a to b

Store values in the following memory registers before running the program:

K1 = a
M = b
K2 = 1 (store 1 in K2 each time)

Program:

Kout 1
Kin* 2
1
Kin+ 1
Kout 1
X ≤ M
Kout 2

Example:  Π n from n = 5 to 8:  P = 5 * 6 * 7 * 8

Store 5 in K1, 8 in M (Inv Min), 1 in K2. 

Heron’s Formula



The program calculates the area of the triangle.  Store the length of the sides in registers K1, K2, and K3.  The register K4 is used in the calculation and ultimately have the area.

K4 = (K1 + K2 + K3)/2

Area = (K4 * (K4 – K1) * (K4 – K2) * (K4 – K3))

Program:

Kout 1
Min
Kout 2
M+
Kout 3
M+
MR
÷
2
=
Min
Kin 4
MR
-
Kout 1
=
Kin* 4
MR
-
Kout 2
=
Kin* 4
MR
-
Kout 3
=
Kin* 4
Kout 4
Kin 4

Example:

K1 = 16.4, K2 = 13.8, K3 = 11.4

Area = 77.60164947

Catenaries



The program calculates the length of the wire in a catenary (2*s). 

Input:

K1 = Horizontal Tension
K2 = Weight of the wire (lb-ft, N, etc)
K3 = half of the distance between the poles

Program:

Kout 1
÷
Kout 2
*
(
Kout 2
*
Kout 3
÷
Kout 1
)
sinh
=
*
2
=

Example:

Input:

K1 (H) = 40N
K2 (weight) = 0.227 N
K3 (half distance between poles) = 32.6 m

Result: 65.5726 m

Source:  Chris M. Alley and Brenda M. Cornitius TI-36 Solar Guidebook Texas Instruments. 1985.

Mass Dragged on the Table by a Pulley



The program solves the following systems:

T – M1*a = μ*M1*g
T + M2*a = M2*g

Input:

K1 = mass 1 in kg
K2 = mass 2 in kg
K3 = friction of the table factor (μ)

Output:

K4 = acceleration (a) m/s^2
K5 = tension of the rope (N)

Tension is displayed first, then acceleration

SI units are assumed, where g = 9.80665 m/s^2 (Earth’s gravity constant)

Program:

9
.
8
0
6
6
5
Kin 4
*
(
Kout 2
Kin 5
-
Kout 1
Kin+ 5
*
Kout 3
)
=
÷
Kout 5
=
Kin 5
HLT
Kin- 4

Example:

K1 = 4.3 kg (mass 1)
K2 = 6.4 kg (mass 2)
K3 = 0.1 (friction μ)

Results:

T = 27.7445 N (tension, K5)
a = 5.47156 m/s^2 (acceleration, K4)

Eddie


All original content copyright, © 2011-2018.  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.  Please contact the author if you have questions.

Sunday, January 8, 2017

The Calculator Minimalist Programming Club

The Calculator Minimalist Programming Club


When you are in the mood to program only the quickest calculations and you don’t need all the bells and whistles, check out these vintage and modern calculators from minimalist programming club. In attempt to minimize the amount of words said, we’re just going to start.

Top: Radio Shack EC-4004, Casio fx-3600g, Casio fx-3650p; Bottom:  Radio Shack EC-4036, Texas Instruments TI-55 III, Active RPN app on my iPod Touch
A screen shot of the Active RPN app
Top Row:

Calculator
Radio Shack EC-4004
Casio fx-6300g
Casio fx-3650p
Type
Programmable
Graphing
Solar Programmable
Year Originated (approximate)
1981
1991
2013
Forensic Value
9.00015718
9.00015685
8.999998637
Batteries
LR 1130
2 CR 2032
1 LR 44 (backup)/Solar
Number of Storage Bytes
38
400
360
Number of Programming Spaces
2
10
4
Notes
Has six memory registers (Kin/Kout)

Linear Regression

Simple Loops (go back to step 1 if test fails)

RTN ends programs

“Blind” programming
26 Registers (A-Z)

Memory can be fragmented

Linear Regression

Can graph functions (y(x))

Base operations (BIN, DEC, OCT, HEX)

Loops: Isz, Dsz, Goto, Lbl, Jump

Fractions
7 Variables (A, B, C, D, X, Y, M)

6 Regressions (Linear, Logarithmic, Exponential, Power, Inverse, Quadratic)

Base operations (BIN, DEC, OCT, HEX)

Loops: Isz, Dsz, Goto, Lbl, Jump

Fractions, Integrals, Derivatives, Separate

Complex Mode (arithmetic, arg, abs, conjugate only)



Bottom Row:
Calculator
Radio Shack EC-4036
(also Citizen SRP-45)
Texas Instruments TI-55 III
Active RPN iOS App
Type
Programming
Programming
Programming
Year Originated (approximate)
1991 (Citizen)
1986
2010
Forensic Value
9.00001562
9.1146406
9.000417
Batteries
2 RS 357A
2 A76
N/A
Number of Storage Bytes
40
56* 
Partitioned with memory registers
80
Number of Programming Spaces
1
1
4
Notes
“Blind” programming

Integer function - not (see below) (program only)

Halt (Pause, R/S)
“Blind” programming but back and forward step are available

Integer, Fraction, Sign, Absolute value functions

Linear Regression

Combinations/Permutations require a n.rrr format

Integration (must have 3 memory registers, max of 40 programming steps)
Programs can be edited via text codes (key numbers)

Music/beeps can be turned on

No statistics

Entire four-level stack is shown at once

On the EC-4036, it turns out that  [ x ] is NOT the integer function.  [ x ] acts like a input prompt.  Programming with [ x ] gives a prompt [ n ].    Also, [HALT] just halts the calculator to show what is on the display.  Source:  Citizen SR145N manual, which is very similar to the EC-4036.  

Forensic Value =  asin( acos( atan( tan( cos( sin( 9°))) )))
This test is common.

“Blind” programming:  You don’t see an indicator that your step has been accepted.  In the case of the EC-4004 and EC-4036, there is no editing. 

Thanks to Jose Mesquita from the MoHPC Calculator forum for posting on the Citizen SRP-45, an equivalent of the Radio Shack EC-4036.  Link: http://www.hpmuseum.org/forum/thread-6200-post-66474.html#pid66474


There are the first (and only?) inductees to the Calculator Minimalist Programming Club. 

Have a great day, and may your troubles be minimized,

Eddie

This blog is property of Edward Shore, 2017.

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...