• 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!
Collapse

You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:

  • You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
  • You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  • If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Previously on "How to build a mandelbrot"

Collapse

  • northernladuk
    replied
    Originally posted by TheFaQQer View Post
    Beautiful
    You, sir, are a god amongst men....

    Leave a comment:


  • TheFaQQer
    replied
    PHP Code:
               .......................................................................................
              .........................................................................................
             ..........................................................................................
           ....................................................,,,,,,,,,...............................
          ................................................,,,,,,,,,,,,,,,,,,...........................
         ..............................................,,,,,,,,,,,,,,,,,,,,,,,,........................
        ............................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,......................
        ..........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,....................
       .........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,..................
      ........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,.................
     .......................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,...............
    .......................................,,,,,,,,,,,,,,,,,,,,,,,,--,,,,,,,,,,,,,,,,,,,,..............
    .....................................,,,,,,,,,,,,,,,,,,,,,,,,,,-+--,,,,,,,,,,,,,,,,,,,.............
    ...................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----,,,,,,,,,,,,,,,,,,,............
    ..................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,--- -----,,,,,,,,,,,,,,,,,...........
    ................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---++--++,,,,,,,,,,,,,,,,,,..........
    ...............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----%++---,,,,,,,,,,,,,,,,,..........
    .............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----+%----,,,,,,,,,,,,,,,,,,.........
    ............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----- %%+----,,,,,,,,,,,,,,,,,,........
    ..........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---%-+%   ----,,,,,,,,,,,,,,,,,,,.......
    .........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---+ + 
    #  %+%---,,,,,,,,,,,,,,,,,,.......
    .......................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----#      # +---,,,,,,,,,,,,,,,,,,......
    ......................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-------%       %-----,,,,,,,,,,,,,,,,,......
    ....................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---------+         ------,,,,,,,,,,,,,,,,,.....
    ...................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----------+@       +-----------,,,,,,,,,,,,.....
    .................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----@-------++       ++-----------,,,,,,,,,,,,....
    ................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,--+@% ---+ +@%%@     %%+@+@%------+-,,,,,,,,,,,....
    ...............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----  
    # ++%               % @-----++--,,,,,,,,,,,...
    .............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----+    %                  %%++ %+%@-,,,,,,,,,,,...
    ............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----+                         %    ++-,,,,,,,,,,,,..
    ...........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,------+                             @---,,,,,,,,,,,,..
    .........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-------++%                             ---,,,,,,,,,,,,..
    ........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,--------+ +                             %+---,,,,,,,,,,,,,.
    .......,,,,,,,,,,,,,,,,,,,,,--------------------@                                +----,,,,,,,,,,,,.
    ......,,,,,,,,,,,,,,,,,,,,,,- +-----------------+                                 ----,,,,,,,,,,,,.
    ......,,,,,,,,,,,,,,,,,,,,,--++------+---------+%                                 +++--,,,,,,,,,,,,
    .....,,,,,,,,,,,,,,,,,,,,,,--%+-----++---------                                     
    #+-,,,,,,,,,,,,
    ....,,,,,,,,,,,,,,,,,,,,,,----#%++--+@ -+-----+%                                     --,,,,,,,,,,,,
    ....,,,,,,,,,,,,,,,,,,,,,,-----+## ++@ + +----%                                    +--,,,,,,,,,,,,,
    ...,,,,,,,,,,,,,,,,,,,,,,------+@  @     @@++++#                                   +--,,,,,,,,,,,,,
    ...,,,,,,,,,,,,,,,,,,,,,-------%           #++%                                      -,,,,,,,,,,,,,
    ..,,,,,,,,,,,,,,,,,,,,,------++%#           %%@                                     %-,,,,,,,,,,,,,
    ..,,,,,,,,,,,,,,,,,,,--------+               %                                     +--,,,,,,,,,,,,,
    ..,,,,,,,,,,,,,,,,,,-----+--++@              
    #                                      --,,,,,,,,,,,,,
    .,,,,,,,,,,,,,,,,,-------%+++%                                                    @--,,,,,,,,,,,,,,
    .,,,,,,,,,,,-------------+ @ @                                                    ---,,,,,,,,,,,,,,
    .,,,,,,,,,---@--------@-+%                                                       +---,,,,,,,,,,,,,,
    .,,,,,------- +-++++-+%%%                                                       +----,,,,,,,,,,,,,,
    .,,,,,,------%--------++%                                                       +----,,,,,,,,,,,,,,
    .,,,,,,,,,,--+----------++
    #                                                       ---,,,,,,,,,,,,,,
    .,,,,,,,,,,,,------------+@@@%                                                    +--,,,,,,,,,,,,,,
    .,,,,,,,,,,,,,,,,,------- +++%                                                    %--,,,,,,,,,,,,,,
    ..,,,,,,,,,,,,,,,,,,---------+@              @                                      --,,,,,,,,,,,,,
    ..,,,,,,,,,,,,,,,,,,,,------- 
    #              %@                                    +--,,,,,,,,,,,,,
    ..,,,,,,,,,,,,,,,,,,,,,-------++@           %+                                      %-,,,,,,,,,,,,,
    ...,,,,,,,,,,,,,,,,,,,,,-------            %++%                                     %-,,,,,,,,,,,,,
    ...,,,,,,,,,,,,,,,,,,,,,,------+
    #  %#   #@ ++++                                    +--,,,,,,,,,,,,,
    ....,,,,,,,,,,,,,,,,,,,,,,-----+ %%++% +@+----+                                    +--,,,,,,,,,,,,,
    ....,,,,,,,,,,,,,,,,,,,,,,,---%+++--+
    #+--------%                                    #--,,,,,,,,,,,,
    .....,,,,,,,,,,,,,,,,,,,,,,--++-----%%---------                                    @#--,,,,,,,,,,,,
    ......,,,,,,,,,,,,,,,,,,,,,---------------------+@                                +-++,,,,,,,,,,,,.
    .......,,,,,,,,,,,,,,,,,,,,,--------------------+                                 ----,,,,,,,,,,,,.
    ........,,,,,,,,,,,,,,,,,,,,----,,,-------------                                
    #+----,,,,,,,,,,,,.
    .........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-------+ +                              +---,,,,,,,,,,,,,.
    ..........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,--------+%
    #                           #---,,,,,,,,,,,,..
    ...........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,------+#                        @   @---,,,,,,,,,,,,..
    ............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----+#                        +    @--,,,,,,,,,,,,..
    .............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---+%   %+@                 %+-+ +++%-,,,,,,,,,,,...
    ...............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----% %@++              
    # %  -----++-,,,,,,,,,,,,...
    ................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-- ++ ---+ + +%@     %++++++------%-,,,,,,,,,,,....
    ..................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---- -------++       +------------,,,,,,,,,,,,....
    ...................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----------+%       +--------,,,,,,,,,,,,,,,.....
    .....................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,--------+         -----,,,,,,,,,,,,,,,,,,.....
    ......................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-------+        ----,,,,,,,,,,,,,,,,,,......
    ........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,----+%      %
    #---,,,,,,,,,,,,,,,,,,,......
    .........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---+%+%@  %+%%--,,,,,,,,,,,,,,,,,,.......
    ...........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---+-+%  %----,,,,,,,,,,,,,,,,,,........
    ............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----+%@+---,,,,,,,,,,,,,,,,,,,........
    ..............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----+%----,,,,,,,,,,,,,,,,,,.........
    ...............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----%+ +--,,,,,,,,,,,,,,,,,..........
    .................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---++----,,,,,,,,,,,,,,,,,...........
    ..................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,---@-----,,,,,,,,,,,,,,,,,...........
    ....................................,,,,,,,,,,,,,,,,,,,,,,,,,,,-----,,,,,,,,,,,,,,,,,,,............
    .....................................,,,,,,,,,,,,,,,,,,,,,,,,,,--%,,,,,,,,,,,,,,,,,,,,.............
    .......................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,...............
     ........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,................
      ........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,.................
       .........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,..................
        ..........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,....................
         ............................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,......................
          .............................................,,,,,,,,,,,,,,,,,,,,,,,,........................
           ................................................,,,,,,,,,,,,,,,,,...........................
            .....................................................,,,,..................................
             ..........................................................................................
              .........................................................................................
               ......................................................................................
                ....................................................................................
                  ................................................................................. 
    Beautiful

    Leave a comment:


  • TheFaQQer
    replied
    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

    Leave a comment:


  • DimPrawn
    replied
    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.

    Leave a comment:


  • Malcolm Buggeridge
    replied
    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?

    Leave a comment:


  • MarillionFan
    replied
    Originally posted by northernladuk View Post
    You can make some really pretty pictures using this Mandelbrot Set Generator...

    Mandelbrot Set Generator

    Leave a comment:


  • northernladuk
    started a topic How to build a mandelbrot

    How to build a mandelbrot

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

    Mandelbrot Set Generator

Working...
X