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

Saturday, September 19, 2026

Sharp EL-5200/EL-9000 AER II Program Collection – September 2026

Sharp EL-5200/EL-9000 AER II Program Collection – September 2026



For my review on the Sharp EL-5200 (also known as the Sharp EL-9000), check out this blog entry from 2024: https://edspi31415.blogspot.com/2024/04/spotlight-sharp-el-5200.html


The AER programming on Sharp is very unusual.


* Angle mode has to be set manually through the [ 2ndF ] [ FSE ] (DRG) key sequence.

* Similarly, the decimal settings have be set manually through the [ 2ndF ] [ FSE ] key sequence and setting number of decimal places through tab.

* In AER II, there are really only two ways to display messages. First, through the program title when cycling through the programs with the [ PRO ] key. Second by setting a result variable such as area=2×π×r². The display will show “area= (next line) result”.


Graphing Commands


Setting the graphing range:

RANGE xmin, xmax, xstep, ymin, ymax, ystep


Clearing the graph:

G.CL ([2ndF] [ ← ])


Plotting a point:

PLOT x, y

This may include expressions, the point must be in the graph area or an Error 2 occurs.


Drawing a line:

LINE x1, y1, x2, y2

The entire line must fine the graph area or an Error 2 occurs.


Plotting a function:

GRAPH f(X)


Auto Sizing the window (Y-range only):

AUTO

Placed before the DRAW command.


Draw and show the graph screen:

DRAW


Finally, how are loops done?

* Loops are only available on the main portion of the program, and not in the subroutines. I found this out the hard way.

* Use the Y (Yes) and N (No) results to enable the loop.

* There are only four comparisons: =, >, >=, and ≠


A sample syntax:


↳ (loop commands) (comparison) – Y ⇒ [ do if true ↰ ]

↳ (loop commands) (comparison) – N ⇒ [ do if false ↰ ]



All programs today are in AER II mode. Spaces are provided for readability.


Sharp EL-5200: Random Integers


Title: random integers

M: low=? high=? num=?

↳ num>0 -Y→[ INT (RND ×(high-low))+low,

num=num-1 ↰]


Keep on pressing [COMP] until a zero comes up, which signals the end of the list. (This assumes that low and high are both positive numbers.)


Example:


low=15, high=95, num=5

ans=41, 64, 78, 69, 17, 0





Sharp EL-5200: Work Sample Size, 95% Confidence



size = z² ÷ (%acc ÷ 100)² × (1 - #occ ÷ #obs) ÷ #obs × #occ

z: normal distribution value that indicates confidence level; for a 95% interval, z ≈ 1.9599

%acc: desired percent accuracy

#occ: number of occurrences (i.e. idle employees, targets not met, hours missed, etc.) in the preliminary sample

#obs: number of observances in the preliminary sample


Title: work sample size, with 95 percent confidence

M: size = 1.9599² ÷ (occ ÷ 100)² × (1 – occ ÷ obs) ÷ occ × obs ␣

size = INT size + 1,

rat = occ ÷ obs



The size is rounded up to the nearest integer.

rat: ratio of occurrences to observances



Examples:



Example 1:

acc: 10%, occ: 3, obs: 20.

Result: size: 2177, ratio: 0.15



Example 2:

acc: 5%, occ: 2, obs: 108

Result: size: 81,434, ratio: 0.018518519



Source:

Hewlett Packard. “Business Finance and Accounting: Step-by-Step Solutions for Your HP-17B, HP-19B, or HP-27S Calculator”. HP Part No. 00017-90020. Printed in Canada. Edition 3. Corvallis, OR. September 1991. pp. 97-98



Sharp EL-5200: Eigenvalue of a 2 x 2 Matrix



This calculates the eigenvalues of a 2 x 2 matrix, [ [ a, b ] [ c, d ] ] by the following sequence:



m = (a + d) ÷ 2

p = a * d – b * c

Eigenvalues

λ = m ± √(m² – p)



Title: eigen of [[a,b][c,d]] (real)

M: a=? b=? c=? d=?

m=(a+d)÷2 ␣

p=a×d-b×c ␣

m+√(m²-p),

m-√(m²-p)



Example:

[ [10, 8], [3, 6] ]

a=10, b=8, c=3, d=6

Result: 13.29150262, 2.708497378



Source:

3Blue1Brown. “A quick trick for computing eigenvalues | Chapter 15, Essence of linear algebra” YouTube video, posted May 7, 2021. https://www.youtube.com/watch?v=e50Bj7jn9IQ



The next three programs deal with graphics.



Sharp EL-5200: Graphing a Sine Wave



Graph of y = A × sin(B × x + C) given A, B, C. Angles are set to be in radians.



Title: graph A×sin(Bx+C). Set radians mode.

M: A=? B=? C=?

GRAPH A×SIN (B×X+C) AUTO DRAW



Sharp EL-5200: Graphing a Line



Draw a line between (a,b) and (c,d). The program determines the window by determining the maximum and minimum for two numbers:



max(x,y) = (x + y + abs(x – y)) ÷ 2

min(x,y) = (x + y – abs(x – y)) ÷ 2



The distance is displayed.



Title: draw a line between (a,b) and (c,d)

M: a=? b=? c=? d-?

dist=√((c-a)² + (d-b)²),

max=(a+c+ABS(a-c))÷2 ␣

mix=(a+c-ABS(a-c))÷2 ␣

may=(b+d+ABS(b-d))÷2 ␣

miy=(b+d-ABS(b-d))÷2 ␣

RANGE mix-1, max+1, 1, miy-1, may+1, 1 ␣

LINE a, b, c, d DRAW



Sharp EL-5200: Graphing a Rose



This program graphs the rose:

r = cos(5 * Θ) for 0 ≤ Θ ≤ π







Title: graph a rose, set rad mode

M: G.CL ␣ a=0 ␣

RANGE -1.2, 1.2, 0.2, -1.2, 1.2, 0.2 ␣

↳PLOT COS(5×a)×COS a, COS(5×a)×SIN a

DRAW a=a+π÷128 ␣

a>π – N → [ ↰ ]



Eddie


All original content copyright, © 2011-2026. 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, April 14, 2024

Spotlight: Sharp EL-5200

 Spotlight: Sharp EL-5200


As we come on the 13th (April 16) anniversary of this blog, I want to thank you. Blogging about mathematics and calculators is a joy in my life and I’m grateful for your support.



Today’s spotlight is about an early graphing calculator, which is a rare collector’s item today: the Sharp EL-5200, also known as the Sharp EL-9000.








Quick Facts



Model: EL-5200/EL-9000

Company: Sharp

Timeline: 1986 – late 1980s

Type: Graphing, Programmable

Memory: 5,120 bytes

Power: 2 x CR2032 batteries



Keyboard


There are excellent reviews and articles on the Sharp EL-5200/EL-9000, please check out the Sources section below.

The EL-5200 is a folding calculator which is housed in a wallet. On the left side, we have the scientific keys, the arrow keys, memory keys, and the numeric keypad. The keys are the normal calculator keys.

On the right side, there are the alphabetic keys and the utility keys. I think the key style on the right side is a membrane keyboard, but I am not sure.



The Four Main Modes



The four main modes of the Sharp EL-5200 are, which are listed in switch order:

STAT mode

COMP mode

AER II mode

AER I mode



AER II and AER I modes are programming mode, which is called the Algebraic Expression Reserve mode. The AER I mode is the classic AER mode while AER II is the newer version of programming mode.



The manual to the EL-9000 can be downloaded here: http://basic.hopto.org/basic/manual/Sharp%20EL-9000%20EN.pdf



STAT Mode

This is the calculator's statistics mode. Upon switching to this mode, we have the option of storing data points. Data points are stored in array S while basic statistics are stored in array Z. The basic statistics stored in array Z are:



Z[1] = n

Z[2] = Σx

Z[3] = Σx^2

Z[4] = Σxy

Z[5] = Σy

Z[6] = Σy^2



Be aware when you decide to store data, it takes up programming memory.

Three keys are remapped as follows:

[ RM ]: CD. Clear data. Erases a data point.

[ ⇒M ] (x, y): Adds a comma between the x point and y point.

[ M+ ] DATA: Adds a data point.



The statistic variables are access through the second function ([2ndF]) of the numeric keypad and arithmetic keys.



Linear regression is offered in the form of y = a + bx. The variable a is the y-intercept while the variable b is the slope.



Adding × n before pressing [ M+ ] {DATA} adds the frequency to the data point.



Graphs of statistical data are available, including histograms, linear regression lines, and scatter plots.



Fairly simple.



COMP MODE



This is our calculation mode. In addition to our regular scientific calculator, which operates in algebraic mode, there are other sub-modes included in COMP Mode.



Graphing




We can graph up to two functions at one time. The [ RANGE ] key allows to set the range parameters, while the [ AUTO ] key sets the zoom level automatically. The [DRAW] key draws the graph.



For example, to draw y(x) = x^2 + 5 using automatic zoom, key in [ GRAPH ] [ X ] [ x^2 ] [ + ] 5 [ AUTO ] [ DRAW ].



The screen takes up the entire left hand of the screen. The screen shows one coordinate at a time, X or Y. Switch between the two with the key sequence [ 2ndF ] [ ↑ ] {X<>Y}.



Matrices


The EL-5200 can store up to 26 matrices A-Z. Operations include determinant, inverse, transpose, and matrix arithmetic. We can get to the arrays at any time by pressing [ 2ndF] [↓].

In fact, the [ 2ndF ] [ ↓ ] toggles between the text (calculator), graphics, and data/array screen.

The [ 2ndF ] [ A ] {DIM} sequence can set the dimensions of a matrix.

In the data screen, we see two elements at one time.


Base Conversions


Integers can be converted between four bases: hexadecimal, binary, decimal, and octal. (bases 16, 2, 10, and 8, respectively) Not much more than arithmetic is offered.



Running Programs

Finally, COMP mode is where we run AER programs. Scroll through the programs with the [ PRO ] button. Start programs and enter data at the prompts by using the [ COMP ] key.


AER I MODE


AER I mode is the classic programming mode for Sharp programming calculators. This mode is meant for simple calculations. The [ f()=/? ] key puts the input form     f( )=. Enter the variables in between the parenthesis, and the variables will automatically be prompted. For example f(AB)= prompts for the variable A, then B. Only global variables (A – Z) are used. Implied multiplication is allowed. This mode is similar to the AER mode of EL-5100 from 1979.



Example: Circular Radius and Circumference

Title:

CIR.1

Code:

M: f( R ) = π × R^2 ⇒ A, 2 × π × R ⇒ C

(spaces are added for readability)


AER II MODE


AER II is the full programming mode. In this mode, we can use both global and local variables, with local variables being the default. Local variables include lower case letters and subscript numbers. Subscript numbers are entered by the sequence [ 2ndF ] [ number key ]. In this mode, the [ f()=/? ] key adds a question mark to the variable and creates a prompt. Unlike AER I, implied multiplication is not allowed.



Example: Graphing a Sine Wave

Title:

Graph A×sin(Bx+C). Set radians mode.

Code:

M: A = ? B = ? C = ? GRAPH A × SIN (B × X + C) AUTO DRAW

(spaces are added for readability)



There is no Radians mode command, so the user has to set Radians mode during program execution.


Common to Both Program Modes



M: This is the main loop.

, (comma): Displays the result of a calculation and pauses the execution. Press [ COMP ] to continue.

␣ (open space) : Finishes a calculation without stopping.

◣ (right triangle): Ends the current program or subroutine.

↳ ↰ : Loop markers

(comparison) -Y→[(do if true)] -N→[(do if false)]: If Then Else Structure.

[ 2ndF ] {SUB}: Creates a new subroutine. Switch between subroutines and the main loop by pressing [ 2ndF ] [ ↑ ] or [ 2ndF ] [ ↓ ].



To create a new program, go to either AER I or AER II mode, press [ COMP ], enter the title. The title is not limited to eight characters. Since we do not have string or string functions, include descriptive information and reminders in the title (see the example in AEI II Mode above).



I find the symbols taking a bit getting used to because we have symbols instead of the regular If-Then-Else-End structure, For-Next loop, Lbl-Goto structure, etc. AER can store complex formulas and best are for simple number crunching.



Overall Thoughts



I like the separate alphabetic keys, but the membrane keyboard calls for extra care when using those keys. The number of features of the EL-5200 are very invented and advanced for 1986. I wish the AER programs had line returns instead everything smashed together in wrap around lines, but it is more for readability. The calculator has a nice, compact form and is fun to work with.


In the future I will be posting AER programs for the EL-5200. It’s rarity makes the EL-5200/EL-9000 collectible.




Sources


Calculator Culture. “Sharp EL-9000 Graphing Calculator from 1986” November 27, 2023.

https://www.youtube.com/watch?v=cw7Gp2Qrmtk


Gelhaus, Matthew & Taia Gelahus. “Sharp EL-5200” gelahus.net. Last Updated December 21, 2023. http://www.gelhaus.net/cgi-bin/page.py?loc:8bit/+content:EL-5200.html Retrieved March 1, 2024.


Magyarra, Váltás “History and Programming of AER Calculators”. Milestone in the History of Calculators. Virtual Museum of Calculators. 2016. Retrieved March 25, 2024. http://www.arithmomuseum.com/szamologep.php?id=25&lang=en


Sharp Corporation. Sharp Scientific Calculator Super Scientific Model EL-9000 Operation Manual. 1986 http://basic.hopto.org/basic/manual/Sharp%20EL-9000%20EN.pdf

(website hosted by hopto.org) (this the same manual for the EL-5200)



Eddie


All original content copyright, © 2011-2024. 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: Drawing a Ring of Circles

Python: Drawing a Ring of Circles The goal: Draw a number of circles that revolve around the origin (0,0). The center of each circle i...