Sharp EL-5120

A Sharp EL-5120 scientific calculator

The Sharp EL-5120 is a scientific programmable calculator. It has about 1 KB of total RAM available to the user, and has 4 basic operational modes:

Main functions

Disadvantages

Sample programs

Please note that the actual notation might be different, as some special EL-5120 characters cannot be directly typed on a PC, e.g. the square root and fraction operator:

 Hello world:

 HELLO: REAL
 LABEL 10
 PRINT"HELLO WORLD
 GOTO 10

 Solver of second grade equations:

 GRADE2:REAL
 INPUT A
 INPUT B
 INPUT C
 D=B²-4AC
 IF D<0 GOTO ERR
 X=(-B-sqrt(D))/(2A)
 Y=(-B+sqrt(D))/(2A)
 PRINT X
 PRINT Y
 GOTO E
 LABEL ERR
 PRINT D
 LABEL E
 END

 Calculate ICE current and VCE voltage for a BJT transistor, 
 using the 4-resistor polarization method.

 Note: These local variables must be defined first:
   R1,R2,R3,R4,B0=gain ,V8=0.7 or 0.3 (base voltage in V for silicon or germanium BJTs, accordingly)

BTJ-4R:REAL

INPUT R1
INPUT R2
INPUT R3
INPUT R4
INBUT B0
INPUT V
R=R1R2/(R1+R2)
T=VR2/(R1+R2)
I=(T-V8)/(R+(B0+1)R4)
C=V-I(B0R3+(B0+1)R4)
I=B0I
PRINT I
PRINT C

External links


This article is issued from Wikipedia - version of the Friday, March 15, 2013. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.