                           =======================
                            Sierpinski's Triangle
                           =======================

     written by Jorge Costa <l38861@alfa.ist.utl.pt> in 11 Nov 1996

Description
-----------

The Spierkinski's Triangle is an excelent example of how simple it can be to
generate a nice fractal image. I don't know much about fractals and this was
my first fractal program. While reading a couple of pages of a book, I came to
a user-RPL program to do it. By coicidence, the same program was being
discussed in comp.sys.hp48 newsgroup and Michael Heinz came to a shorter and
faster version. I just took his program and optimized it in System RPL.

Credits
-------

All credit goes to Michael Heinz, for his user-RPL program.

Disclaimer
----------

THERE ARE NO GUARANTIES AS TO THE PERFORMANCE OF THIS PACKAGE.

THE AUTHOR IS NOT RESPONSIBLE FOR *ANY* KIND OF DAMAGE CAUSED BY THE
DOCUMENTATION OR SOFTWARE PROVIDED.

THE AUTHOR RECOMMENDS THE USER TO BACKUP THE MACHINE'S MEMORY BEFORE USING
THE SOFTWARE.

PERMISSION TO COPY AND/OR MODIFY THIS PACKAGE IS GRANTED, PROVIDED THAT
THE COPIES ARE NOT MADE FOR RESALE ( EXCEPTING NOMINAL COPYING FEES ).

IF THE PROGRAM IS CHANGED, IT IS *STRONGLY RECOMMENDED* TO RE-WRITE THIS
DOCUMENTATION AND GIVE PROPER CREDIT.

Compatibility
-------------

The original 'SIERP' program found at <http://alfa.ist.utl.pt/~l38861> works
in all models of the HP48 family. It was tested in ROM versions J and P.

Instructions
------------

Download the file 'SIERP' to your HP48 using binary transfer.

Run the program, it will imediately start drawing pixels in a 'random order'.

It shall not take too long ( some seconds ) to start recognizing triangular
shapes in the screen.

After you get satisfied with what you have in the screen, press ON/CANCEL
( ATTN for S/SX users ) and the program will stop, returning a GROB to the
stack. This grob is a copy of the fractal image generated.

PLEASE NOTE: This program works in an infinite loop that can only terminate by
pressing ON key. If you forget your HP48 running this program, it will
drain plenty ( all ? ) energy from your bateries.

Source code
-----------

The source code of SIERP is available with an educational purpose. In the
present form, it must be compiled using the Java package for the HP48 ( get a
copy of Jazz from <http://www.hut.fi/~mheiskan> ).

      --      --      --      --      --      --      --      --      --

Ŀ
 Jorge Costa                 E-mail: l38861@alfa.ist.utl.pt                
 Chemical Eng. Student       HP48 page : http://alfa.ist.utl.pt/~l38861    
 Instituto Superior Tecnico  Handheld & Portable Computer Club ( London )  
 Lisbon - Portugal           Member # 946                                  
 

