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 /1172/CH1/EX1.23.2/Example1_23b.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 '1172/CH1/EX1.23.2/Example1_23b.sce')
-rwxr-xr-x | 1172/CH1/EX1.23.2/Example1_23b.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/1172/CH1/EX1.23.2/Example1_23b.sce b/1172/CH1/EX1.23.2/Example1_23b.sce new file mode 100755 index 000000000..20b667891 --- /dev/null +++ b/1172/CH1/EX1.23.2/Example1_23b.sce @@ -0,0 +1,21 @@ +clc
+// Given That
+lambda1=5.89e-5// wavelength in cm
+lambda2=5.896e-5//wavelength in cm
+n=2// for second order spectrum
+t = 2 // width of diffraction grating
+grating_element = 425 // no. of lines per cm
+//Sample Problem 23b Page No. 56
+
+printf("\n # Problem 23b # \n")
+printf(" \n Standard formula used \n lambda / d_lambda = n*N \n")
+total_line = t * grating_element
+printf("\n Total number of lines on diffraction grating %d \n \n So",total_line)
+N=lambda1/ (lambda2-lambda1)/n
+if (N > total_line) then
+printf ("\n ,Lines will not be resolved in %d order.",n)
+printf("\nas %d lines are required for diffraction are ", N)
+else printf (" Lines will be resolved in %d order", n)
+ printf("\nas %d lines are required for diffraction are . ", N)
+end
+
|