home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / textinfo / triangle.arj / TRIANGLE.DOC < prev    next >
Encoding:
Text File  |  1989-02-07  |  1.7 KB  |  54 lines

  1.  
  2.  
  3. TRIANGLE by Rick Lawsha                                 7:44pm Feb 07,1989
  4.  
  5.  
  6.  
  7.  
  8. This program demonstrates chaos and randomness using a three point
  9. triangle.  The inspiration for TRIANGLE came about after watching a
  10. NOVA program, an excellent PBS science series.
  11.  
  12. The program works by picking the three corners of a triangle and
  13. jumping around from there.  Consider the drawing below...
  14.  
  15.          1     The 3 corners we will call points 1, 2 and 3.
  16.         / \    Also, imagine you have a 3 sided die which you
  17.       /     \  can roll for a 24 hour period.
  18.      2-------3
  19.  
  20.  
  21.  
  22.          1     Roll the die once and jot down the number.  Let's
  23.         / \    say you rolled a 2.  We put a mark by the 2.
  24.       /     \
  25.      *-------3
  26.  
  27.  
  28.         1      Now, roll the dice again.  This time we get
  29.        / \     hmm... let's say a 3.  Okay, now draw an
  30.      /     \   imaginary line from your last point (2) to
  31.     *---*---3  the next number which is a 3.  Place another
  32.                dot HALFWAY between the 3 and your last dot.
  33.  
  34.  
  35.         1      Roll the die again, let's say we get a 1
  36.        / \     this time.  Place a dot halfway between
  37.      /  *  \   your last dot and the number you rolled.
  38.     *---*---3  Now we have 3 dots and it looks like this.
  39.  
  40.  
  41. Continue to roll the die for about 24 hours and see what happens.
  42. Most people assume that the inner part of the triangle will fill
  43. with dots on a random basis.  Run the triangle progam to see what
  44. happens.  Something very interesting occurs.....
  45.  
  46. I have included the QuickBASIC source for TRIANGLE so that you
  47. can see there are no tricks going on here.  I hope you have fun
  48. with this program.
  49.  
  50.  
  51.  
  52. Rick Lawsha, STORK RBBS (309) 342-0637
  53.  
  54.