1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP performace?

Discussion in 'PHP' started by goldensea80, Aug 18, 2005.

  1. #1
    goldensea80, Aug 18, 2005 IP
    SEMrush
  2. Connect

    Connect Guest

    Messages:
    191
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Oh, is it easy to code the mandelbrot generator?
     
    Connect, Aug 19, 2005 IP
  3. goldensea80

    goldensea80 Well-Known Member

    Messages:
    422
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    128
    #3
    Oh, yes. The plot the mandelbrot set is basically integrate a simple complex function:
    Z[0]=0
    Z[n+1]=Z[n]^2+C.
    Where C(x,y) is the considering point.
    For a given point x+iy, you can integrate the equation until n>=max_itteration, or until the distance from Z(real,img) to the origin (0,0): R=SQRT(Real^2+Img^2)>=2.
    If n>=itteration, the given point is consider in the Mandelbrot set, Otherwise it will be outside.
    Sound simple, huh?
     
    goldensea80, Aug 19, 2005 IP
  4. Connect

    Connect Guest

    Messages:
    191
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Oh, you don't expect a puppie to understand that? ;)
    Thanks for the tips anyway.
     
    Connect, Aug 19, 2005 IP
  5. goldensea80

    goldensea80 Well-Known Member

    Messages:
    422
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    128
    #5
    It is really not tough like it sounds, provided that you've learnt complex number.
     
    goldensea80, Aug 19, 2005 IP
  6. Connect

    Connect Guest

    Messages:
    191
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I have learnt and forgot ;)
     
    Connect, Aug 19, 2005 IP
  7. North Carolina SEO

    North Carolina SEO Well-Known Member

    Messages:
    1,327
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    105
    #7
    Have you tried the PHP forum?

    There may be some assistance there to use. :)
     
    North Carolina SEO, Aug 19, 2005 IP