The sierpinski triangle, Continued) – Sharp EL-9900 User Manual

Page 143

Advertising
background image

10

Advanced Keyboard/PROGRAMMING USING THE SHARP EL-9900

Copyright © 2002, Sharp Electronics Corporation. Permission is granted to photocopy for educational use only.

.5X

⇒X

. 5 X/

θ/T/n STO X/θ/T/n ENTER

.5Y

⇒Y

.

5

ALPHA Y STO ALPHA

Y

ENTER

Label D

PRGM B 0 1 ALPHA D ENTER

PntON(X,Y)

2ndF DRAW B

0 1 X/

θ/T/n , ALPHA

Y

)

ENTER

I+1

⇒I

ALPHA

I + 1 STO ALPHA I

ENTER

If I

≤2000 Goto A

PRGM B 0 3 ALPHA I MATH

F 6 2

0

0 0 PRGM B 0 2

ALPHA

A ENTER

End

PRGM

A 6 ENTER

Press 2ndF QUIT to exit the editor.

3.

Press Y= and CL to clear the Y1 prompt. Press and CL to clear

additional prompts. Press WINDOW 0 ENTER 1

ENTER 1

ENTER 0 ENTER 1 ENTER 1 ENTER . Execute the SIERPINS

program by pressing PRGM

A (EXEC) and selecting SIERPINS. The

program will slowly generate 2000 random points that create the Sierpinski

Triangle.

THE SIERPINSKI TRIANGLE

(continued)

Advertising