371 questions
2
votes
2
answers
179
views
How could I zoom in on a generated Mandelbrot set without consuming too many resources?
I am trying to make a Mandelbrot set display, with the following code:
import numpy as np
import matplotlib.pyplot as plt
plt.rcParams['toolbar'] = 'None'
def mandelbrot(c, max_iter):
z = 0
...
2
votes
1
answer
100
views
Mandelbrot set Coloring Error Around Period-2 Bulb (not colormap related)
I wrote some code to render the Mandelbrot set with continuous coloring, but the bulbs on the period-2 blub are not colored correctly. regions that should not escape are colored as though the escape ...
1
vote
0
answers
107
views
The efficient approximation algorithm of mandelbrot set?
While implementing the mandelbrot set using java, I found that the rendering time of the program is ridiculously slower than other programs.
public class FractalFormula {
private Complex[] ...
0
votes
1
answer
123
views
Issue with synchronization of threads using condition variables to output the Mandelbrot
I try to syncronize threads with condition variables to output mandelbrot but i get wrong mandelbort.
The functions output_mandel_line and compute_mandel_line are given and are correct. I made the
...
0
votes
0
answers
64
views
Java Vector API (Mandelbrot calculation)
I was experimenting with benchmarking a serial version of mandelbrot calulation vs a version using the vector API.
Here's the code:
public class Main {
public static void main(String[] args) {
...
1
vote
3
answers
74
views
Matplotlib save format to keep zoomability
I'm calculating Mandelbrot sets and plotting them with matplotlib. I plot them with low quality for it to not take t0o much time processing. But I want to start to plot them with better quality and ...
5
votes
5
answers
669
views
How to make faster Mandelbrot set plot
Ive written a function which uses turtle to draw a Mandelbrot set, however its very slow (~10's minutes) for any decent resolution, how could I make my code more efficient?
import math, turtle
screen ...
0
votes
0
answers
186
views
Generating the mandelbrot set - zoom, area and iteration depth
I have a list of areas of interest where I would like to zoom into the Mandelbrot set. Unfortunately, I don't know the iteration depths to be used.
Question 1: Given (x_min, x_max, y_min, y_max), is ...
0
votes
0
answers
69
views
Discrete approximation of the Mandelbrot set
I have the following task: draw a discrete approximation of the Mandelbrot set for the quadratic family on the complex plane. I need to do this with a list-based implementation.
I have already created ...
0
votes
1
answer
43
views
OpenGL texture is fainter than it should be, kind of mutliplied by top right pixel
I had an idea for optimizing my program, by converting the screen to a texture, and updating the texture when the computer is done calculating, assuring a smooth zoom.
I implemented the texture part, ...
2
votes
1
answer
141
views
Smooth color for mandelbrot set using p5.js
I was playing with p5.js trying to recreate the Mandelbrot set.
I have created the set itself but I am having a problem with coloring into the right way.
I have followed up the pseudocode in the wiki ...
4
votes
1
answer
493
views
How to achive infinite zoom for Mandelbrot set depictions with WebGPU?
I see that this question is quite popular, but I couldn't find one in the context of WebGPU.
This is the shader code I wrote for rendering the Mandelbrot set.
@vertex
fn vert_main(@location(0) pos: ...
1
vote
1
answer
78
views
Why is there a double Image when using SDL2?
I have a Mandelbrot set rendering code in c++and I'm using SDL2 to display the image. When I wanted to make my program interactive I reached a problem. By pressing W my code should clear the previous ...
0
votes
1
answer
91
views
Why do my functions not work in parallel?
I tried to use OpenMP in my C program for creating the Mandelbrot set. I use two functions f(z) and d(z) defined in the file.
When I use them inside a parallel section direct code:
dc = 5*z*z*z*z*dc + ...
0
votes
1
answer
1k
views
OSError: [WinError 87] The parameter is incorrect when using np.vstack()
I'm trying to code up the Mandelbrot set with CPU multiprocessing for more speed. Right now, I want to render a 32768x32768 image of the set. I have been running into an OSError: [WinError 87] The ...
0
votes
1
answer
65
views
Mandelbrot displays unprecisely
I am trying to visualize the Mandelbrot set using UnityEngine and C#. What I have right now does not look completely wrong but also not right. The Circular shapes for example are very blurred out. Why ...
1
vote
2
answers
129
views
Optimise Mandelbrot set plotter in python using pygame
I have used 2 for loops to check if the points are within the set, but apparently it takes too much time, giving less details on the plot itself. How can I optimise the code to run faster, and thus ...
3
votes
1
answer
180
views
Python Tkinter mandelbrot set more accurate than c without a clear explanation
The following code draws a Mandelbrot set using Tkinter's Photo image format , using 256 iterations and a 256 color custom palette.
If you run it it displays a beautiful image with long smoky ...
0
votes
0
answers
70
views
Categorizing every pixel in a Mandelbrot-image as "fully inside", "fully outside" or "undeterminded"
I am looking for a way to categorize every pixel of a Mandelbrot image (zoomed out) as "pixel is fully inside", "pixel is fully outside" or "undetermined". "Fully ...
-1
votes
1
answer
246
views
making mandelbrot set multithreaded
I want to make a Mandelbrot set, and make the whole process multithreaded. I am trying to do this with the internal thread library (or how that is exactly called). I can't use openmp for some reason. ...
0
votes
0
answers
83
views
How do I zoom in the mandelbrot set using a conical slice with angle 7/20pi
We are trying to get the correct code that zooms in the mandelbrot set using a conical slice of 7/20pi. This is the code we've tried, but it only gives us the madelbrot set with the angle and doesn't ...
1
vote
1
answer
84
views
A Mandelbrot Comparison Logic issue that refuses to be resolved
I want to see the implementation of the Mandelbrot Set working (script provided by BruXy.regnet.cz), but one line of code is giving me problems to resolve.
In the While-loop, a logic AND comparison is ...
4
votes
1
answer
301
views
My Mandelbrot Set displays wrong outlines when plotting with few iterations
I'm writing a program that plots the Mandelbrot set in C.
I've been able to display it and it looks fine however when I lower the number of iterations I get this effect that generates what I can only ...
0
votes
1
answer
145
views
Why are the colors of my Mandelbrot set crooked looking and not nice and symmetric?
I am wondering why is the background of my Mandelbrot set not as nice as the background on the other picture. Also, why does the Mandelbrot set still show up if I set the number 4 in the if statement ...
3
votes
0
answers
303
views
How to zoom/move into the Mandelbrot set
I'm doing the Mandelbrot set in c as a school project.
This is my code:
int mandelbrot(int x, int y, t_data *data)
{
double complex c;
double complex z;
double cx;
double ...
4
votes
1
answer
251
views
How to prevent my Mandelbrotset code from getting blurry
I have written the mandelbrotset in java,but if i want to zoom into it it gets blurry after around 14 clicks, no matter the Maxiterration number, if its 100 it gets blurry and if its 100000 it gets ...
1
vote
0
answers
451
views
parallelizing Mandelbrot using MPI
I am trying to parallelize the Mandelbrot.
the correct output should be around 1.510659. however I am not getting that correctly.
** PROGRAM: Mandelbrot area
**
** PURPOSE: Program to compute the ...
-2
votes
1
answer
280
views
Zooming in on mandelbrot in python
This is my current code which is currently creating two images instead of zooming in. How would I change the code to create on fractal that zooms in its self? Thank you so much!
import numpy as np
...
1
vote
1
answer
85
views
Setting Mandelbrot Python Image Background Color to Cyan
How do I set the Mandelbrot Set background to cyan? I don't understand the code.
Here's the code:
# Python code for Mandelbrot Fractal
# Import necessary libraries
from PIL import Image
from numpy ...
1
vote
0
answers
193
views
Is there a faster way to render the Mandelbrot set for an animation?
I'm trying to code the Mandelbrot set as a fun project. I did it on my own, so it probably isn't optimized very well. I have a few questions about how to make my code better and how to add certain ...
0
votes
0
answers
25
views
Mendelbrot Calculation Code Keeps Returning 2 for IterationCount
I'm working on writing a Mendelbrot renderer in C# to practice multithreading, but am having an issue where my calculation code maxes out at 2 iterations. I don't really understand why since the ...
0
votes
1
answer
512
views
Display object name in Windows Forms
I'm working on a project where I need to make an interactive windows forms application displaying the mandelbrot set. I now want to implement a drop down list on this window, where you can choose ...
0
votes
0
answers
2k
views
How many iterations of the Mandelbrot set for an accurate picture at a certain zoom?
I have implemented the mandelbrot set algorithm in Java which I am using to make an animation of zooming into the set. My problem is that the algorithm is performing very slowly since I have it set ...
0
votes
1
answer
74
views
How to define the matrix that will later contain Mandelbrot
I recently developed a simple function that does the work of defining whether a complex number is stable or not, to display the Mandelbrot set. She looks like this:
def mandelbrot(x, y):
c = ...
0
votes
1
answer
222
views
Mutli Threaded Mandelbrot Set viewer with Java Swing
Attempting a multi-threaded Mandelbrot Set viewer in Java using Swing graphics. I've seen a few Mandelbrot Set programs and other multi threaded Swing apps that use BufferedImage and/or SwingWorker, ...
0
votes
1
answer
472
views
gpu.js with BigDecimal or float64array possible?
I am writing a mandelbrot-calculator with the help of gpu.js and till now, everything works perfectly fine. The only issue I am facing is, that the GPU only wants to compute 32-Bit floats. Or at least ...
0
votes
1
answer
106
views
Progress Bar Causes Program to Halt and Lock, How Can I Fix It?
Below is the current code that I am working with. When I comment out the code to run the progress_bar function, code works perfectly as expected with the mandelbrot printed out into a seperate image ...
1
vote
2
answers
228
views
Multi-threading slower than single thread
I am new to parallel programming. I have been playing around with multi-threading and for some reason, multi-threading the Mandelbrot set is slower than running a single thread. I have been trying to ...
1
vote
1
answer
58
views
Can you refer to an original variable value after using a while loop in Python 3 while making a Mandelbrot iteration bound/unbound tester?
I'm making a Python 3 program where it tells you to enter a rational number, converts that number into a floating point, passes it through a while loop where it actually iterates, then notifies the ...
0
votes
1
answer
73
views
Mandelbrot Set function crashes
i made a sim for the Mandelbrot Set function, zn + 1 = power(zn) + c
and it work but when i get to the point were the function is unstable it crashes, now i have a boolen that when true makes a wire ...
1
vote
1
answer
354
views
Drawing a Mandelbrot Set
I'm trying to make the function of the Mandelbrot Set, and I'm not sure what I'm doing wrong or right, here's the code:
private void StartCircles()
{
float savePower = BlackCircle.anchoredPosition....
1
vote
1
answer
150
views
Updated iPython: Make your own Mandelbrot image not appearing
This is my first question so I am not sure if the formatting is correct. I am reading the book Make Your Own Mandelbrot by Tariq Rashid using iPython (Jupyter Notebook). It seems that iPython has ...
1
vote
1
answer
782
views
CUDA- Invalid __global__ write of size 4
I have implemented the Mandelbrot set in Cuda. When I input the height and width present in the attached code I get this error by running the cuda-memcheck command. What is it caused by? I believe ...
1
vote
1
answer
396
views
"Big Float" Mandelbrot runs slower on GPU than CPU
I just ported over my "big float" implementation over to OpenCL, but it turns out that the GPU was slower than the CPU? That's quite surprising as I thought that Mandelbrot was an ...
1
vote
0
answers
132
views
How to (make a ) scale for C# in a panel?
Hi im new to c# and I am trying to learn how to (make a) scale in a panel. I have created a Mandelbrot, but now I have to zoom in on -2 to 2 in both axes.
My question is, how do I make a scale (e.g x,...
2
votes
1
answer
211
views
Issue with Mandelbrot smooth coloring
I implemented the regular algorithm to display the Mandelbrot set and colour it, and
now I'm working on the smooth colouring features using a 255 colourmap.
This part is already well documented online ...
2
votes
1
answer
529
views
Implementing series approximation/perturbation theory for WebGL2 based Mandelbrot viewer application
I have started building a mandelbrot viewer application with WebGL2 and JavaScript and am trying to implement series approximation at a basic level. I'm currently getting weird/distored/incomplete ...
0
votes
0
answers
212
views
zooming into mandelbrot set does not work as planned
I changed some things but i still have a similar problem. I am working on Mandelbrot zoom. I try to zoom in deeper at branches. I count the consecutive points in the set and return the branch if it ...
1
vote
2
answers
1k
views
Mandelbrot Set C# not doing what it's supposed to
I am new to coding and I have started my journey by learning C# as my first programming language. As an assigment I am trying to code a program that draws a Mandelbrot set, but it is not drawing what ...
0
votes
1
answer
1k
views
PIL ImageDraw.Draw() doesn't work when used in a function
I made a program that renders the Mandelbrot set to an image. I put the draw.point() method in a function, but it doesn't seem to actually draw on the final image, but if I put im.save() in the ...