Using A Program To Create The Sierpinski Triangle - Texas Instruments TI-84 Plus Manual Book

Hide thumbs Also See for TI-84 Plus:
Table of Contents

Advertisement

Using a Program to Create the Sierpinski Triangle

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  ~ ~
. Name the program
1
editor is displayed.
Program
PROGRAM:SIERPINS
:FnOff :ClrDraw
:PlotsOff
:AxesOff
:0!Xmin:1!Xmax
:0!Ymin:1!Ymax
:rand!X:rand!Y
:For(K,1,3000)
:rand!N
:If N1 à3
:Then
:.5X!X
:.5Y!Y
:End
:If 1 à3 <N and N2 à3
:Then
:.5(.5+X)!X
:.5(1+Y)!Y
:End
:If 2 à3 <N
:Then
:.5(1+X)!X
:.5Y!Y
:End
:Pt-On(X,Y)
:End
:StorePic 6
Activities
, and then press Í. The program
SIERPINS
Set viewing window.
Beginning of
If/Then
If/Then
If/Then
Draw point.
End of
Store picture.
group.
For
group
group.
group.
group.
For
77

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-84 plus silver edition

Table of Contents