summaryrefslogtreecommitdiff
path: root/374/CH5/EX5.4.a/54a.sci
diff options
context:
space:
mode:
Diffstat (limited to '374/CH5/EX5.4.a/54a.sci')
-rw-r--r--374/CH5/EX5.4.a/54a.sci11
1 files changed, 11 insertions, 0 deletions
diff --git a/374/CH5/EX5.4.a/54a.sci b/374/CH5/EX5.4.a/54a.sci
new file mode 100644
index 000000000..85612bfc9
--- /dev/null
+++ b/374/CH5/EX5.4.a/54a.sci
@@ -0,0 +1,11 @@
+//chapter 5 exmaple 4a//
+clc
+clear
+//number of longitudnal modes=K,refractive index=n1,length of the cavity in the laser=L,wavelength of the device=l,seperation wavelength between two modes=dl//
+K=1700;
+n1=3.6;
+l=0.85*(10^-6);//in mts//
+L=((K*l)/(2*n1))*(10^6);
+printf("\n length of the cavity in the laser=%f micro meters\n",L)
+dl=((l^2)/(2*n1*L))*(10^15);//seperation wavelength between modes//
+printf("\n seperation wavelength between modes=%f micro meters\n",dl) \ No newline at end of file