summaryrefslogtreecommitdiff
path: root/3547/CH10/EX10.8/EX10_8.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3547/CH10/EX10.8/EX10_8.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/CH10/EX10.8/EX10_8.sce')
-rw-r--r--3547/CH10/EX10.8/EX10_8.sce31
1 files changed, 31 insertions, 0 deletions
diff --git a/3547/CH10/EX10.8/EX10_8.sce b/3547/CH10/EX10.8/EX10_8.sce
new file mode 100644
index 000000000..20982607c
--- /dev/null
+++ b/3547/CH10/EX10.8/EX10_8.sce
@@ -0,0 +1,31 @@
+// Example 10.8
+// Calculation of the Stokes signal power at the fiber output
+// Page no 480
+
+clc;
+clear;
+close;
+
+//Given data
+p1=20; // Input power pump
+ps=-10; // Input Stokes’s signal power
+alpha=0.08;
+L=2; // Length of fiber
+alpha1=0.046;
+A=40*10^-12; // Effective area of fiber
+g=1*10^-13; // Raman coefficient of the fiber
+
+// The Stokes signal power at the fiber output
+p1=10^(p1/10);
+ps=10^(ps/10);
+Le=(1-exp(-alpha*L))/alpha;
+s=(g*p1*Le)/A;
+d=alpha1*L;
+pd=ps*%e^(-d+s);
+
+
+
+// Displaying results in the command window
+printf("\n The Stokes signal power at the fiber output = %0.15f mW ",pd);
+
+