To create the madelbrot call the following function:
madelbrot()
It takes 3 optional arguments n
, N_max
, and threshold
and saves the output a file called mandlebrot.png
.
If no arguments are passed the functions default values are n=1000
N_max=50
and threshold=50
.
To run the markov chain call the following function with values for n
and N
where n
is the length if p in the chain and N
is the size of P.
markov_chain(n, N)