summaryrefslogtreecommitdiff
path: root/3547/CH6/EX6.14/EX6_14.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.14/EX6_14.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.14/EX6_14.sce')
-rw-r--r--3547/CH6/EX6.14/EX6_14.sce32
1 files changed, 32 insertions, 0 deletions
diff --git a/3547/CH6/EX6.14/EX6_14.sce b/3547/CH6/EX6.14/EX6_14.sce
new file mode 100644
index 000000000..e8d2d4838
--- /dev/null
+++ b/3547/CH6/EX6.14/EX6_14.sce
@@ -0,0 +1,32 @@
+// Example 6.13
+// Calculation of the upper bound on the single-pass gain
+// Page no 297
+
+clc;
+clear;
+close;
+
+//Given data
+
+n=3.5; // Refractive index
+c1=3*10^8; // Velocity of light
+L=200*10^-6; // Amplifier length
+a=0.09;
+b=-(1.2*0.1805^2+0.6);
+c=1;
+
+// The geometric mean of the facet reflectivity R
+f=c1/(2*n*L);
+
+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
+
+
+
+//Displaying results in the command window
+printf("\n The geometric mean of the facet reflectivity R = %0.2f GHz ",f*10^-9);
+printf("\n The upper bound on the single-pass gain Gs = %0.2f or ",x1);
+printf("\n The upper bound on the single-pass gain Gs = %0.2f ",x2);
+
+
+// The answers vary due to round off error