In [ ]:
# Goal for next few classes:
# Draw Julia set for quadratic polynomials z^2+c, c a complex number
In [ ]:
# Representing the complex plane as an array/matrix of numbersb
In [1]:
# use numpy package to represent grids of points
import numpy
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 [3]:
a=numpy.zeros((3,4))
In [4]:
a[1,2]
Out[4]:
0.0
In [5]:
a[1,2]=1
In [6]:
a
Out[6]:
array([[0., 0., 0., 0.],
       [0., 0., 1., 0.],
       [0., 0., 0., 0.]])
In [7]:
matrix_plot(a)
Out[7]:
In [ ]:
# will represent complex plane by a grid/array of size approx 600x600