summaryrefslogtreecommitdiff
path: root/3710/CH6/EX6.5/Ex6_5.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3710/CH6/EX6.5/Ex6_5.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3710/CH6/EX6.5/Ex6_5.sce')
-rw-r--r--3710/CH6/EX6.5/Ex6_5.sce38
1 files changed, 38 insertions, 0 deletions
diff --git a/3710/CH6/EX6.5/Ex6_5.sce b/3710/CH6/EX6.5/Ex6_5.sce
new file mode 100644
index 000000000..54169594c
--- /dev/null
+++ b/3710/CH6/EX6.5/Ex6_5.sce
@@ -0,0 +1,38 @@
+//Example 6.5, Page Number 263
+//The Function fpround(dependency) is used to round a floating point number x to n decimal places
+//Coherent lengths of conventional and laser radiation sources
+clc;
+
+//Assuming all lights are emitted from a low pressure Sodium Lamp
+
+l=589*(10**-9) //Wavelength in meter
+lw=5.1*(10**11) //Linewidth in Hertz
+c=3*(10**8) //Speed of light in meters per second
+
+//From equation 6.9
+tc=1/lw //tc is the cavity lifetime in s
+
+//From Equation 6.8
+Lc=tc*c //Lc is the length of the Wave Train in metres
+Lc=fpround(Lc,4)
+
+disp(tc,"The Cavity lifetime in s:")
+disp(Lc," The Length of the Wave Train or the Coherence Length in m is:")
+
+//If Many modes are operating
+lw=1500*(10**6)//in Hz
+tc=1/lw//tc is the cavity lifetime in s
+Lc=tc*c
+Lc=fpround(Lc,4)//Lc is the length of the Wave Train in metres
+
+disp(tc,"The Cavity lifetime in s:")
+disp(Lc," The Length of the Wave Train or the Coherence Length in m is:")
+
+//If There is only one mode
+lw=1*(10**6)//in Hz
+tc=1/lw//tc is the cavity lifetime in s
+Lc=tc*c
+Lc=fpround(Lc,4)//Lc is the length of the Wave Train in metres
+
+disp(tc,"The Cavity lifetime in s:")
+disp(Lc," The Length of the Wave Train or the Coherence Length in m is:")