Help for this page

Select Code to Download


  1. or download this
    #include <stdio.h>
    #include <stdlib.h>
    ...
      
      free(m);
    }
    
  2. or download this
    // mandelbrot.h
    void mandel(double xmin, double xmax, int xstep, double ymin, double y
    +max, int ystep, int iters);
    
  3. or download this
    use warnings;
    use Mandelbrot;
     
    Mandelbrot::mandel(-2.0, 1.0, 256, -1.0, 1.0, 256, 100000);
    
  4. or download this
        LIBS      => ['-lgomp'], # e.g., '-lm'
        CCFLAGS   => '-fopenmp',
    
  5. or download this
    export OMP_NUM_THREADS=2