Chapter 17: Activities
487
Using a Program to Create the Sierpinski Triangle
Using a Program to Create the Sierpinski Triangle
Using a Program to Create the Sierpinski Triangle
Using a Program to Create the Sierpinski Triangle
Setting up the Program
Setting up the Program
Setting up the Program
Setting up the Program
This program creates a drawing of a famous fractal, the Sierpinski Triangle, and stores
the drawing to a picture. To begin, press
~ ~
1
. Name the program
SIERPINS
, and
then press
Í
. The program editor is displayed.
Program
Program
Program
Program
PROGRAM:SIERPINS
:FnOff :ClrDraw
:PlotsOff
:AxesOff
:0
!
Xmin:1
!
Xmax
:0
!
Ymin:1
!
Ymax
Set viewing window.
:rand
!
X:rand
!
Y
:For(K,1,3000)
:rand
!
N
Beginning of
For
group.
:If N
1
à
3
:Then
:.5X
!
X
:.5Y
!
Y
:End
If/Then
group
Summary of Contents for -84 Plus
Page 1: ...TI 84 Plus TI 84 Plus Silver Edition Guidebook...
Page 213: ...Chapter 8 Draw Instructions 210...
Page 248: ...Chapter 10 Matrices 245 row value matrix rowA rowB...
Page 332: ...Chapter 12 Statistics 329...
Page 413: ...Chapter 14 Applications 410...
Page 427: ...Chapter 15 CATALOG Strings Hyperbolic Functions 424 sinh 1 value cosh 1 value sinh 1 value...
Page 496: ...Chapter 17 Activities 493 If C A and D B Stop Goto Z Quit if guesses are correct...
Page 672: ...Appendix C Service and Warranty Information 669...