Added øvinger

This commit is contained in:
2022-02-17 19:34:40 +01:00
parent f094dd3310
commit 948e51aec1
64 changed files with 43099 additions and 0 deletions

Binary file not shown.

28
Øvinger/Ø5/BodeDiagram Normal file
View File

@@ -0,0 +1,28 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Feb 28 11:00:18 2019
@author: oyvind
"""
import numpy as np
import matplotlib.pyplot as plt
def H(f):
w = 2 * np.pi * f
return (w * 10**(-4))/np.sqrt(1+(w*10**(-4))**2)
frq = []
values = []
for i in range(2*10**5):
frq.append(i)
value = 20 * np.log10(abs(H(i)))
values.append(value)
plt.plot(frq, values)
plt.xscale('log')
plt.gca().xaxis.grid(True)

View File

@@ -0,0 +1,44 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Feb 28 11:00:18 2019
@author: oyvind
"""
import numpy as np
import matplotlib.pyplot as plt
def H13(f):
w = 2 * np.pi * f
return (w * 10**(-4))/np.sqrt(1+(w*10**(-4))**2)
def H2(f):
w = 2 * np.pi * f
return (1/np.sqrt(1+(w*100*10**(-9)*10**4)**2))
def H4(f):
w = 2 * np.pi * f
R = 99.76
L = 100 * 10**(-3)
t = L / R
return (1/np.sqrt(1+(w*t)**2))
frq = []
values = []
for i in range(2*10**4):
frq.append(i)
value = 20 * np.log10(abs(H4(i)))
values.append(value)
plt.plot(frq, values)
plt.xscale('log')
plt.gca().xaxis.grid(True)
plt.gca().yaxis.grid(True)

View File

@@ -0,0 +1,44 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Feb 28 11:00:18 2019
@author: oyvind
"""
import numpy as np
import matplotlib.pyplot as plt
def H13(f):
w = 2 * np.pi * f
return np.arctan(1/(w * 10**-4)) * 180 / np.pi
def H2(f):
w = 2 * np.pi * f
return np.arctan(w * 100*10**(-9) * 10**4) * 180 / np.pi
def H4(f):
w = 2 * np.pi * f
R = 99.76
L = 100 * 10**(-3)
t = L / R
return np.arctan(w * t) * 180 / np.pi
frq = []
values = []
for i in range(1, 2*10**4):
frq.append(i)
value = H4(i)
values.append(value)
plt.plot(frq, values)
plt.xscale('log')
plt.gca().xaxis.grid(True)