Fractals[EscapeTime]
Lyapunov
Lyapunov fractal generator
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
Lyapunov( n, ab, xrng, yrng )
Lyapunov( n, ab, xrng, yrng, opts )
n
-
positive integer specifying the dimensions of the square Array output
ab
{list,Vector}(identical(0,1)) ; data specifying the alternating conditions
xrng
realcons..realcons ; the range for the horizontal domain
yrng
realcons..realcons ; the range for the vertical domain
opts
(optional) keyword options of the form opt=value where opt and value are described below
output : keyword option of the form output=value where value is a name or list of names denoting the returned Array image(s). The accepted names are color, or raw. The default value is color.
numterms : keyword option of the form numterms=value where value is a positive integer specifying the number of terms used in the summation that approximates the Lyapunov exponent at each input point The default value is 1000.
container : An n-by-n-by-2 Array with datatype=float[8] and order=Fortran_order used in-place to store the raw data.
The Lyapunov command generates Array images which provide a visualization of a bifurcational fractal that maps regions of chaos and stability given a binary-valued sequence. The particular binary pattern determines the value of r in the iterative formula,
zi+1=ri⁢zi⁢1−zi
The binary pattern dictates whether r[i] is taken as the x or the y value of a given point in the real plane. The values of z and r are used in computing the Lyapunov exponent according to the following definition.
λ=limn→∞⁡∑i=1n⁡ln⁡ri⁢1−2⁢zin
The above limit is approximated using the finite sum of numterms individual terms. In regions where lambda>0 the behavior is chaotic, while it is stable in regions where lambda<0.
The 2-D grayscale Array image returned by supplying the option output=raw contains the computed values of lambda.
The 3-D color Array image returned by supplying the option output=color contains data where the three layers corresponding to red, green, and blue have been computed using the grayscale raw results.
with⁡Fractals:-EscapeTime
BurningShip,Colorize,HSVColorize,Julia,LColorize,Lyapunov,Mandelbrot,Newton
with⁡ImageTools:
n≔200:
L≔Lyapunov⁡n,1,0,0,1,1,0,2.1..3.9,2.1..3.9
Embed⁡L
L≔Lyapunov⁡n,Vector⁡1,1,0,0,0,0,0,1,1,1,2.1..3.9,2.1..3.9,output=raw:
R≔Array⁡1..n,1..n,1..3,datatype=float8,order=C_order:
LColorize⁡L,50,500,300,container=R:
Embed⁡FitIntensity⁡L,R
randomize⁡:
p≔rand⁡350..450:
Q≔0,0,0,0,1,1,0,0,1,0,0,1,0,1,0,0,0,1,0,1,1,0,0,1
L≔seq⁡seq⁡LColorize⁡Complement⁡Lyapunov⁡300,Qi+k−1⋅2,2.1..3.9,2.1..3.9,output=raw,p⁡,2000,p⁡,i=1..2,k=1..2:
Embed⁡seq⁡Lyapunov⁡200,1,0,0,1,1,0,2.1..3.9,2.1..3.9,numterms=i+10,i=0..600,200
The Fractals:-EscapeTime:-Lyapunov command was introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
See Also
Array
Fractals
ImageTools
ImageTools:-Embed
Download Help Document