fixed files

This commit is contained in:
2020-11-09 15:36:59 +01:00
parent b5ae8eb7a5
commit dad60fe37a
17 changed files with 55 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

23
assignments/02/coef.py Normal file
View File

@@ -0,0 +1,23 @@
import numpy as np
c_omega = {}
c_k = {}
length = 5
def coeff(k, N):
# print(1/N)
omega = 2* np.pi * (k / N)
tmp = (1/N) * (2 + 2*np.cos(omega))
print(str(k) + "\t" + str(tmp)) # used to generate latex data
return omega, tmp
print("n\t xn") # used to generate latex data
for i in range(-length, length + 1, 1):
tmp = coeff(i, length * 2)
c_omega[tmp[0]] = tmp[1]
c_k[i] = tmp[1]
print(c_omega) # dict with coefficients with omega as axis
print(c_k) # dict with coefficients with k as axis

BIN
assignments/02/oppgave3.mlx Normal file

Binary file not shown.

BIN
assignments/02/oppgave4.mlx Normal file

Binary file not shown.

Binary file not shown.

BIN
assignments/02/test.pdf Normal file

Binary file not shown.