Sharp EL6300 Operation Manual page 25

Table of Contents

Advertisement

l
CHAPTER 9 INTRODUCTION TO BASIC PROGRAMMING
CHAPTER 9 INTRODUCTION TO BASIC PROGRAMMING
43
les, Functions, Commands
List of Commands
SIC language used by this calculator makes possible a
In the following list, the character string enclosed by brackets can be
I
programs.
The functions and commands are listed below. For
omitted.
enience, you do not have to input the entire command word.
e required part of the word, and substitute a single period for
Command:
CLEAR
art. For example, the PRINT command can be input either in full
Purpose:
Clears all
data.
by a period.
Example:
CLEAR
I
ENTEi!]
be made up of one or two
characters.
The variable this
an be classified into three types: the numeric variable, the
Command:
END
variable, and the double-character variable. Up to 10 digits of
Purpose:
Ends program
execution.
scan be stored in the calculator's
memory.
The number of
Example:
100: END
variables that can be stored is 7 whereas up to 16
rvariables can be stored. In addition, a variable can consist of a
Command:
FOR numeric
variable=
initial value TO end value
merals in combination, like A(1 ), A(28), etc. Note, however,
[STEP increment]
to be used, it uses the same variable area as A. This also holds
.....
$(1) is used. Therefore, when A is used, A$ cannot be
used.
.....
A(28) is
used,
all the variable areas for A(1) to A(28) are
NEXT numeric variable
erved.
Purpose:
Executes the program the specified number of times.
ue of a function or the contents of a
variable,
use PRINT
Five levels of nesting are
possible.
xample,
to check the number of available bytes, input PRINT
Example:
20:
FOR
A=
1 TO
10
STEP 2
check the contents of variable
A,
input PRINT A
I
ENTER
I.
. ....
.....
Functions
100:
NEXT A
eatures
Range
Remarks:
The range of the numeric variables is as
follows:
x
-1x10
10
<expression:;:::
-9999999999:;:::
initial value, end value, incrernent
s
23.02585092
9999999999
teger
If STEP and the items following are omitted, the increment is
assumed to be 1 .
, logeX
1
x 10-
9:;:::
expression<
1
x
10
10
g10X
1
x
10-
9:;:::
expression
<
1 x 10
10
Command:
GOSUB expression or character string
eturns the number of
.....
vailable bytes in the
.....
rogram data area.
RETURN
x
(exponentiation)
wheny>O,
-1x10
10
<xlogy<10
Purpose:
GOSUB command transfers program execution to the
when y
=
0, x > O
specified statement while RETURN command returns it to the
when y
<
0, x >
y,
xis an integer or
original statement.
1 /x is an odd number where -1
x
10
10
< x loqly]«; 10
Y'X
Y
MEM
R
a
p
LOG expression lo
LN expression
In
INT expression
In
EX_E expression e
Function
F
The simplified BA
number of usefu
the sake of conv
Instead, key in th
the underlined p
)r as P followed
The variable can
::alculator uses c
sinqle-character
'uimeric variable
:;ingle-character
fouble-characte
.haracter
and nu
hat when A( 1 ) is
rue when A$ or A
V1oreover, when
automatically res
Io check the val
.ornmand. Fore
vlEM
I
ENTER
I
.
To
BASIC Variab
42

Advertisement

Table of Contents
loading

Table of Contents