summaryrefslogtreecommitdiff
path: root/3834/CH12/EX12.2.1/Ex12_2_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3834/CH12/EX12.2.1/Ex12_2_1.sce')
-rw-r--r--3834/CH12/EX12.2.1/Ex12_2_1.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3834/CH12/EX12.2.1/Ex12_2_1.sce b/3834/CH12/EX12.2.1/Ex12_2_1.sce
new file mode 100644
index 000000000..3f8dbab99
--- /dev/null
+++ b/3834/CH12/EX12.2.1/Ex12_2_1.sce
@@ -0,0 +1,17 @@
+//Fiber Optics Communication Technology, by Djafer K. Mynbaev and Lovell L.scheiner
+//Windows 8
+//Scilab version- 6.0.0
+//Example 12.2.1
+clc;
+clear ;
+//given
+
+deltaf=100E9;//spacing in Hz
+lambda=1550;//wavelength in nm
+c=3E17;//speed of light in nm/s
+f=c/lambda;
+
+x=1/(f*f);
+deltalambda=c*deltaf*x;//Spacing between channels in nm
+
+mprintf("Spacing between channels is = %.2f nm",deltalambda);