How to generate and draw Mandelbrot sets with parallel code in R? #517
Replies: 2 comments
-
Henrik, "Nice images, but as an interpreted computer language R seems to be a terrible choice for generating Mandelbrot sets. It is basically a statistical tool. The major problem with M-set generation is the billions of computations needed. Parallelism is one approach, but before then you need a very fast iteration algorithm. – Weather Vane." So, it is better not to work this example in R ?. |
Beta Was this translation helpful? Give feedback.
-
See Whether or not R is a good choice for generating Mandelbrot sets in the first place is a different question and rather academic. Regardlessly, learning how to write R code that generates Mandelbrot sets in parallel is a great exercise in learning the basic concepts of how parallelization in R works. |
Beta Was this translation helpful? Give feedback.
-
I would like to do parallel coding in R. So far I have found some examples like the following, which works fine:
Now I would like to build a script to run in parallel the function that generates mandelbrot sets. In the following script, two Mandelbrot sets are generated and plotted, sequentially. I want to convert that process to parallel processing, in which both xlim, ylim and colors can be passed to the function, but I don't know how to do that. Below is the code that is intended to be parallel.
I would be very grateful if someone could help me to correctly build the following script, which allows generating and graphing mandelbrot sets in parallel.
Beta Was this translation helpful? Give feedback.
All reactions