Problem E
Mandelbrot
Born in Warsaw, Benoît Mandelbrot (1924–2010) is considered the father of fractal geometry. He studied mathematical processes that described self-similar and natural shapes known as fractals. Perhaps his most well-known contribution is the Mandelbrot set, which is pictured below (the set contains the black points):
![\includegraphics[width=0.3\textwidth ]{mandelbrot}](/problems/mandelbrot/file/statement/en/img-0001.png)
The Mandelbrot set is typically drawn on the complex plane,
a 2-dimensional plane representing all complex numbers. The
horizontal axis represents the real portion of the number, and
the vertical axis represents the imaginary portion. A complex
number
beginning with
Recall the following facts about imaginary numbers and their arithmetic:
where
Write a program which determines if the sequence
Input
There are up to
Output
For each case, display the case number followed by whether
the given
Sample Input 1 | Sample Output 1 |
---|---|
0 0 100 1.264 -1.109 100 1.264 -1.109 10 1.264 -1.109 1 -2.914 -1.783 200 0.124 0.369 200 |
Case 1: IN Case 2: OUT Case 3: OUT Case 4: IN Case 5: OUT Case 6: IN |