Table of Contents
RANDOM WALKS
1. Program the calculator to graph a random walk. A random walk can go in
any direction for a random distance. This program stops when the graph
tries to go outside the calculator display.
2. Create a new program with the name WALK. Enter the following program
and remember to press
mistake, use the calculator's editing features to correct the error.
3. Enter the following program using the Advanced Keyboard:
ClrDraw
0⇒D
.5⇒X
.5⇒Y
Label A
.2(random–.5)⇒H
.2(random–.5)⇒K
Line(X,Y,X+H,
Y+K)
X+H⇒X
Y+K⇒Y
If X<0 Goto B
If X>1 Goto B
If Y<0 Goto B
Basic Keyboard/PROGRAMMING USING THE SHARP EL-9900
Copyright © 2002, Sharp Electronics Corporation. Permission is granted to photocopy for educational use only.
ENTER
at the end of each line. If you make a
2ndF
DRAW
A
0
STO
ALPHA
.
5
STO
X/θ/T/n
.
5
STO
ALPHA
PRGM
B
0
1
(
.
2
MATH
ALPHA
H
ENTER
(
.
2
MATH
ALPHA
K
ENTER
2ndF
DRAW
A
Y
,
X/θ/T/n
+
Y
+
ALPHA
X/θ/T/n
+
ALPHA
ALPHA
Y
+
Y
ENTER
PRGM
B
0
3
5
0
PRGM
B
PRGM
B
0
3
PRGM
B
0
2
PRGM
B
0
3
PRGM
B
0
2
10
1
ENTER
D
ENTER
ENTER
Y
ENTER
ALPHA
A
ENTER
C
1
.
5
C
1
.
5
2
X/θ/T/n
,
ALPHA
H
,
)
K
ENTER
H
STO
X/θ/T/n
ALPHA
K
STO
X/θ/T/n
MATH
0
2
ALPHA
X/θ/T/n
MATH
ALPHA
B
ENTER
ALPHA
Y
MATH
ALPHA
B
ENTER
)
STO
)
STO
ALPHA
ALPHA
ENTER
ALPHA
F
B
ENTER
F
3
1
F
5
0
Table of Contents
loading

This manual is also suitable for:

El-9900

Table of Contents