1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter No.4: Frequency Response"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"example 4.1, Page No. 170"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#3dB Frequency\n",
"import math\n",
"\n",
"#variable declaration\n",
"Omega_Z1=0.0 #in Radian/sec\n",
"Omega_Z2=10.0 #in Radian/sec\n",
"Omega_P1=100.0 #in Radian/sec\n",
"Omega_P2=25.0 #in Radian/sec\n",
"\n",
"#calculations\n",
"WL=math.sqrt(Omega_P1**2+Omega_P2**2-2*Omega_Z1**2-2*Omega_Z2**2) #in radian/sec\n",
"\n",
"#Result\n",
"print(\"Approximate value of lower 3dB Frequency in radian/sec : %.1f\"%WL)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Approximate value of lower 3dB Frequency in radian/sec : 102.1\n"
]
}
],
"prompt_number": 4
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"example 4.2, Page No. 171"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Upper 3dB Frequency\n",
"import math\n",
"#variable declaration\n",
"Omega_P1=1.0*10**4 #in Radian/sec\n",
"Omega_P2=2.0*10**4 #in Radian/sec\n",
"Omega_Z1=1.0*10**5 #in Radian/sec\n",
"\n",
"#calculations\n",
"omegaH=1/math.sqrt(1/Omega_P1**2+1/Omega_P2**2-2/Omega_Z1**2) #in radian/sec\n",
"\n",
"#result\n",
"print(\"Approximate value of lower 3dB Frequency in radian/sec : %.0f \"%(math.ceil(omegaH)))"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Approximate value of lower 3dB Frequency in radian/sec : 9017 \n"
]
}
],
"prompt_number": 8
}
],
"metadata": {}
}
]
}
|