summaryrefslogtreecommitdiff
path: root/317/CH16
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /317/CH16
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 '317/CH16')
-rwxr-xr-x317/CH16/EX16.1/example1.sce25
-rwxr-xr-x317/CH16/EX16.1/example1.txt2
-rwxr-xr-x317/CH16/EX16.3/example3.sce36
-rwxr-xr-x317/CH16/EX16.3/example3.txt5
-rwxr-xr-x317/CH16/EX16.4/example4.sce30
-rwxr-xr-x317/CH16/EX16.4/example4.txt4
-rwxr-xr-x317/CH16/EX16.5/example5.sce31
-rwxr-xr-x317/CH16/EX16.5/example5.txt4
-rwxr-xr-x317/CH16/EX16.6/example6.sce31
-rwxr-xr-x317/CH16/EX16.6/example6.txt4
-rwxr-xr-x317/CH16/EX16.7/example7.sce30
-rwxr-xr-x317/CH16/EX16.7/example7.txt4
12 files changed, 206 insertions, 0 deletions
diff --git a/317/CH16/EX16.1/example1.sce b/317/CH16/EX16.1/example1.sce
new file mode 100755
index 000000000..8e18e66f6
--- /dev/null
+++ b/317/CH16/EX16.1/example1.sce
@@ -0,0 +1,25 @@
+// calculate voltage gain of ac amplifier
+// Electronic Principles
+// By Albert Malvino , David Bates
+// Seventh Edition
+// The McGraw-Hill Companies
+// Example 16-1, page 567
+
+clear; clc; close;
+
+// Given data
+f1=20;// cutoff frequency in hertz
+f2=20*10^3;// cutoff frequency in hertz
+fin1=5;// input frequency in hertz
+fin2=200*10^3;// input frequency in hertz
+Avmid=200;// midband voltage gain
+
+// Calculations
+Av1=Avmid/((1+((f1/fin1)^2))^0.5)// Voltage gain for input frequency below midband
+Av2=Avmid*1/((1+((fin2/f2)^2))^0.5); // Voltage gain for input frequency above midband
+disp(Av1,"Voltage gain for input frequency below midband")
+disp(Av2,"Voltage gain or input frequency above midband")
+
+// Result
+// Voltage gain for an input frequency of 5 Hertz is 48.5
+// Voltage gain for an input frequency of 20 KHertz is 19.9 \ No newline at end of file
diff --git a/317/CH16/EX16.1/example1.txt b/317/CH16/EX16.1/example1.txt
new file mode 100755
index 000000000..12fd3735d
--- /dev/null
+++ b/317/CH16/EX16.1/example1.txt
@@ -0,0 +1,2 @@
+Voltage gain for an input frequency of 5 Hertz is 48.5
+Voltage gain for an input frequency of 20 KHertz is 19.9 \ No newline at end of file
diff --git a/317/CH16/EX16.3/example3.sce b/317/CH16/EX16.3/example3.sce
new file mode 100755
index 000000000..10ddf28be
--- /dev/null
+++ b/317/CH16/EX16.3/example3.sce
@@ -0,0 +1,36 @@
+// calculate voltage gain
+// Electronic Principles
+// By Albert Malvino , David Bates
+// Seventh Edition
+// The McGraw-Hill Companies
+// Example 16-3, page 569
+
+clear; clc; close;
+
+// Given data
+f=10;// cutoff frequency in hertz
+Avmid=100000;// midband voltage gain
+f1=100;// input frequency in hertz
+f2=10^3;// input frequency in hertz
+f3=10^4;// input frequency in hertz
+f4=10^5;// input frequency in hertz
+f5=10^6;// input frequency in hertz
+
+// Calculations
+Av1=Avmid/((1+(f1/f)^2)^0.5)// Voltage gain for input frequency below midband
+Av2=Avmid/((1+(f2/f)^2)^0.5)// Voltage gain for input frequency below midband
+Av3=Avmid/((1+(f3/f)^2)^0.5)// Voltage gain for input frequency below midband
+Av4=Avmid/((1+(f4/f)^2)^0.5)// Voltage gain for input frequency below midband
+Av5=Avmid/((1+(f5/f)^2)^0.5)// Voltage gain for input frequency below midband
+disp(Av1,"Voltage gain 1=")
+disp(Av2,"Voltage gain 2=")
+disp(Av3,"Voltage gain 3=")
+disp(Av4,"Voltage gain 4=")
+disp(Av5,"Voltage gain 5=")
+
+// Result
+// Voltage gain for an input frequency of 100 Hertz is approximately 10000
+// Voltage gain for an input frequency of 1000 Hertz is approximately 1000
+// Voltage gain for an input frequency of 1000 Hertz is approximately 100
+// Voltage gain for an input frequency of 10000Hertz is approximately 10
+// Voltage gain for an input frequency of 100000 Hertz is approximately 1 \ No newline at end of file
diff --git a/317/CH16/EX16.3/example3.txt b/317/CH16/EX16.3/example3.txt
new file mode 100755
index 000000000..87873ee3b
--- /dev/null
+++ b/317/CH16/EX16.3/example3.txt
@@ -0,0 +1,5 @@
+Voltage gain for an input frequency of 100 Hertz is approximately 10000
+Voltage gain for an input frequency of 1000 Hertz is approximately 1000
+Voltage gain for an input frequency of 1000 Hertz is approximately 100
+Voltage gain for an input frequency of 10000Hertz is approximately 10
+Voltage gain for an input frequency of 100000 Hertz is approximately 1 \ No newline at end of file
diff --git a/317/CH16/EX16.4/example4.sce b/317/CH16/EX16.4/example4.sce
new file mode 100755
index 000000000..7804bf526
--- /dev/null
+++ b/317/CH16/EX16.4/example4.sce
@@ -0,0 +1,30 @@
+// calculate decibel power gain
+// Electronic Principles
+// By Albert Malvino , David Bates
+// Seventh Edition
+// The McGraw-Hill Companies
+// Example 16-4, page 571
+
+clear; clc; close;
+
+// Given data
+Ap1=1;// power gain
+Ap2=2;// power gain
+Ap3=4;// power gain
+Ap4=8;// power gain
+
+// Calculations
+Apdb1=10*log10(Ap1)// decibel power gain
+Apdb2=10*log10(Ap2)// decibel power gain
+Apdb3=10*log10(Ap3)// decibel power gain
+Apdb4=10*log10(Ap4)// decibel power gain
+disp("dB",Apdb1,"decibel power gain 1=")
+disp("dB",Apdb2,"decibel power gain 2=")
+disp("dB",Apdb3,"decibel power gain 3=")
+disp("dB",Apdb4,"decibel power gain 4=")
+
+// Result
+// decibal power gain for a voltage gain of 1 is 0 dB
+// decibal power gain for a voltage gain of 2 is 3 dB
+// decibal power gain for a voltage gain of 4 is 6 dB
+// decibal power gain for a voltage gain of 8 is 9 dB \ No newline at end of file
diff --git a/317/CH16/EX16.4/example4.txt b/317/CH16/EX16.4/example4.txt
new file mode 100755
index 000000000..7bf0148a3
--- /dev/null
+++ b/317/CH16/EX16.4/example4.txt
@@ -0,0 +1,4 @@
+decibal power gain for a voltage gain of 1 is 0 dB
+decibal power gain for a voltage gain of 2 is 3 dB
+decibal power gain for a voltage gain of 4 is 6 dB
+decibal power gain for a voltage gain of 8 is 9 dB \ No newline at end of file
diff --git a/317/CH16/EX16.5/example5.sce b/317/CH16/EX16.5/example5.sce
new file mode 100755
index 000000000..f731832d4
--- /dev/null
+++ b/317/CH16/EX16.5/example5.sce
@@ -0,0 +1,31 @@
+// calculate decibel power gain
+// Electronic Principles
+// By Albert Malvino , David Bates
+// Seventh Edition
+// The McGraw-Hill Companies
+// Example 16-5, page 571
+
+clear; clc; close;
+
+// Given data
+Ap1=1;// power gain
+Ap2=0.5;// power gain
+Ap3=0.25;// power gain
+Ap4=0.125;// power gain
+
+// Calculations
+Apdb1=10*log10(Ap1)// decibel power gain
+Apdb2=10*log10(Ap2)// decibel power gain
+Apdb3=10*log10(Ap3)// decibel power gain
+Apdb4=10*log10(Ap4)// decibel power gain
+disp("dB",Apdb1,"decibel power gain 1=")
+disp("dB",Apdb2,"decibel power gain 2=")
+disp("dB",Apdb3,"decibel power gain 3=")
+disp("dB",Apdb4,"decibel power gain 4=")
+
+
+// Result
+// decibal power gain for a voltage gain of 1 is 0 dB
+// decibal power gain for a voltage gain of 0.5 is -3 dB
+// decibal power gain for a voltage gain of 0.25 is -6 dB
+// decibal power gain for a voltage gain of 0.125 is -9 dB \ No newline at end of file
diff --git a/317/CH16/EX16.5/example5.txt b/317/CH16/EX16.5/example5.txt
new file mode 100755
index 000000000..0a5ada0d4
--- /dev/null
+++ b/317/CH16/EX16.5/example5.txt
@@ -0,0 +1,4 @@
+decibal power gain for a voltage gain of 1 is 0 dB
+decibal power gain for a voltage gain of 0.5 is -3 dB
+decibal power gain for a voltage gain of 0.25 is -6 dB
+decibal power gain for a voltage gain of 0.125 is -9 dB \ No newline at end of file
diff --git a/317/CH16/EX16.6/example6.sce b/317/CH16/EX16.6/example6.sce
new file mode 100755
index 000000000..9845b1ad8
--- /dev/null
+++ b/317/CH16/EX16.6/example6.sce
@@ -0,0 +1,31 @@
+// calculate decibel power gain
+// Electronic Principles
+// By Albert Malvino , David Bates
+// Seventh Edition
+// The McGraw-Hill Companies
+// Example 16-6, page 572
+
+clear; clc; close;
+
+// Given data
+Ap1=1;// power gain
+Ap2=10;// power gain
+Ap3=100;// power gain
+Ap4=1000;// power gain
+
+// Calculations
+Apdb1=10*log10(Ap1)// decibel power gain
+Apdb2=10*log10(Ap2)// decibel power gain
+Apdb3=10*log10(Ap3)// decibel power gain
+Apdb4=10*log10(Ap4)// decibel power gain
+disp("dB",Apdb1,"decibel power gain 1=")
+disp("dB",Apdb2,"decibel power gain 2=")
+disp("dB",Apdb3,"decibel power gain 3=")
+disp("dB",Apdb4,"decibel power gain 4=")
+
+
+// Result
+// decibal power gain for a voltage gain of 1 is 0 dB
+// decibal power gain for a voltage gain of 10 is 10 dB
+// decibal power gain for a voltage gain of 100 is 20 dB
+// decibal power gain for a voltage gain of 1000 is 30 dB \ No newline at end of file
diff --git a/317/CH16/EX16.6/example6.txt b/317/CH16/EX16.6/example6.txt
new file mode 100755
index 000000000..510ec466d
--- /dev/null
+++ b/317/CH16/EX16.6/example6.txt
@@ -0,0 +1,4 @@
+decibal power gain for a voltage gain of 1 is 0 dB
+decibal power gain for a voltage gain of 10 is 10 dB
+decibal power gain for a voltage gain of 100 is 20 dB
+decibal power gain for a voltage gain of 1000 is 30 dB \ No newline at end of file
diff --git a/317/CH16/EX16.7/example7.sce b/317/CH16/EX16.7/example7.sce
new file mode 100755
index 000000000..4712091ef
--- /dev/null
+++ b/317/CH16/EX16.7/example7.sce
@@ -0,0 +1,30 @@
+// calculate decibel power gain
+// Electronic Principles
+// By Albert Malvino , David Bates
+// Seventh Edition
+// The McGraw-Hill Companies
+// Example 16-7, page 572
+
+clear; clc; close;
+
+// Given data
+Ap1=1;// power gain
+Ap2=0.1;// power gain
+Ap3=0.01;// power gain
+Ap4=0.001;// power gain
+
+// Calculations
+Apdb1=10*log10(Ap1)// decibel power gain
+Apdb2=10*log10(Ap2)// decibel power gain
+Apdb3=10*log10(Ap3)// decibel power gain
+Apdb4=10*log10(Ap4)// decibel power gain
+disp("dB",Apdb1,"decibal power gain 1=")
+disp("dB",Apdb2,"decibal power gain 2=")
+disp("dB",Apdb3,"decibal power gain 3=")
+disp("dB",Apdb4,"decibal power gain 4=")
+
+// Result
+// decibal power gain for a voltage gain of 1 is 0 dB
+// decibal power gain for a voltage gain of 0.1 is -10 dB
+// decibal power gain for a voltage gain of 0.01 is -20 dB
+// decibal power gain for a voltage gain of 0.001 is -30 dB \ No newline at end of file
diff --git a/317/CH16/EX16.7/example7.txt b/317/CH16/EX16.7/example7.txt
new file mode 100755
index 000000000..0896efb89
--- /dev/null
+++ b/317/CH16/EX16.7/example7.txt
@@ -0,0 +1,4 @@
+decibal power gain for a voltage gain of 1 is 0 dB
+decibal power gain for a voltage gain of 0.1 is -10 dB
+decibal power gain for a voltage gain of 0.01 is -20 dB
+decibal power gain for a voltage gain of 0.001 is -30 dB \ No newline at end of file