So let's actually do one!
N = 8
M = fromfunction(lambda k,n: exp(2 * pi * 1j * k * n / N), (N,N) )
print M
plot(imag(M[:, 7]))
array(100)
?array
?asarray
array([1,2,3])
?arrange
n = arange(4)
n
dim(n)
shape(n)
?reshape
n
N = len(n)
N
k = n.reshape((1,N))
k
shape(k)
dot(n,k)
dot(k,n)
k*n
n*k
n
j
complex(0,1)
1j
i = complex(0,1)
fromfunction
x = [0,0,1,1,-1,-1,0,0]
y = dot(M,x)
plot(abs(y[0:N/2])**2)
a = 3+4j
a * conj(a)
len(a)
dir(a)
arg(a)
a.arg()
abs(a)