Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Programming a Fractal.

  1. Jun 13, 2008 #1
    Can someone tell me how to do this?
  2. jcsd
  3. Jun 13, 2008 #2


    User Avatar

    Staff: Mentor

    Tell us what you know so far. Do you know what an initiator and a generator are, in the context of fractals?
  4. Jun 14, 2008 #3
    I only know what a compiler is and don't know how to work it. I am completely new to this but want to get ahead so that when we study this next year I will not fall behind too far.

    I am guessing they are as they sound.

  5. Jun 14, 2008 #4


    User Avatar

    Staff: Mentor

    It won't hurt if you will be a little bit more specific. Do you want to write a program that will draw a fractal? Any fractal, or do you have something selected already?
  6. Jun 14, 2008 #5
    Perhaps a fractal that is already programmed and the software used so that I can read it and see where it comes from. A fractal that when you zoom in on it, it continues going in and in forever. Any fractal. I would like to know how to write a program that will zoom in on a fractal wherever you click it and it will zoom as long as you click it.
    I have never programmed before and this is completely new to me.
  7. Jun 14, 2008 #6

    jim mcnamara

    User Avatar
    Science Advisor
    Gold Member

    The math and the program code to generate a fractal are both simple.
    The graphics part eats your lunch. Why don't you download winfract and play with it?
    It's still free.
    Then you'll know at least the names of the things you're talking about. Plus, it is a lot of fun to mess with.

    winfract link is at the bottom of this page http://www.dwponline.com/fractals/

    Here is a simple mandelbrot set generator that uses glut (graphics), if you want to see what the code looks like:
  8. Jun 14, 2008 #7


    User Avatar

    Staff: Mentor

    So you are probably aiming too high. Start with something simpler. Write program that'll display Fibonacci numbers or something. Displaying graphic and getting input from mouse will require already some fluency in programming.
  9. Jun 14, 2008 #8
    Ok, how do I do that? The Fibonacci sequence is SOOOOOOOO cool. I just had to say that. Nature is amazing, like wow.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Programming a Fractal.
  1. Root programming (Replies: 3)

  2. Explain this program. (Replies: 3)

  3. Programming languages (Replies: 16)

  4. HMI programming (Replies: 1)