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 /401/CH6/EX6.3/Example6_3.sce | |
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 '401/CH6/EX6.3/Example6_3.sce')
-rwxr-xr-x | 401/CH6/EX6.3/Example6_3.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/401/CH6/EX6.3/Example6_3.sce b/401/CH6/EX6.3/Example6_3.sce new file mode 100755 index 000000000..7d57045ce --- /dev/null +++ b/401/CH6/EX6.3/Example6_3.sce @@ -0,0 +1,17 @@ +//Example 6.3
+//Program to calculate laser gain coefficient for the cavity
+
+clear;
+clc ;
+close ;
+
+//Given data
+L=600*10^-4; //cm - CAVITY LENGTH
+r=0.3; //*100 percent - REFLECTIVITY
+alpha_bar= 30; //per cm - LOSSES
+
+//Laser Gain Coefficient
+gth_bar=alpha_bar+1/L*log(1/r);
+
+//Displaying the Result in Command Window
+printf("\n\n\t Laser Gain Coefficient is %1.0f per cm.",gth_bar);
\ No newline at end of file |