Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 112231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:30:44+00:00 2026-05-11T02:30:44+00:00

I do not have any experience with programming fractals. Of course I’ve seen the

  • 0

I do not have any experience with programming fractals. Of course I’ve seen the famous Mandelbrot images and such.

Can you provide me with simple algorithms for fractals.

Programming language doesn’t matter really, but I’m most familiar with actionscript, C#, Java.

I know that if I google fractals, I get a lot of (complicated) information but I would like to start with a simple algorithm and play with it.

Suggestions to improve on the basic algorithm are also welcome, like how to make them in those lovely colors and such.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T02:30:44+00:00Added an answer on May 11, 2026 at 2:30 am

    Programming the Mandelbrot is easy.
    My quick-n-dirty code is below (not guaranteed to be bug-free, but a good outline).

    Here’s the outline: The Mandelbrot-set lies in the Complex-grid completely within a circle with radius 2.

    So, start by scanning every point in that rectangular area. Each point represents a Complex number (x + yi). Iterate that complex number:

    [new value] = [old-value]^2 + [original-value] while keeping track of two things:

    1.) the number of iterations

    2.) the distance of [new-value] from the origin.

    If you reach the Maximum number of iterations, you’re done. If the distance from the origin is greater than 2, you’re done.

    When done, color the original pixel depending on the number of iterations you’ve done. Then move on to the next pixel.

    public void MBrot() {     float epsilon = 0.0001; // The step size across the X and Y axis     float x;     float y;     int maxIterations = 10; // increasing this will give you a more detailed fractal     int maxColors = 256; // Change as appropriate for your display.      Complex Z;     Complex C;     int iterations;     for(x=-2; x<=2; x+= epsilon)     {         for(y=-2; y<=2; y+= epsilon)         {             iterations = 0;             C = new Complex(x, y);             Z = new Complex(0,0);             while(Complex.Abs(Z) < 2 && iterations < maxIterations)             {                 Z = Z*Z + C;                 iterations++;             }             Screen.Plot(x,y, iterations % maxColors); //depending on the number of iterations, color a pixel.         }     } } 

    Some details left out are:

    1.) Learn exactly what the Square of a Complex number is and how to calculate it.

    2.) Figure out how to translate the (-2,2) rectangular region to screen coordinates.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 66k
  • Answers 66k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Since you specifically ask about MFC, I assume you mean… May 11, 2026 at 11:26 am
  • added an answer I think there's a few more steps to accomplishing your… May 11, 2026 at 11:26 am
  • added an answer I'm sure you can access Reflection through PowerShell. You should… May 11, 2026 at 11:26 am

Related Questions

I do not have any experience with programming fractals. Of course I've seen the
I have to update old projects at work. I do not have any experience
I do not have problem as such but I am quite new to Ruby.
sorry but I do not have the actual code with me, but I will
I am using a machine on which I do not have root access and
I have a need to use extensionless URLs. I do not have access to
I need to get the td element of a table. I do not have
What are they and what are they good for? I do not have a
I do not currently have this issue , but you never know, and thought
I usually do not have difficulty to read JavaScript code but for this one

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.