Article 1126 of comp.sys.handhelds:
From: cgt@gargoyle.uchicago.edu (Carlos Talbot)
Newsgroups: comp.sys.handhelds
Subject: Fractal tree program for HP48SX
Keywords: Fractals Graphics
Message-ID: <cgt.651962395@gargoyle.uchicago.edu>
Date: 29 Aug 90 20:39:55 GMT
Sender: news@midway.uchicago.edu (News Administrator)
Distribution: na
Organization: University of Chicago
Lines: 103



Here's a program I translated from a C program in the book "Fractal
Programming in C" by Roger T. Stevens.  It asks for 6 variables:
1) Height:  This is the height of the trunk in pixels. 2) Left alpha:
This is some number from 1 to 5.  The higher the number the longer
the branches extend. 3) Right alpha:  Same goes for this one.
4) Left angle:  The higher the angle the greater the curvature of
the branches.  5) Right angle:  Ditto for this one.  6) Recursion
level:  The higher the number, the greater the detail(more branches).
I wouldn't try a number higher than 14 because the twigs become too
small to distinguish.  I've also included a PICT file named 'TREE'.
To view place 'TREE' on stack, then PICT, then press STO.  Next go into
graph.  This tree was generated with the parameters:12,2,2.2,20,28,10.
This took about 25 minutes to draw!  Here's a list of parameters you
might try.  Enjoy!

Height Left alpha  Right alpha Left Angle  Right Angle  Recursion
------ ----------  ----------- ----------  -----------  ---------
  12       2.0        2.2         24           26           6
  35       2.0        0.00001     55            0          10
  13       3.0        3.0         33           33           9
  25       1.2        1.2         90           90           6

Carlos Talbot
{...!gargoyle!lucpum!ctalbot}


