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 N1 à 3
:Then
:.5X!X
:.5Y!Y
:End
TI-83 Plus
Activities
, and then press Í. The program
SIERPINS
Set viewing window.
Beginning of For group.
If / Then group
570