summaryrefslogtreecommitdiff
path: root/2414/CH4
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2414/CH4
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2414/CH4')
-rwxr-xr-x2414/CH4/EX4.5/Ex4_5.sce12
-rwxr-xr-x2414/CH4/EX4.6/Ex4_6.sce15
-rwxr-xr-x2414/CH4/EX4.7/Ex4_7.sce12
3 files changed, 39 insertions, 0 deletions
diff --git a/2414/CH4/EX4.5/Ex4_5.sce b/2414/CH4/EX4.5/Ex4_5.sce
new file mode 100755
index 000000000..f233a1701
--- /dev/null
+++ b/2414/CH4/EX4.5/Ex4_5.sce
@@ -0,0 +1,12 @@
+clc;
+clear all;
+//chapter 4
+//page no 120
+//example 4.5
+f=[500 2000 10000]; //frequency in Hz
+Af=1 ./sqrt(1+(f./1000)^8); //Linear amplitude response
+AdBf=20*log10(Af);
+mprintf(' f,Hz A(f) AdB(f)\n')
+for i=1:3
+ mprintf(' %5i Hz %.5f %.3f dB\n',f(i),Af(i),AdBf(i))
+end
diff --git a/2414/CH4/EX4.6/Ex4_6.sce b/2414/CH4/EX4.6/Ex4_6.sce
new file mode 100755
index 000000000..a072f32fb
--- /dev/null
+++ b/2414/CH4/EX4.6/Ex4_6.sce
@@ -0,0 +1,15 @@
+clc;
+clear all;
+//chapter 4
+//page no 123
+//example 4.6
+L=4*10^-6; //Henry
+C=9*10^-12; //Farad
+R=20*10^3; //ohm
+
+f0=1/(2*%pi*sqrt(L*C)); //frequency in Hz
+mprintf('(a) The resonant frequency is f0=%.2f MHz\n',f0*10^-6)
+Q=R*sqrt(C/L)
+mprintf(' (b) The Q is %i\n',Q);
+B=f0/Q;
+mprintf(' (c) The 3-dB bandwidth is B=%i KHz\n',B*10^-3);
diff --git a/2414/CH4/EX4.7/Ex4_7.sce b/2414/CH4/EX4.7/Ex4_7.sce
new file mode 100755
index 000000000..36e0b8a5b
--- /dev/null
+++ b/2414/CH4/EX4.7/Ex4_7.sce
@@ -0,0 +1,12 @@
+clc;
+clear all;
+//chapter 4
+//page no 125
+//example 4.7
+//misprinted example number
+pulse_width=2*10^-6; //second
+rise_time=10*10^-9; //second
+B=.5/pulse_width; //in Hz
+mprintf('(a) The aproximate bandwidth for coarse reproduction is B=%i KHz\n',B*10^-3)
+B=.5/rise_time;
+mprintf(' (b) The aproximate bandwidth for fine reproduction is B=%i MHz\n',B*10^-6)