Documente Academic
Documente Profesional
Documente Cultură
DOI 10.1007/s11071-016-3186-2
ORIGINAL PAPER
Received: 24 May 2016 / Accepted: 1 November 2016 / Published online: 11 November 2016
© The Author(s) 2016. This article is published with open access at Springerlink.com
Abstract Mandelbrot and Julia sets are examples of where f depends on some constant c ∈ C and z 0 ∈ C is
fractal patterns generated in the complex plane. In the the point from a considered area of the complex plane
literature, we can find many generalizations of those [16]. Two examples of such fractals are Mandelbrot and
sets. One of such generalizations is the use of switch- Julia sets together with their different generalizations.
ing process. In this paper, we introduce some switching One of the generalizations is the use of switch-
processes to another type of complex fractals, namely ing processes. The study of this type of processes in
polynomiographs. Polynomiograph is an image pre- Mandelbrot and Julia sets began in (1991) in work of
senting the visualization of the complex polynomial’s Lakhtakia [13]. He introduced the following switching
root finding process. The proposed switching processes process:
will be divided into four groups, i.e., switching of: the
root finding methods, the iterations, the polynomials p
z n + c1 , if |z n | ≤ r0 ,
and the convergence tests. All the proposed switch- z n+1 = q (2)
ing processes change the dynamics of the root finding z n + c2 , if |z n | > r0 ,
process and allow us to obtain new and diverse fractal
patterns. where p, q are natural numbers greater than 1, c1 , c2 ∈
C and r0 > 0 acts as a buffer between the two processes.
Keywords Dynamics · Polynomiography · Switching From the introduction of the switching process by
process · Fractal Lakhtakia in the literature appeared several different
switching process:
123
2236 K. Gdawiec
p
z n + c, if |z n | ≤ r0 , The remainder of this paper is outlined as follows.
z n+1 = q (4) In Sect. 2, some basic information about polynomiog-
z n + c, if |z n | > r0 ,
raphy is presented, starting from the root finding meth-
where p, q ∈ C, ( p), (q) ∈ / [0, 1] ((z) is the ods, going through the different iteration process and
real part of z), c ∈ C and r0 > 0, convergence tests and ending up with the basic poly-
– Xingyuan in (2006) introduced the following process nomiograph’s generation algorithm. Sect. 3 is devoted
[20]: to the introduction into polynomiography of the differ-
⎧ α0 ent switching processes. Next, in Sect. 4 some poly-
⎪z n + h 0 (c),
⎪
⎪
if n + 1 mod m = 0,
nomiographs obtained with the help of the proposed
⎨z α1 + h (c), if n + 1 mod m = 1,
n 1
z n+1 = switching processes and their generation times are pre-
⎪
⎪...
⎪
⎩ αm−1 sented. Finally, in Sect. 5, we give some concluding
zn + h m−1 (c), if n+1 mod m=m − 1, remarks.
(5)
p ⎡ ⎤
p (z) p (m−1) (z) p (m) (z)
s(z n + c1 ) + (1 − s)z n , if n even, p (z) ... (m−1)!
z n+1 = ⎢ 2! m!
⎥
p ⎢ . .. p (m−1) (z) ⎥
s(z n + c2 ) + (1 − s)z n , if n odd, ⎢ p(z) p (z) . . . ⎥
⎢ (m−1)! ⎥
(8) Dm (z) = det ⎢
⎢ 0 p(z) . . . ..
.
.. ⎥.
⎥
⎢ . ⎥
⎢ .. .. . . .. p (z)
⎥
where s ∈ [0, 1], p ∈ {2, 3} and c1 , c2 ∈ C. ⎣ . . . . ⎦
2!
Another example of fractal pattern that is generated 0 0 ... p(z) p (z)
in the complex plane is polynomiograph [11]. This (10)
method is based on iteration of a given root finding
method. In this paper, we introduce into polynomiogra- Using the Dm sequence, we define a family of root
phy several switching processes and show some exam- finding methods, the so-called parametric basic family
ples of fractal pattern obtained with their help. of iterations [12], in the following way:
123
Switching processes in polynomiography 2237
123
2238 K. Gdawiec
where ε > 0 is the accuracy of computations. In [7] introduce similar switching processes and propose new
convergence tests that are based on metric and non- ones. We can divide the switching processes into four
metric conditions were introduced, and they were used groups:
to obtain new artistic fractal patterns. Examples of such
1. switching of the root finding methods,
tests are the following:
2. switching of the iterations,
|0.01(z n+1 − z n )| + |0.029|z n+1 |2 − 0.03|z n |2 | < ε, 3. switching of the polynomials,
(25) 4. switching of the convergence tests.
0.045 0.05
− < ε. (26) In the first group in the polynomiograph’s gen-
|z |2 |z n |2 eration algorithm, we fix all the parameters except
n+1
The pseudocode of polynomiograph’s generation the root finding method. Depending on the switching
method is presented in Algorithm 1. Iteration Iq in the method, we choose two or more root finding methods
algorithm is one of the iteration methods from fixed R0 , R1 , . . . , Rm−1 (m ≥ 2). We define the switching
point theory, and q is the vector of its parameters. The processes of the root finding methods as follows:
iteration takes three arguments: the root finding method – switching modulo m
R, the polynomial p for which we are looking the roots
and the point z n from the previous iteration. Conver- ⎧
⎪
⎪ Iq (R0 , p, z n ), if n mod m = 0,
gence test Tt is one of the standard convergence tests or ⎪
⎪
⎨ I (R , p, z ), if n mod m = 1,
the ones from [7], and t is the vector of its parameters, z n+1 =
q 1 n
e.g., ε, constants in (25) or (26). ⎪
⎪ . . .
⎪
⎪
⎩ I (R
q m−1 , p, z n ), if n mod m = m −1,
Algorithm 1: Polynomiograph generation (27)
Input: p ∈ C[Z ] – polynomial, A ⊂ C – area, K –
maximum number of iterations, Iq – iteration – switching using |z|
method, q ∈ C N – parameters of the iteration Iq , R
– root finding method, Tt – convergence test,
Iq (R0 , p, z n ), if |z n | ≤ r,
t ∈ R M – parameters of the convergence test Tt . z n+1 = (28)
Output: Polynomiograph for the area A. Iq (R1 , p, z n ), if |z n | > r,
1 for z 0 ∈ A do
2 n=0 where r > 0,
3 while n ≤ K do – switching using | p(z)|
4 z n+1 = Iq (R, p, z n )
5 if Tt (z n , z n+1 ) = tr ue then
6 break Iq (R0 , p, z n ), if | p(z n )| ≤ r,
z n+1 = (29)
7 n =n+1 Iq (R1 , p, z n ), if | p(z n )| > r,
8 determine the color for z 0
where r > 0.
The first two types of switching processes are very
To generate polynomiographs, we can also use other similar to the switching processes used in the genera-
generation algorithms. For instance, in [8] we can find tion of Mandelbrot and Julia sets. In the third process,
methods that are based on the well-known generation we switch between two root finding methods depend-
algorithms of Mandelbrot and Julia sets. ing on the distance from a root. If the distance of poly-
nomial’s value in the approximation point (from the
previous iteration) to 0 is smaller than r , then we use
3 Switching processes in polynomiography one root finding method and the second one otherwise.
In the second group of switching processes in the
In the introduction, we have seen several switching polynomiograph’s generation algorithm, we fix all the
processes that were used in the generation of Mandel- parameters except the iteration process. We choose two
brot and Julia sets. In polynomiography, we can also or more iteration processes Iq00 , Iq11 , . . . , Iqm−1
m−1
(m ≥
123
Switching processes in polynomiography 2239
123
2240 K. Gdawiec
123
Switching processes in polynomiography 2241
Table 1 Generation times of the polynomiographs from Fig. 2 Table 2 Generation times of the polynomiographs from Fig. 3
Method Time (s) Methods Time (s)
123
2242 K. Gdawiec
0.5 0.554
r the more the pattern reminds polynomiograph of R1 .
1.0 0.510
The change of the polynomiograph has different char-
1.5 0.466
acter than in the example with the switching process
2.0 0.423
using |z|, whereas the generation times starting from
r = 3.0 are greater than both times obtained for the
original root finding methods (Table 3). Moreover, we
In the last example of the first group, we used the see that the greater the value of r the greater the time.
switching process of root finding methods given by The second group of examples presents
(29). In the switching process, we used the same root polynomiographs generated by using the switching
finding methods and their parameters that were used in processes of iteration methods. In all the examples in
Fig. 4. The results of switching Newton’s method (R0 ) this group, we use the same two iterations. The first
and Halley’s method (R1 ) for different values of r are iteration is Noor’s iteration with αn = 0.15, βn = 0.6
presented in Fig. 6. The values of r were as follows: and γn = 0.4, and the second iteration is CR iteration
(a) 1.0, (b) 3.0, (c) 4.0, (d) 5.0. The generation times of with αn = 0.8, βn = 0.8, γn = 0.8. The other parame-
the polynomiographs are presented in Table 5. Similar ters used to generate the polynomiographs from Fig. 7
to the previous example, the shape of polynomiograph were as follows: p(z) = z 3 − 1, A = [−2.5, 2.5]2 ,
changes with the change of r . The lower the value of K = 35, relaxed Newton’s root finding method with
123
Switching processes in polynomiography 2243
Noor–CR 1.105
CR–Noor 0.977
Noor 4.935
CR 0.683
123
2244 K. Gdawiec
Table 8 Generation times of the polynomiographs from Fig. 9 Table 9 Generation times of the polynomiographs from Fig. 10
r Time (s)
r Time (s)
0.2 0.736
0.2 1.465
0.8 0.867
0.8 2.811
1.4 4.301
1.4 3.930
2.0 4.832
2.0 4.674
123
Switching processes in polynomiography 2245
p1 1.301
p2 0.470
p1 0.588
Fig. 12 Polynomiographs obtained with the use of switching of p2 0.224
polynomials using the modulo switching process (34). a p1 – p2 ,
b p2 – p1
p1 – p2 1.117
p2 – p1 1.042
123
2246 K. Gdawiec
Table 13 Generation times of the polynomiographs from Fig. 14 Table 14 Generation times of the polynomiographs from Fig. 15
123
Switching processes in polynomiography 2247
(40) 0.586
(41) 0.893
(42) 0.491
Fig. 17 Polynomiographs obtained with the use of switching of (43) 0.586
convergence tests using the modulo switching process (37). a
(40)–(41), b (41)–(40)
(40)–(41) 0.608
(41)–(40) 0.614
123
2248 K. Gdawiec
Table 18 Generation times of the polynomiographs from Fig. 19 Table 19 Generation times of the polynomiographs from Fig. 20
123
Switching processes in polynomiography 2249
graph’s generation algorithm. The results of this paper 5. García-Morales, V.: Fractal surfaces from simple arithmetic
can further extend the possibilities of the existing poly- operations. Phys. A: Stat. Mech. Appl. 447, 535–544 (2016).
doi:10.1016/j.physa.2015.12.028
nomiographs’ generation software and therefore can be 6. García-Morales, V.: The pλn fractal decomposition: non-
used to create paintings, in carpet or tapestry design trivial partitions of conserved physical quantities. Chaos
[11]. Solitons Fractals 83, 27–37 (2016). doi:10.1016/j.chaos.
Recently, García-Morales introduced the notion of 2015.11.028
7. Gdawiec, K.: Polynomiography and various convergence
digit function [6]. This function is a building block for tests. In: Skala, V. (ed.) WSCG 2013 Communication Papers
other two notions. In [6] García-Morales has shown that Proceedings, pp. 15–20. Plzen, Czech Republic, Vaclav
using the digit function we can decompose any real or Skala - Union Agency (2013)
complex valued function (single or multivariable) into 8. Gdawiec, K.: Mandelbrot- and Julia-like rendering of poly-
nomiographs. In: Chmielewski, L., Kozera, R., Shin, B.S.,
a finite set of fractal discontinuous functions. This type Wojciechowski, K. (eds.) Computer Vision and Graphics,
of decomposition is called the pλn decomposition. In Lecture Notes in Computer Science, vol. 8671, pp. 25–
[5] we find a definition of a generalized bitwise oper- 32. Springer International Publishing (2014). doi:10.1007/
ator. To define this type of operators, the author uses 978-3-319-11331-9_4
9. Gdawiec, K., Kotarski, W., Lisowska, A.: Polynomiography
the digit function. Both these notions, pλn decomposi-
based on the non-standard Newton-like root finding meth-
tion and generalized bitwise operators, probably might ods. Abstr. Appl. Anal. 2015(797), 594 (2015). doi:10.1155/
extend the possibilities of generating new and diverse 2015/797594
polynomiographs. For instance, we could use the pλn 10. Gilbert, W.: Generalizations of Newton’s method. Fractals
9(3), 251–262 (2001). doi:10.1142/S0218348X01000737
decomposition to decompose, e.g., polynomials or con- 11. Kalantari, B.: Polynomiography and applications in art, edu-
vergence tests, that are complex valued functions, and cation and science. Comput. Graph. 28(3), 417–430 (2004).
use switching of the parts of these decompositions. doi:10.1016/j.cag.2004.03.009
12. Kalantari, B.: Polynomial Root-Finding and Polynomiog-
Acknowledgements The author would like to thank the anony- raphy. World Scientific, Singapore (2009). doi:10.1142/
mous referees for their careful reading of the manuscript and 9789812811837
their fruitful comments and suggestions that helped to improve 13. Lakhtakia, A.: Julia sets of switched processes. Com-
the paper. put. Graph. 15(4), 597–599 (1991). doi:10.1016/
0097-8493(91)90061-L
Open Access This article is distributed under the terms of 14. Negi, A., Rani, M., Mahanti, P.: Computer simulation of
the Creative Commons Attribution 4.0 International License the behaviour of Julia sets using switching processes. Chaos
(http://creativecommons.org/licenses/by/4.0/), which permits Solitons Fractals 37(4), 1187–1192 (2008). doi:10.1016/j.
unrestricted use, distribution, and reproduction in any medium, chaos.2006.10.061
provided you give appropriate credit to the original author(s) and 15. Pickover, C.: Halley maps for a trigonometric and rational
the source, provide a link to the Creative Commons license, and function. Comput. Math. Appl. 17(1–3), 125–132 (1989).
indicate if changes were made. doi:10.1016/0898-1221(89)90153-3
16. Shirriff, K.: Fractals from simple polynomial composite
functions. Comput. Graph. 17(6), 701–703 (1993). doi:10.
1016/0097-8493(93)90122-P
17. Varona, J.: Graphics and numerical comparison between
iterative methods. Math. Intel. 24(1), 37–46 (2002). doi:10.
References 1007/BF03025310
18. Wang, D., Liu, S.: On the boundedness and symmetry prop-
1. Ardelean, G.: A comparison between iterative methods by erties of the fractal sets generated from alternated complex
using the basins of attraction. Appl. Math. Comput. 218(1), map. Symmetry 8(2), 7 (2016). doi:10.3390/sym8020007
88–95 (2011). doi:10.1016/j.amc.2011.05.055 19. Xing-Yuan, W.: Switched processes generalized Mandelbrot
2. Ashlock, D., Jamieson, B.: Evolutionary exploration of com- sets for complex index number. Appl. Math. Mech. 24(1),
plex fractals. In: Hingston, P., Barone, L., Michalewicz, 73–81 (2003). doi:10.1007/BF02439380
Z. (eds.) Design by Evolution, Natural Computing 20. Xingyuan, W.: The generalized M sets from a class complex
Series, pp. 121–143. Springer, Berlin (2008). doi:10.1007/ mapping system. Appl. Math. Comput. 175(2), 1484–1494
978-3-540-74111-4_8 (2006). doi:10.1016/j.amc.2005.08.028
3. Danca, M.F., Bourke, P., Romera, M.: Graphical explo- 21. Yadav, A., Rani, M.: Alternate superior Julia sets. Chaos
ration of the connectivity sets of alternated Julia sets. Solitons Fractals 73, 1–9 (2015). doi:10.1016/j.chaos.2014.
Nonlinear Dyn. 73(1), 1155–1163 (2013). doi:10.1007/ 12.008
s11071-013-0859-y
4. Danca, M.F., Romera, M., Pastor, G.: Alternated Julia sets
and connectivity properties. Int. J. Bifurc. Chaos 19(6),
2123–2129 (2009). doi:10.1142/S0218127409023962
123