|
Calling Sequence
|
|
Bifurcation( vars, exprlist, init, rmin, rmax )
Bifurcation( vars, exprlistlist, init, rmin, rmax, probabilities )
Bifurcation( vars, exprlist, init, rmin, rmax, opts )
Bifurcation( vars, exprlistlist, init, rmin, rmax, probabilities, opts )
|
|
Parameters
|
|
vars
|
-
|
list of names, with length greater than or equal to 1, specifying the variables of the iterative function. The first variable represents the vertical axis in the bifurcation diagram
|
exprlist
|
-
|
list of algebraic expressions defining the iterative function on vars. exprlist must be of the same length as vars.
|
exprlistlist
|
-
|
list of lists of algebraic expressions defining the iterative functions on vars, with probabilities defined by probabilities. Each list of expressions must be of the same length as vars.
|
init
|
-
|
list of numeric real values, with the same length as vars, specifying the initial values of vars
|
rmin
|
-
|
real value determining the minimum value of rvariable used in the diagram
|
rmax
|
-
|
real value determining the maximum value of rvariable used in the diagram
|
probabilities
|
-
|
(optional) list of positive real numbers, such that , where N is the length of probabilities, defines the probability that the ith expression list in exprlistlist will be used for on the jth iteration, as explained below. The length of probabilities must be of the same length as the number of lists in exprlistlist. The default value is [1]
|
|
|
|
|
Options
|
|
•
|
iterations : keyword option of the form iterations=val, where val is a posint specifying the number of times the function defined by exprs will be applied. The default value is 10000.
|
•
|
outputimage : keyword option of the form outputimage=img where img is a color image as used by the ImageTools package, with dimensions of height and width. Attractor will fill img with the generated image defined below.
|
•
|
height : keyword option of the form height=val, where val is a positive integer specifying the height of the image. If outputimage is defined the default value is the height of outputimage. Otherwise, the default value is 500.
|
•
|
width : keyword option of the form width=val, where val is a positive integer specifying the width of the image. If outputimage is defined the default value is the width of outputimage. Otherwise, the default value is 500.
|
•
|
xmin : keyword option of the form xmin=val, where val is a real number specifying the minimum value displayed on the vertical axis. The default value is
|
•
|
xmax : keyword option of the form xmax=val, where val is a real number specifying the maximum value displayed on the vertical axis. The default value is
|
•
|
rvariable : keyword option of the form rvariable=param, where param is a name specifying the parameter in exprs that will be varied along the horizontal axis. The default value is
|
•
|
loopvariable : keyword option of the form loopvariable=var, where var is a name specifying the variable representing the current iteration index. The default value is
|
•
|
redvariable : keyword option of the form redvariable=var, where var is a name specifying the red color variable at the current position in the image. The default value is
|
•
|
greenvariable : keyword option of the form greenvariable=var, where var is a name specifying the green color variable at the current position in the image. The default value is
|
•
|
bluevariable : keyword option of the form bluevariable=var, where var is a name specifying the blue color variable at the current position in the image. The default value is
|
•
|
redexpression : keyword option of the form redexpression=expr, where expr is an expression defining the coloring procedure of the red color value at the current position the image. If redexpression= then no procedure is applied to the red value at the current point. The default value is
|
•
|
greenexpression : keyword option of the form greenexpression=expr, where expr is an expression defining the coloring procedure of the green color value at the current position the image. If greenexpression= then no procedure is applied to the green value at the current point. The default value is
|
•
|
blueexpression : keyword option of the form blueexpression=expr, where expr is an expression defining the coloring procedure of the blue color value at the current position the image. If blueexpression= then no procedure is applied to the blue value at the current point.The default value is
|
|
|
Description
|
|
•
|
The Bifurcation module generates an Array image for an iterative function (rvariable against the first variable in vars) being applied iter times, to a domain of equally spaced rvariable values.
|
•
|
Within the domain [rmin, rmax], rvariable values will be selected at equally spaced intervals.
|
•
|
For each r value, starting at the point =init in , where N is the number of variables in vars, the sequence =, 0 iterations, is generated.
|
•
|
The function , is defined by the following algorithm:
|
|
Start at the point ,
|
|
Apply the function to the current point:
|
|
Replace the jth component of with :
|
|
Increment j by 1, and repeat the process with the new . Stop when , where is the number of variables in vars.
|
•
|
Each is defined by evaluating at the current values of the variables in vars.
|
•
|
If given an exprlistlist, then one of the functions in exprlistlist will be randomly selected to be applied to , for each 0 iterations-1. The probability that the ith function defined in exprlistlist is applied to is equal to .
|
•
|
Whenever this process yields a point , the values rvariable, are examined to find which pixel in the image they correspond to. Then, the expressions , , are evaluated, substituting the values for the variables , and the current red, green, and blue values of that pixel for the variables , , and , respectively.
|
•
|
The red, green, and blue values of the pixel are then updated to the newly evaluated values.
|
•
|
If a coloring expression is then the color, corresponding to the expression, of the pixel will be unchanged
|
•
|
Note that redexpression, greenexpression, blueexpression are applied to an image as defined by ImageTools:-Image, thus the minimum and maximum color values are 0 and 1 respectively.
|
•
|
Bifurcation returns an image containing the diagram described above. Further coloring procedures, defined in ImageTools, can be applied to the image.
|
•
|
The default , , return an image that is designed to be used with ImageTools:-ColouringProcedures:-HueToRGB.
|
|
|
Examples
|
|
>
|
|
>
|
|
>
|
|
| (5.1) |
>
|
|
>
|
|
>
|
|
| (5.2) |
>
|
|
>
|
|
>
|
|
| (5.3) |
>
|
|
| (5.7) |
| (5.9) |
>
|
|
>
|
|
| (5.11) |
>
|
|
|
|
Compatibility
|
|
•
|
The IterativeMaps:-Bifurcation command was introduced in Maple 2015.
|
|
|
|
|