Showing posts with label Sharp EL-512. Show all posts
Showing posts with label Sharp EL-512. Show all posts

Saturday, April 19, 2025

Sharp EL-512: Lorentz Factor, Table, Geometric Mean, 3D Vectors

Sharp EL-512: Lorentz Factor, Table, Geometric Mean, 3D Vectors


Blog entries now made in Windows 11. 


Two Sharp calculators. Left: EL-510RN (current) and EL-512 from 1984
Two Sharp calculators. Left: EL-510RN (current) and EL-512 from 1984


Today’s blog will feature the classic Sharp EL-512 from the 1980s. The Sharp EL-512 is a keystroke programming calculator. The EL-512 has four program slots with a memory of 128 programming steps. All programs on the EL-512 are “entered in the blind” and must be entered in full each time.


Program commands:


[ x ]: prompt for a number. When editing a program, we will need to enter a valid number to continue the program.

LOOK: Stops the program and shows the immediate results.


Memory and recall:


STO: Stores the number in the display to memory register 1-9

x → M: Store the number in the display to memory M

M+: add to memory M

RM: recall memory M

Kn:

After a clear or an arithmetic key, just recalls the contents of memory register 1-9.

After entering a number, multiplies the number in the display by the contents of the memory register 1-9 (like RCL× K#)


To recall a register without alteration, it is always safe to multiply the register by 1:

1 Kn #


My review from 2020:

https://edspi31415.blogspot.com/2020/09/retro-review-sharp-el-512-scientific.html



Lorenz Factor


LF = (√(1-v²/c²))⁻¹

c = Speed of light in a vacuum = 299,792,452 m/s


Program:

÷

299792458

+/-

1

=

1/x


Examples:

v = 2.1E8 (2.1 * 10^8) m/s; Result: 1.401212716

v = 2,456,000 m/s; Result: 1.000033559

v = 1,000,000 m/s; Result: 1.060752


Table: Quadratic Polynomial


Generate a table using the function:


f(x) = K3 × x² + K2 × x + K1

where x increases by 1.


Before running the program, store the following:


x² coefficient: K3

x coefficient: K2

constant coefficient: K1

beginning value: Subtract 1, then store the starting value in M. For example, if we want to start with x = 1, store 0 in M.


Program:

1

M+

RM

Kn 3

+

RM

Kn 2

+

1

Kn 1

=


Example:

f(x) = 0.3 × x² + 4 × x – 2.01

Start with x = 1


0.3 STO 3

4 STO 2

-2.01 STO 1

1-1 = 0 x→M

Run the program:


f(1) = 2.29

f(2) = 7.19

f(3) = 12.69

f(4) = 18.79

f(5) = 25.49



Geometric Mean


This program calculates the geometric mean (Π(x_i)^(1/n)) by the formula:

GM = 1/n × Σ(ln x_i) (x≠0)


This will require two program slots, so I’m using program slots 1: and 2:.


Memory registers used:

K1 = Σ(ln x_i)

M = n


Steps:

1. Store 0 to memory M (x→M) and memory 1 (STO 1)

2. Enter x_i and press 1:. Continue until you enter all the data. The number of data points is shown.

3. Press 2: to get the geometric mean.



Program 1:

ENT (enter a valid number)

LN

+

Kn 1

=

STO 1

1

M+

RM


Program 2:

RM

1/x

Kn 1

e^x


Example:

Find the geometric mean of 4, 9, 3, 7, 2, 8, 8, 5, and 6. 9 data points.


0 x→M, 0 STO 1

4 [1:], 9 [1:], 3 [1:], 7 [1:], 2 [1:], 8 [1:], 8 [1:], 5 [1:], 6 [1:]

[2:]

Result (geometric mean): 5.2254102087



3D Vectors: Norm of Two Vectors, Dot Product, Angle between Vectors


For this, I presume that the calculator is set to the desired angle setting (DRG). For the example, I have the EL-512 set to degree mode.


Store the vectors as follows:

First vector: [ register 1, register 2, register 3 ]

Second vector: [ register 4, register 5, register 6 ]


The program returns four values:

Norm of the first vector, stored in register 7

Norm of the second vector, stored in register 8

Dot product, stored in registered in M

Angle between two vectors, stored in register 9


Program:

1

Kn 1

1

Kn 2

→rθ

1

Kn 3

→rθ

STO 7

LOOK


1

Kn 4

1

Kn 5

→rθ

1

Kn 6

→rθ

STO 8

LOOK


1

Kn 1

Kn 4

x→M

1

Kn 2

Kn 5

M+

1

Kn 3

Kn 6

M+

RM

LOOK


÷

(

1

Kn 7

Kn 8

)

=

cos⁻¹

STO 9


Example:

First vector: [ 70, 64, 36 ]

Second vector: [ 55, 18, 94 ]

Results:

Norm of first vector: 101.4494948

Norm of second vector: 110.3856875

Dot product: 8386

Angle: 41.50953299°


Hope you enjoyed this trip down memory lane. Did you have or do you have a Sharp EL-512 or any similar calculator?


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.

Sunday, September 6, 2020

Retro Review: Sharp EL-512 Scientific Calculator



Retro Review: Sharp EL-512 Scientific Calculator


Just The Facts:

Model:  EL-512
Company: Sharp
Type:  Keystroke Programmable 
Display:  10 digits, 8 digits with 2 digit exponents
Battery:  Battery: 2 x LR 44
Logic: AOS
Memory Registers: 10; 9 with an M registers.   
Programming Memory: 128 steps

Years:  1984-1987

Basic Information:  

The manual can be found here:

Features

* Trigonometric, Hyperbolic, Logarithmic, and Exponential Functions
* Constant Arithmetic 
* Automatic Multiplication  
* Convert to Hexadecimal Integers
* Convert to Degrees-Minutes-Seconds
* Linear Regression 

Constant Arithmetic

Pressing the equals key after a completed arithmetic operation will put the EL-512 into automatic arithmetic mode. This works only for addition, subtraction, and multiplication.  



Keystrokes Interpretation Examples
A [ + ] B [ = ]
C [ = ]
D [ = ]
A + B
C + B
D + B
150 [ + ] 80 [ = ] 230
76 [ = ] 156
52 [+/-] [ = ] 28
A [ - ] B [ = ]
C [ = ]
D [ = ]
A - B
C - B
D - B
150 [ - ] 80 [ = ] 70
76 [ = ] -4
52 [+/-] [ = ] -132
A [ × ] B [ = ]
C [ = ]
D [ = ]
A × B
C × B
D × B
20 [ × ] 4 [ = ] 80
5 [ = ] 100
0.25 [ = ] 5

Automatic Multiplication

Automatic (implied) multiplication occur in several areas:

The Famous A / BC Problem:

A [ ÷ ] B [ ( ] C [ ) ] [ = ]   returns A / (B * C)
Example:  9 [ ÷ ] 3 [ ( ] 2 [ ) ] [ = ]  returns 1.5

A [ ÷ ] B [ × ] C [ = ]   returns A / B * C
Example:  9 [ ÷ ] 3 [ × ] 2 [ = ] returns 6
.
Multiply by π:

A [ π ] returns A * π automatically.  
Example:  5 [ π ] returns 15.70796327

Implied Multiplication with Stored Numbers

With a stored number in a number register Kn:
A [ Kn ] returns A * Kn automatically
Example:  11.5 [ 2ndF ] (STO) 1;   5 [ Kn ] 1 returns 57.5

This is a very neat shortcut in keystroke programming.  

Convert to Hexadecimal Integers

The sequence [ 2ndF ] ( →HEX ) converts the number to hexadecimal form and changes the EL-512 to Hexadecimal mode.  Enter the digits A - F, by pressing [ 2ndF ] [ 0 ], [ 2ndF ] [ 1 ], etc.   I like the placement of A - F since A = 10, B = 11, etc.   Pressing the equals key returns the EL-512 to Decimal mode.

Unfortunately no Boolean functions are offered.

Linear Regression 

The memory keys act as data point entry.  In this mode, the multiplication key is used to indicate frequency.  The linear regression line is y = a + bx, where a is the intercept and b is the slope.

Programming

The programming model for the EL-512 is algebraic keystroke, which the manual refers to as Multiple Formula Reserve.  Programs are entered "blindly" so make sure that you have the program written down before entering it.  

You will also need to enter the program as a test case.  

The program space is 128 steps between 4 program spaces.  Every time a new program is entered, the old program in that slot is automatically cleared.  The LRN indicator shows that the EL-512 is in learn mode.  

[ x ]:  Asks the user to enter number.  Prompt numbers start with 1 and increases by 1.  This does not affect any storage registers.  Numbers entered after the [ x ] during program do not count as steps.   In run mode, enter the number, then press [ COMP ].  

[ 2ndF ] (LOOK):  This allows the program to temporarily stop to show the displayed value.  Continue the program in run mode by pressing [COMP].  

[ 1: ], [ 2: ], [ 2ndF ] ( 3: ), [ 2ndF ] ( 4: ):  In run mode, these keys and key sequences runs the program slot.  

There are no loops, integer, fraction, sign functions, or comparisons. Hence this model's programming is strictly for formulas only.  

Sharp EL-512 Program:  Rating Microphones in dBm

dBm = 10 log ( (E^2) / (0.001 * Z)) - 6

E:  voltage, prompt [ 1 ] 
Z:  resistance (ohms), prompt [ 2 ]

Program:

[ x ] 
(enter E)
x^2
÷
0.001
÷
[ x ] 
(enter Z)
=
log 
×
10
-
=

Examples:

E = 40, Z = 80, Result:  37.01029996
E = 70, Z = 100, Result:  40.9019608

Source:
Davis, Don and Davis, Carolyn.  Sound System Engineering.  Howard W. Sams & Co. Inc:  Indianapolis.  1975  ISBN-10:  0-672-21156-4

Sharp EL-512 Program:  Heron's Formula

Area = √(S * (S - A) * (S - B) * (S - C)) where S = (A + B + C) / 2

A:  length of side A, prompt [ 1 ]
B:  length of side B, prompt [ 2 ]
C:  length of side C, prompt [ 3 ]

Program:

[ x ]
(enter A)
STO 1
+
[ x ] 
(enter B)
STO 2
+
[ x ] 
(enter C)
STO 3
=
÷
2
=
STO 4
×
Kn 4
Kn 1
)
×
(
Kn 4
-
Kn 2
×
(
Kn 4
-
Kn 3
=

Examples:
A = 15.6, B = 13.8 , C = 14.8;  Area: 93.29390923
A = 48, B = 42, C = 57; Area:  986.9860371

Verdict

I think the most unique feature to the EL-512 is the implied multiplication.   I wish the programming functions had integer and fraction functions and even some comparisons.  The calculator is small and compact and fits very nicely in the wallet.   The keys, even though they are small to me, are nice and responsive.  
 
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. 

Python – Earth’s Radius and Gravity in US Units

Python – Earth’s Radius and Gravity in US Units Introduction The following script, gravus2.py, estimates the Earth’s gravity i...