home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ********************************
- ** **
- ** **
- ** HENON.DOC **
- ** **
- ** Program Documentation **
- ********************************
-
-
-
- The program for generating these Henon mappings, HENON2.PAS, is written in
- Turbo Pascal for an IBM PC. It uses the graphics commands contained in
- Turbo Pascal. The Include file called GRAPH.P is a Turbo-supplied file with
- graphics subroutines. The only place you need this is for the graphics
- screen save. This program uses high-resolution monochrome graphics (640 by
- 200). It would be easy to alter this for low-resolution color graphics so
- the orbits could be differentiated by color. If you have an 8087
- coprocessor with the Turbo-87 compiler, this program will run about 30
- percent faster, and the precision will extend from 11 places to 16 places.
- This can be of real value for high magnification. This is explained more
- fully in the text.
-
- To use this program:
-
- HENON2 will ask for plotting parameters as described below. In each case,
- you can obtain the default by responding with a carriage return. After you
- run the program once, a carriage return will give you the last value used.
- Note that Pascal requires real numbers between -1 and 1 to be input with a
- leading zero. Thus, the number .35 must be input as 0.35.
-
- NOTE THAT COMMAS ARE NEITHER NECESSARY NOR ACCEPTED BETWEEN MULTIPLE INPUTS.
-
- The Parameters of a Plot:
-
- 1. The angle A in radians (between 0.0 and pi).
-
- 2. The axis along which the increments are to take place. The options are:
- Axis of Symmetry (each plot has an axis of symmetry which makes an angle of
- A/2 with the X axis), X Axis, Axis of Choice (choose any starting point and
- the program will compute the axis), and No Axis (starting values will be
- obtained from arrays). The default is the Axis of Symmetry.
-
- 3. A starting point for the first orbit. The default is (0.098 0.061).
- If the selected axis is Axis of Symmetry, you only need one coordinate. The
- program computes the other value. For the sake of convenience, when the
- Axis of Symmetry lies between 0 and pi/4, the program assumes that the
- starting point entered is the X coordinate; then the program computes the Y
- value. For an axis between pi/4 and pi/2, the program asks for the Y value.
-
- 4. The increment for the initial points. This increment is measured along
- the selected axis. If No Axis is selected, this has no bearing. The
- default is 0.05.
-
-
- 5. The window of the plot in the horizontal (X) direction. The default is
- -1.2 1.2. The program will compute a nice window size automatically if the
- values entered are 0.0 0.0. This is especially convenient for
- magnifications where the window may be difficult to choose.
-
- 6. The window of the plot in the vertical (Y) direction. The default is
- -1.2 1.2.
-
- 7. The number of orbits to be plotted. The default is 25.
-
- 8. The number of points in each orbit. The default is 500.
-
- NOTE: The orbits of any plot can be advanced manually by pressing any key
- while the plot is in progress. This allows you to skip over uninteresting
- areas.
-
- At the end of each plot a menu appears with 10 items:
-
- (F1) NEW PLOT (CARRIGE RETURNS WILL REPEAT CURRENT VALUES)
- (F2) SELECTED ORBITS OF CURRENT PLOT (F3) RESTORE PREVIOUS PLOT
- (F4) SAVE PARAMETERS OF CURRENT PLOT (F5) SAVE SCREEN OF CURRENT PLOT
- (F6) RETRIEVE STORED PARAMETERS (F7) RETRIEVE STORED SCREEN
- (F8) MERGE CURRENT PLOT WITH STORED PLOT (F9) CHANGE OPTIONS (F10) QUIT
-
- Item F2 has a number of subitems which are designed to facilitate
- exploration of a plot. One of these is an interactive search where you
- indicate the window of the search area with the cursor keys.
-
- In many cases it is better to save the parameters of a plot with F4 than it
- is to save the actual screen with F5. (Of course both can be saved since
- the menu reappears after a save.) The parameters are saved in a text format
- which you can later examine and alter if you wish. These parameter files
- contain only about 1K bytes while the graphics screens take about 16K bytes.
- The parameter files contain all the information necessary to recreate a
- plot. In addition they contain a listing of the actual orbits (up to the
- maximum you established with MAXORBIT, currently set at 48). In most cases
- this is redundant information, but it can be quite useful because you can
- then manipulate these arrays to eliminate certain unwanted orbits or add new
- ones. One of the most powerful options along these lines is the MERGE
- option F8. This allows you to combine two distinct parameter plots. It
- does not matter if they have different scales or even different A values.
- The merge simply merges the two arrays and uses the paramters from the
- current plot.
-
- The menu item Options (F9) allows you to turn on and off a number of items
- such as the GRID lines, the TEXT on the screen, the MARKS which show the
- starting values. It also allows you to adjust the number of decimal places
- displayed on the screen. This is necessary for extended magnification.
-
- The Plots
-
- The plots in photos 1 through 3 in the article were obtained with an Amdek
- DXY-100 flat-bed plotter. (Similar to Roland DXY 100). The X and Y
- coordinates of the points were sent to a file, and then a separate program
-
- fed these to the plotter. Because the plots are done one point at a time
- and the points are spread out into cycles, the plots can take up to 4 hours.
- To speed things up, I first sorted the points in X and then Y values with
- DBase III. This allowed me to generate a plot in about 20 minutes.
-
-