In [ ]:
# Goal for next few classes: draw Julia sets for quadratic polynomials f(z)=z^2 + c
# c a complex number
In [ ]:
# will represent complex plane as grid of points
# grid will be an array/matrix of 0s and 1s
In [1]:
import numpy # python package that has lots of useful math stuff
In [2]:
numpy.zeros((3,4)) # 3 rows, 4 columns
Out[2]:
array([[0., 0., 0., 0.],
       [0., 0., 0., 0.],
       [0., 0., 0., 0.]])
In [5]:
a=numpy.zeros((3,4))
In [6]:
a[2,1]=1
In [7]:
a
Out[7]:
array([[0., 0., 0., 0.],
       [0., 0., 0., 0.],
       [0., 1., 0., 0.]])
In [8]:
matrix_plot(a)
Out[8]:
In [ ]:
# we'll represent complex plane as large grid (600x600)