NTNUJAVA Virtual Physics LaboratoryEnjoy the fun of physics with simulations! Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
April 20, 2021, 05:47:56 am

Never underestimate others. Never overestimate oneself. ...Wisdom

 Pages: [1]   Go Down
 Author Topic: The Mandelbrot set  (Read 3603 times) 0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
Fu-Kwun Hwang
Hero Member

Offline

Posts: 3086

 « Embed this message on: June 13, 2010, 02:17:54 pm »

The Mandelbrot set
The Mandelbrot set consists of points, c, in the complex plane that obey the following rule
Generate a new complex number, z', by multiplying z by itself and adding the result to c. z' = z2 + c.
Repeat steps 1 and 2. If the complex number z goes toward infinity, then the starting point, c, is not a member of the Mandelbrot set. All numbers that remain bounded are members of the set.
It can be shown that if the magnitude of z is greater than 2 , then z will approach infinity. The code assumes that the number c is in the set if |z|>2 after 256 iterations. In order to show how rapidly a number fails the test, we color the pixel corresponding to the number of iterations.

Author : Francisco Esquembre and Wolfgang Christian.
Text and original idea from the Open Source Physics project manual
Date : July 2003

Embed a running copy of this simulation

Embed a running copy link(show simulation in a popuped window)
Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list