diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1061/CH8/EX8.22 | |
download | Scilab-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.22')
-rwxr-xr-x | 1061/CH8/EX8.22/Ex8_22.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1061/CH8/EX8.22/Ex8_22.sce b/1061/CH8/EX8.22/Ex8_22.sce new file mode 100755 index 000000000..5a04a8d4e --- /dev/null +++ b/1061/CH8/EX8.22/Ex8_22.sce @@ -0,0 +1,14 @@ +//Ex:8.22
+clc;
+clear;
+close;
+c=3*10^8;// speed of light in m/s
+n=3.66;// for GaAs
+L=150*10^-6;// cavity length in m
+dv=c/(2*n*L);//frequency separation in Hz
+dv1=dv/10^12;// frequency separation in GHz
+h=6.64*10^-34;// plank constant
+q=1.6*10^-19;// charge of an electron
+dE=(h*dv)/q;// energy separation eV
+printf("The frequency separation =%f GHz", dv1);
+printf("\n The energy separation =%f meV", dE*1000);
\ No newline at end of file |