Python Mandelbrot
A simple python script that print the Mandelbrot set for every power of the formal formula.
**
**
****
** **** **
**********
************
********
**** ********************** **
****************************** ** **
************************************
** **************************************
******************************************
******************************************
**********************************************
**** ****** **********************************************
**************** ********************************************
******************************************************************
** ********************************************************************
**********************************************************************
**********************************************************************
** ** ** ************************************************************************
**********************************************************************
**********************************************************************
** ********************************************************************
******************************************************************
**************** ********************************************
**** ****** **********************************************
**********************************************
******************************************
******************************************
** **************************************
************************************
****************************** ** **
**** ********************** **
********
************
**********
** **** **
****
**
**
If you don't see the set printed, zoom out your terminal.
The standard formula for the set is
However, the script is generalized for every power, so basically can calculate for every N.
If you execute the script as is, it will print the set calculated with N=2, but you can pass as a console argument every N you want.
Example:
mandelbrot.py 4
If you pass the -i
or --iterate
parameter, it will print print all the power until will reach the passed one. So
mandelbrot.py --iterate 3
Install dependencies with pip install -r requirements.txt