summaryrefslogtreecommitdiff
path: root/3547/CH6/EX6.6/EX6_6.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3547/CH6/EX6.6/EX6_6.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3547/CH6/EX6.6/EX6_6.sce')
-rw-r--r--3547/CH6/EX6.6/EX6_6.sce40
1 files changed, 40 insertions, 0 deletions
diff --git a/3547/CH6/EX6.6/EX6_6.sce b/3547/CH6/EX6.6/EX6_6.sce
new file mode 100644
index 000000000..190c4b4ca
--- /dev/null
+++ b/3547/CH6/EX6.6/EX6_6.sce
@@ -0,0 +1,40 @@
+// Example 6.6
+// Calculation of the single-pass gain and 3-dB bandwidth
+// Page no 268
+
+clc;
+clear;
+close;
+
+//Given data
+
+c1=3*10^8; // Velocity of light
+f=7*10^9; // Cut off frequency
+L=500*10^-6; // Input power
+Gp=15; // Peak gain
+n=3.2;
+Gs=2.52;
+R=0.32;
+a=0.1024;
+b=-0.6546;
+c=1;
+
+// The single-pass gain
+
+x1 =( -1*b+ sqrt ((b ^2) -4*a*c)) /(2* a); // 1 s t r o o t
+x2 =( -1*b- sqrt ((b ^2) -4*a*c)) /(2* a); // 2nd r o o t
+
+// The 3-dB bandwidth
+G=10^(Gp/10);
+x=(1-(R*x2))/(2*sqrt(R*x2));
+f=(c1/(%pi*L*n))*asin(x);
+// f=f*10^-9;
+
+// Displaying results in the command window
+
+printf ( 'Single pass gain Gs= %0.2f or' , x1);
+printf ( ' \n Single pass gain Gs= %0.2f ' , x2);
+printf("\n The the 3-dB bandwidth = %0.2f GHz ",f*10^-9);
+
+
+// The answers vary due to round off error