You can make some really pretty pictures using this Mandelbrot Set Generator...
Mandelbrot Set Generator
Mandelbrot Set Generator
WITH ord AS ( SELECT rownum - 1 xyz
FROM DUAL
CONNECT BY rownum <= 100 )
, xgen AS ( SELECT -2.2 + xyz*0.031 cx
, xyz ix
FROM ord )
, ygen AS ( SELECT -1.5 + xyz*0.031 cy
, xyz iy
FROM ord )
, z AS ( SELECT ix
, iy
, i
FROM xgen
, ygen
MODEL PARTITION BY (ix, iy)
DIMENSION BY (0 i)
MEASURES ( cx
, cy
, cx x
, cy y )
IGNORE NAV
RULES ITERATE (100)
UNTIL ( X[iteration_number] * X[iteration_number] +
Y[iteration_number] * Y[iteration_number] > 16
)
( cx[iteration_number] = cx[cv()]+cx[cv()-1]
, cy[iteration_number] = cy[cv()]+cy[cv()-1]
, x[iteration_number] = cx[cv()]+x[cv()-1]*x[cv()-1]-y[cv()-1]*y[cv()-1]
, y[iteration_number] = cy[cv()]+y[cv()-1]*x[cv()-1]*2
) )
SELECT REPLACE(LTRIM(MAX(sys_connect_by_path(i,'|')) KEEP (DENSE_RANK LAST PARTITION BY ix),'|'),'|')
FROM ( SELECT ix
, iy
, SUBSTR(' .,,,-----++++%%%%@@@@### ',LEAST(MAX(i),26),1) i
FROM z
GROUP BY ix, iy
)
CONNECT BY iy = PRIOR iy AND ix = PRIOR ix + 1
START WITH ix = 1
GROUP BY iy;
.......................................................................................
.........................................................................................
..........................................................................................
....................................................,,,,,,,,,...............................
................................................,,,,,,,,,,,,,,,,,,...........................
..............................................,,,,,,,,,,,,,,,,,,,,,,,,........................
............................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,......................
..........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,....................
.........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,..................
........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,.................
.......................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,...............
.......................................,,,,,,,,,,,,,,,,,,,,,,,,--,,,,,,,,,,,,,,,,,,,,..............
.....................................,,,,,,,,,,,,,,,,,,,,,,,,,,-+--,,,,,,,,,,,,,,,,,,,.............
...................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----,,,,,,,,,,,,,,,,,,,............
..................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,--- -----,,,,,,,,,,,,,,,,,...........
................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---++--++,,,,,,,,,,,,,,,,,,..........
...............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----%++---,,,,,,,,,,,,,,,,,..........
.............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----+%----,,,,,,,,,,,,,,,,,,.........
............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----- %%+----,,,,,,,,,,,,,,,,,,........
..........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---%-+% ----,,,,,,,,,,,,,,,,,,,.......
.........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---+ + # %+%---,,,,,,,,,,,,,,,,,,.......
.......................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----# # +---,,,,,,,,,,,,,,,,,,......
......................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-------% %-----,,,,,,,,,,,,,,,,,......
....................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---------+ ------,,,,,,,,,,,,,,,,,.....
...................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----------+@ +-----------,,,,,,,,,,,,.....
.................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----@-------++ ++-----------,,,,,,,,,,,,....
................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,--+@% ---+ +@%%@ %%+@+@%------+-,,,,,,,,,,,....
...............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---- # ++% % @-----++--,,,,,,,,,,,...
.............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----+ % %%++ %+%@-,,,,,,,,,,,...
............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----+ % ++-,,,,,,,,,,,,..
...........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,------+ @---,,,,,,,,,,,,..
.........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-------++% ---,,,,,,,,,,,,..
........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,--------+ + %+---,,,,,,,,,,,,,.
.......,,,,,,,,,,,,,,,,,,,,,--------------------@ +----,,,,,,,,,,,,.
......,,,,,,,,,,,,,,,,,,,,,,- +-----------------+ ----,,,,,,,,,,,,.
......,,,,,,,,,,,,,,,,,,,,,--++------+---------+% +++--,,,,,,,,,,,,
.....,,,,,,,,,,,,,,,,,,,,,,--%+-----++--------- #+-,,,,,,,,,,,,
....,,,,,,,,,,,,,,,,,,,,,,----#%++--+@ -+-----+% --,,,,,,,,,,,,
....,,,,,,,,,,,,,,,,,,,,,,-----+## ++@ + +----% +--,,,,,,,,,,,,,
...,,,,,,,,,,,,,,,,,,,,,,------+@ @ @@++++# +--,,,,,,,,,,,,,
...,,,,,,,,,,,,,,,,,,,,,-------% #++% -,,,,,,,,,,,,,
..,,,,,,,,,,,,,,,,,,,,,------++%# %%@ %-,,,,,,,,,,,,,
..,,,,,,,,,,,,,,,,,,,--------+ % +--,,,,,,,,,,,,,
..,,,,,,,,,,,,,,,,,,-----+--++@ # --,,,,,,,,,,,,,
.,,,,,,,,,,,,,,,,,-------%+++% @--,,,,,,,,,,,,,,
.,,,,,,,,,,,-------------+ @ @ ---,,,,,,,,,,,,,,
.,,,,,,,,,---@--------@-+% +---,,,,,,,,,,,,,,
.,,,,,------- +-++++-+%%% +----,,,,,,,,,,,,,,
.,,,,,,------%--------++% +----,,,,,,,,,,,,,,
.,,,,,,,,,,--+----------++# ---,,,,,,,,,,,,,,
.,,,,,,,,,,,,------------+@@@% +--,,,,,,,,,,,,,,
.,,,,,,,,,,,,,,,,,------- +++% %--,,,,,,,,,,,,,,
..,,,,,,,,,,,,,,,,,,---------+@ @ --,,,,,,,,,,,,,
..,,,,,,,,,,,,,,,,,,,,------- # %@ +--,,,,,,,,,,,,,
..,,,,,,,,,,,,,,,,,,,,,-------++@ %+ %-,,,,,,,,,,,,,
...,,,,,,,,,,,,,,,,,,,,,------- %++% %-,,,,,,,,,,,,,
...,,,,,,,,,,,,,,,,,,,,,,------+# %# #@ ++++ +--,,,,,,,,,,,,,
....,,,,,,,,,,,,,,,,,,,,,,-----+ %%++% +@+----+ +--,,,,,,,,,,,,,
....,,,,,,,,,,,,,,,,,,,,,,,---%+++--+#+--------% #--,,,,,,,,,,,,
.....,,,,,,,,,,,,,,,,,,,,,,--++-----%%--------- @#--,,,,,,,,,,,,
......,,,,,,,,,,,,,,,,,,,,,---------------------+@ +-++,,,,,,,,,,,,.
.......,,,,,,,,,,,,,,,,,,,,,--------------------+ ----,,,,,,,,,,,,.
........,,,,,,,,,,,,,,,,,,,,----,,,------------- #+----,,,,,,,,,,,,.
.........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-------+ + +---,,,,,,,,,,,,,.
..........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,--------+%# #---,,,,,,,,,,,,..
...........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,------+# @ @---,,,,,,,,,,,,..
............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----+# + @--,,,,,,,,,,,,..
.............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---+% %+@ %+-+ +++%-,,,,,,,,,,,...
...............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----% %@++ # % -----++-,,,,,,,,,,,,...
................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-- ++ ---+ + +%@ %++++++------%-,,,,,,,,,,,....
..................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---- -------++ +------------,,,,,,,,,,,,....
...................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----------+% +--------,,,,,,,,,,,,,,,.....
.....................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,--------+ -----,,,,,,,,,,,,,,,,,,.....
......................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-------+ ----,,,,,,,,,,,,,,,,,,......
........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----+% %#---,,,,,,,,,,,,,,,,,,,......
.........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---+%+%@ %+%%--,,,,,,,,,,,,,,,,,,.......
...........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---+-+% %----,,,,,,,,,,,,,,,,,,........
............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----+%@+---,,,,,,,,,,,,,,,,,,,........
..............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----+%----,,,,,,,,,,,,,,,,,,.........
...............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----%+ +--,,,,,,,,,,,,,,,,,..........
.................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---++----,,,,,,,,,,,,,,,,,...........
..................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,---@-----,,,,,,,,,,,,,,,,,...........
....................................,,,,,,,,,,,,,,,,,,,,,,,,,,,-----,,,,,,,,,,,,,,,,,,,............
.....................................,,,,,,,,,,,,,,,,,,,,,,,,,,--%,,,,,,,,,,,,,,,,,,,,.............
.......................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,...............
........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,................
........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,.................
.........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,..................
..........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,....................
............................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,......................
.............................................,,,,,,,,,,,,,,,,,,,,,,,,........................
................................................,,,,,,,,,,,,,,,,,...........................
.....................................................,,,,..................................
..........................................................................................
.........................................................................................
......................................................................................
....................................................................................
.................................................................................
Comment