• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

How to build a mandelbrot

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    How to build a mandelbrot

    You can make some really pretty pictures using this Mandelbrot Set Generator...

    Mandelbrot Set Generator
    'CUK forum personality of 2011 - Winner - Yes really!!!!

    #2
    Originally posted by northernladuk View Post
    You can make some really pretty pictures using this Mandelbrot Set Generator...

    Mandelbrot Set Generator
    What happens in General, stays in General.
    You know what they say about assumptions!

    Comment


      #3
      Originally posted by northernladuk View Post
      You can make some really pretty pictures using this Mandelbrot Set Generator...

      Mandelbrot Set Generator
      Is quility a metric pertaining to fractals or just a typo?

      Comment


        #4
        Originally posted by northernladuk View Post
        You can make some really pretty pictures using this Mandelbrot Set Generator...

        Mandelbrot Set Generator
        That was really something 20 years ago on the Spectrum.

        Comment


          #5
          I prefer to let my database do it for me

          PHP Code:
          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 
          )
          ,    
          AS ( SELECT ix
                      
          ,      iy
                      
          ,      i
                      FROM   xgen
                      
          ,      ygen
                      MODEL PARTITION BY 
          (ixiy)
                      
          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),1i
                  FROM   z
                  GROUP BY ix
          iy
                
          )
          CONNECT BY iy PRIOR iy AND ix PRIOR ix 1
          START WITH ix 
          1
          GROUP BY iy

          Best Forum Advisor 2014
          Work in the public sector? You can read my FAQ here
          Click here to get 15% off your first year's IPSE membership

          Comment


            #6
            PHP Code:
                       .......................................................................................
                      .........................................................................................
                     ..........................................................................................
                   ....................................................,,,,,,,,,...............................
                  ................................................,,,,,,,,,,,,,,,,,,...........................
                 ..............................................,,,,,,,,,,,,,,,,,,,,,,,,........................
                ............................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,......................
                ..........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,....................
               .........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,..................
              ........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,.................
             .......................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,...............
            .......................................,,,,,,,,,,,,,,,,,,,,,,,,--,,,,,,,,,,,,,,,,,,,,..............
            .....................................,,,,,,,,,,,,,,,,,,,,,,,,,,-+--,,,,,,,,,,,,,,,,,,,.............
            ...................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----,,,,,,,,,,,,,,,,,,,............
            ..................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,--- -----,,,,,,,,,,,,,,,,,...........
            ................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---++--++,,,,,,,,,,,,,,,,,,..........
            ...............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----%++---,,,,,,,,,,,,,,,,,..........
            .............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----+%----,,,,,,,,,,,,,,,,,,.........
            ............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----- %%+----,,,,,,,,,,,,,,,,,,........
            ..........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---%-+%   ----,,,,,,,,,,,,,,,,,,,.......
            .........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---+ + 
            #  %+%---,,,,,,,,,,,,,,,,,,.......
            .......................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----#      # +---,,,,,,,,,,,,,,,,,,......
            ......................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-------%       %-----,,,,,,,,,,,,,,,,,......
            ....................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---------+         ------,,,,,,,,,,,,,,,,,.....
            ...................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----------+@       +-----------,,,,,,,,,,,,.....
            .................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----@-------++       ++-----------,,,,,,,,,,,,....
            ................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,--+@% ---+ +@%%@     %%+@+@%------+-,,,,,,,,,,,....
            ...............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----  
            # ++%               % @-----++--,,,,,,,,,,,...
            .............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----+    %                  %%++ %+%@-,,,,,,,,,,,...
            ............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----+                         %    ++-,,,,,,,,,,,,..
            ...........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,------+                             @---,,,,,,,,,,,,..
            .........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-------++%                             ---,,,,,,,,,,,,..
            ........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,--------+ +                             %+---,,,,,,,,,,,,,.
            .......,,,,,,,,,,,,,,,,,,,,,--------------------@                                +----,,,,,,,,,,,,.
            ......,,,,,,,,,,,,,,,,,,,,,,- +-----------------+                                 ----,,,,,,,,,,,,.
            ......,,,,,,,,,,,,,,,,,,,,,--++------+---------+%                                 +++--,,,,,,,,,,,,
            .....,,,,,,,,,,,,,,,,,,,,,,--%+-----++---------                                     
            #+-,,,,,,,,,,,,
            ....,,,,,,,,,,,,,,,,,,,,,,----#%++--+@ -+-----+%                                     --,,,,,,,,,,,,
            ....,,,,,,,,,,,,,,,,,,,,,,-----+## ++@ + +----%                                    +--,,,,,,,,,,,,,
            ...,,,,,,,,,,,,,,,,,,,,,,------+@  @     @@++++#                                   +--,,,,,,,,,,,,,
            ...,,,,,,,,,,,,,,,,,,,,,-------%           #++%                                      -,,,,,,,,,,,,,
            ..,,,,,,,,,,,,,,,,,,,,,------++%#           %%@                                     %-,,,,,,,,,,,,,
            ..,,,,,,,,,,,,,,,,,,,--------+               %                                     +--,,,,,,,,,,,,,
            ..,,,,,,,,,,,,,,,,,,-----+--++@              
            #                                      --,,,,,,,,,,,,,
            .,,,,,,,,,,,,,,,,,-------%+++%                                                    @--,,,,,,,,,,,,,,
            .,,,,,,,,,,,-------------+ @ @                                                    ---,,,,,,,,,,,,,,
            .,,,,,,,,,---@--------@-+%                                                       +---,,,,,,,,,,,,,,
            .,,,,,------- +-++++-+%%%                                                       +----,,,,,,,,,,,,,,
            .,,,,,,------%--------++%                                                       +----,,,,,,,,,,,,,,
            .,,,,,,,,,,--+----------++
            #                                                       ---,,,,,,,,,,,,,,
            .,,,,,,,,,,,,------------+@@@%                                                    +--,,,,,,,,,,,,,,
            .,,,,,,,,,,,,,,,,,------- +++%                                                    %--,,,,,,,,,,,,,,
            ..,,,,,,,,,,,,,,,,,,---------+@              @                                      --,,,,,,,,,,,,,
            ..,,,,,,,,,,,,,,,,,,,,------- 
            #              %@                                    +--,,,,,,,,,,,,,
            ..,,,,,,,,,,,,,,,,,,,,,-------++@           %+                                      %-,,,,,,,,,,,,,
            ...,,,,,,,,,,,,,,,,,,,,,-------            %++%                                     %-,,,,,,,,,,,,,
            ...,,,,,,,,,,,,,,,,,,,,,,------+
            #  %#   #@ ++++                                    +--,,,,,,,,,,,,,
            ....,,,,,,,,,,,,,,,,,,,,,,-----+ %%++% +@+----+                                    +--,,,,,,,,,,,,,
            ....,,,,,,,,,,,,,,,,,,,,,,,---%+++--+
            #+--------%                                    #--,,,,,,,,,,,,
            .....,,,,,,,,,,,,,,,,,,,,,,--++-----%%---------                                    @#--,,,,,,,,,,,,
            ......,,,,,,,,,,,,,,,,,,,,,---------------------+@                                +-++,,,,,,,,,,,,.
            .......,,,,,,,,,,,,,,,,,,,,,--------------------+                                 ----,,,,,,,,,,,,.
            ........,,,,,,,,,,,,,,,,,,,,----,,,-------------                                
            #+----,,,,,,,,,,,,.
            .........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-------+ +                              +---,,,,,,,,,,,,,.
            ..........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,--------+%
            #                           #---,,,,,,,,,,,,..
            ...........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,------+#                        @   @---,,,,,,,,,,,,..
            ............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----+#                        +    @--,,,,,,,,,,,,..
            .............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---+%   %+@                 %+-+ +++%-,,,,,,,,,,,...
            ...............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----% %@++              
            # %  -----++-,,,,,,,,,,,,...
            ................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-- ++ ---+ + +%@     %++++++------%-,,,,,,,,,,,....
            ..................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---- -------++       +------------,,,,,,,,,,,,....
            ...................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----------+%       +--------,,,,,,,,,,,,,,,.....
            .....................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,--------+         -----,,,,,,,,,,,,,,,,,,.....
            ......................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-------+        ----,,,,,,,,,,,,,,,,,,......
            ........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----+%      %
            #---,,,,,,,,,,,,,,,,,,,......
            .........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---+%+%@  %+%%--,,,,,,,,,,,,,,,,,,.......
            ...........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---+-+%  %----,,,,,,,,,,,,,,,,,,........
            ............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----+%@+---,,,,,,,,,,,,,,,,,,,........
            ..............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----+%----,,,,,,,,,,,,,,,,,,.........
            ...............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----%+ +--,,,,,,,,,,,,,,,,,..........
            .................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---++----,,,,,,,,,,,,,,,,,...........
            ..................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,---@-----,,,,,,,,,,,,,,,,,...........
            ....................................,,,,,,,,,,,,,,,,,,,,,,,,,,,-----,,,,,,,,,,,,,,,,,,,............
            .....................................,,,,,,,,,,,,,,,,,,,,,,,,,,--%,,,,,,,,,,,,,,,,,,,,.............
            .......................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,...............
             ........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,................
              ........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,.................
               .........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,..................
                ..........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,....................
                 ............................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,......................
                  .............................................,,,,,,,,,,,,,,,,,,,,,,,,........................
                   ................................................,,,,,,,,,,,,,,,,,...........................
                    .....................................................,,,,..................................
                     ..........................................................................................
                      .........................................................................................
                       ......................................................................................
                        ....................................................................................
                          ................................................................................. 
            Beautiful
            Best Forum Advisor 2014
            Work in the public sector? You can read my FAQ here
            Click here to get 15% off your first year's IPSE membership

            Comment


              #7
              Originally posted by TheFaQQer View Post
              Beautiful
              You, sir, are a god amongst men....
              'CUK forum personality of 2011 - Winner - Yes really!!!!

              Comment

              Working...
              X