summaryrefslogtreecommitdiff
path: root/3638/CH18/EX18.1/Ex18_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3638/CH18/EX18.1/Ex18_1.sce')
-rw-r--r--3638/CH18/EX18.1/Ex18_1.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3638/CH18/EX18.1/Ex18_1.sce b/3638/CH18/EX18.1/Ex18_1.sce
new file mode 100644
index 000000000..a9aed2f82
--- /dev/null
+++ b/3638/CH18/EX18.1/Ex18_1.sce
@@ -0,0 +1,13 @@
+//Introduction to Fiber Optics by A. Ghatak and K. Thyagarajan, Cambridge, New Delhi, 1999
+//Example 18.1
+//OS=Windows XP sp3
+//Scilab version 5.5.2
+clc;
+clear;
+//given
+lambda0=0.633e-6;//Operating wavelength in m
+DeltaPhi=1e-6;//Phase change in rad
+n=1.45;//refractive index of fiber
+
+DeltaL=DeltaPhi/(2*%pi*n/lambda0);//Corresponding change in fiber length in m
+mprintf("\n Corresponding change in fiber length = %.2e m",DeltaL);//The answers vary due to round off error