Cython from the Sage notebook: Mandelbrot set

  • hace 14 años
We start with some python code to plot the mandelbrot set, and compile it with python. We do one optimization at a time, selecting the place that needs more attention, always working from the innermost loop out.

The worksheet used is available at http://www.uam.es/personal_pdi/ciencias/pangulo/adjuntos/mandelbrot_cython.sws

Comment: In the video, I use float for the real numbers and "double complex" for the complex numbers. It's a much better idea to use "double" instead of "float".

Recomendada