Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ ¹ ² ³ °
 

You are not logged in. #1 20071018 09:32:46
The Mandelbrot Set and Julia SetsDoes anyone know the difference? There are 10 types of people in the world, those who understand binary, those who don't, and those who can use induction. #2 20071018 17:05:41
Re: The Mandelbrot Set and Julia Setsboth sets use the same equation: in a manelbrot set, z_{0} = 0, and c is the point in the complex plane you are graphing in a julia set z_{0} is the point in the complex plane you are graphing, and c is some constant chosen for the whole fractal which gives you the different julia sets. code wise they are almost exactly the same aswell, for a mandelbrot you might have (modsqr(z) = z.r^2 + z.i^2) Code:bool isInMandelbrot(Complex c) { Complex z; for(int i = 0; i<MAX_ITERATIONS; i++) { z = z*z+c; if(z.modsqr()>4.0) { return false; } } return true; } and for julia: Code:Complex c (0.125,0.8); //random chosen constant bool isInJulia(Complex z) { for(int i = 0; i<MAX_ITERATIONS; i++) { z = z*z+c; if(z.modsqr()>4.0) { return false; } } return true; } Last edited by lucadeltodesco (20071018 17:11:56) The Beginning Of All Things To End. The End Of All Things To Come. #3 20071019 01:04:46
Re: The Mandelbrot Set and Julia SetsSo then there can be only one Mandelbrot Set, but there are an infinity of Julia sets, is that right? Last edited by bossk171 (20071025 05:34:48) There are 10 types of people in the world, those who understand binary, those who don't, and those who can use induction. 