mandelbrot

why mandelbrot's boundary is 2? [closed]

被刻印的时光 ゝ 提交于 2019-12-11 19:52:38
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I'm trying to understand why we're iterating through Mandelbrot points until |z| < 4. why 4? is there somekind of a law? or is it based on statistical measurements? thanks, igal 回答1: Consider the Mandelbrot set with along y=0, which would would be z(i) = z(i-1)^2 + c . Consider when c = (x=-2, y=0) z(0) = 0 z(1)

Coloring the Mandelbrot set in Matlab

≡放荡痞女 提交于 2019-12-11 12:57:12
问题 I made a program to calculate points that are in the mandelbrot set. For the points not belonging to the mandelbrot set I keep track of how many iterations it take for the starting point to diverge to where the magnitude is greater that 2. Basically for every point not in the mandelbrot set I have a counter of how fast it diverges on a scale of 1 to 256. What id like to do is give each point a color according to how fast it diverges. For instance the points that diverge in 255 iterations

some mandelbrot drawing routine from c to sse2

我们两清 提交于 2019-12-08 02:47:00
问题 I want to rewrite such simple routine to SSE2 code, (preferably in nasm) and I am not totally sure how to do it, two things not clear (how to express calculations (inner loop and those from outer loop too) and how to call c code function "SetPixelInDibInt(i ,j, palette[n]);" from under staticaly linked asm code void DrawMandelbrotD(double ox, double oy, double lx, int N_ITER) { double ly = lx * double(CLIENT_Y)/double(CLIENT_X); double dx = lx / CLIENT_X; double dy = ly / CLIENT_Y; double ax

How do I let multiple Threads paint onto an AWT component?

做~自己de王妃 提交于 2019-12-08 01:18:33
问题 EDIT: solved, look below for my solution. first of all, this is my very first question here, so if I make any mistakes, please tell me. I am trying to write a Mandelbrot Fractal Program in Java, for training purposes. The ideal for all the functionality I want to have is the Fractalizer (http://www.fractalizer.de/en/), but for now, I will be happy with a program that draws the Mandelbrot Set on the screen (instead of, for example, writing it to an image file). Of course, I want the program to

Mandelbrot set displays incorrectly

给你一囗甜甜゛ 提交于 2019-12-07 02:00:51
问题 This is my attempt to program the Mandelbrot set in Python 3.5 using the Pygame module. import math, pygame pygame.init() def mapMandelbrot(c,r,dim,xRange,yRange): x = (dim-c)/dim y = (dim-r)/dim #print([x,y]) x = x*(xRange[1]-xRange[0]) y = y*(yRange[1]-yRange[0]) x = xRange[0] + x y = yRange[0] + y return [x,y] def checkDrawBox(surface): for i in pygame.event.get(): if i.type == pygame.QUIT: pygame.quit() elif i.type == pygame.MOUSEBUTTONDOWN: startXY = pygame.mouse.get_pos() boxExit =

MandelBrot set Using openCL

好久不见. 提交于 2019-12-06 12:10:40
问题 Trying to use the same code (sort of) as what I have used when running using TBB (threading building blocks). I don't have a great deal of experience with OpenCL, but I think most of the main code is correct. I believe the errors are in the .cl file, where it does the math. Here is my mandelbrot code in TBB: Mandelbrot TBB Here is my code in OpenCL Mandelbrot OpenCL Any help would be greatly appreciated. 回答1: I changed the code in the kernel, and it ran fine. My new kernel code is the

some mandelbrot drawing routine from c to sse2

一世执手 提交于 2019-12-06 11:15:44
I want to rewrite such simple routine to SSE2 code, (preferably in nasm) and I am not totally sure how to do it, two things not clear (how to express calculations (inner loop and those from outer loop too) and how to call c code function "SetPixelInDibInt(i ,j, palette[n]);" from under staticaly linked asm code void DrawMandelbrotD(double ox, double oy, double lx, int N_ITER) { double ly = lx * double(CLIENT_Y)/double(CLIENT_X); double dx = lx / CLIENT_X; double dy = ly / CLIENT_Y; double ax = ox - lx * 0.5 + dx * 0.5; double ay = oy - ly * 0.5 + dy * 0.5; static double re, im, re_n, im_n, c

How do I let multiple Threads paint onto an AWT component?

為{幸葍}努か 提交于 2019-12-06 09:59:48
EDIT: solved, look below for my solution. first of all, this is my very first question here, so if I make any mistakes, please tell me. I am trying to write a Mandelbrot Fractal Program in Java, for training purposes. The ideal for all the functionality I want to have is the Fractalizer ( http://www.fractalizer.de/en/ ), but for now, I will be happy with a program that draws the Mandelbrot Set on the screen (instead of, for example, writing it to an image file). Of course, I want the program to be fast, so I thought that I could split the calculation into multiple threads to utilize my multi

How does Mandelbrot perturbation work?

做~自己de王妃 提交于 2019-12-06 03:05:42
问题 Could someone please explain how perturbation described in this paper accelerates rendering the Mandelbrot set? I know how to render the Mandelbrot set using the traditional method where many iterations are performed for each pixel, but I don't quite understand what is being described in that paper. I compute the reference orbit like this: std::complex<double> Xo(some_x, some_y); std::complex<double> Xn(0,0); for (int n = 0; n < maxIterations; ++n) { orbit.push_back(Xn); Xn = Xn * Xn + Xo; }

Max resolution of .bmp file format

邮差的信 提交于 2019-12-05 06:10:11
问题 I have made a Mandelbrot fractal generator (who hasn't, I know) which can render directly to disk to generate huge fractals. My first test was a UHD 4k resolution which turned out great (8-bit colour for all of these examples). So I decided to go a little crazy and went 10x bigger in both dimensions, i.e. 38400 x 21600. The resulting file doesn't appear valid in that Photoshop can't open it but even looking at the file properties in Windows Explorer shows that the dimensions/etc are missing.