summaryrefslogtreecommitdiff
path: root/1061/CH8/EX8.27/Ex8_27.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1061/CH8/EX8.27/Ex8_27.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1061/CH8/EX8.27/Ex8_27.sce')
-rwxr-xr-x1061/CH8/EX8.27/Ex8_27.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1061/CH8/EX8.27/Ex8_27.sce b/1061/CH8/EX8.27/Ex8_27.sce
new file mode 100755
index 000000000..9f10dc088
--- /dev/null
+++ b/1061/CH8/EX8.27/Ex8_27.sce
@@ -0,0 +1,14 @@
+//Ex:8.27
+clc;
+clear;
+close;
+c=3*10^8;// speed of light in m/s
+n=3.6;// for GaAs
+df=278*10^9;// separation in Hz
+y=0.87*10^-6;// wavelength in m
+L=c/(2*n*df);// cavity length in m
+l=L*10^6;// cavity length in um
+L1=floor(l)*10^-6;// cavity length in m
+q=(2*n*L1)/y;// number of longitudinal modes
+printf("The cavity length =%d um", l);
+printf("\n The number of longitudinal modes =%d", q); \ No newline at end of file