summaryrefslogtreecommitdiff
path: root/24/CH37/EX37.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /24/CH37/EX37.1
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '24/CH37/EX37.1')
-rwxr-xr-x24/CH37/EX37.1/Example37_1.sce18
-rwxr-xr-x24/CH37/EX37.1/Example37_1_result.txt5
2 files changed, 23 insertions, 0 deletions
diff --git a/24/CH37/EX37.1/Example37_1.sce b/24/CH37/EX37.1/Example37_1.sce
new file mode 100755
index 000000000..7ec34c8ff
--- /dev/null
+++ b/24/CH37/EX37.1/Example37_1.sce
@@ -0,0 +1,18 @@
+exec('degree_rad.sci', -1)
+
+//Given that
+lambda = 650*10^-9 //in meter
+theta = dtor(15) //in radians
+
+//Sample Problem 37-1a
+printf("**Sample Problem 37-1a**\n")
+//We know that [a*sin(theta) = m*lambda] for m=Integer
+m = 1
+a = m*lambda/sin(theta)
+printf("The slit width is equal to %fnm\n", a*10^9)
+
+//Sample Problem 37-1b
+printf("\n**Sample Problem 37-1b**\n")
+m = 3/2 //for first side maxima
+lambdaDESH = a*sin(theta)/ m
+printf("The wavelength of the light is equal to %fnm", lambdaDESH*10^9) \ No newline at end of file
diff --git a/24/CH37/EX37.1/Example37_1_result.txt b/24/CH37/EX37.1/Example37_1_result.txt
new file mode 100755
index 000000000..623b78cae
--- /dev/null
+++ b/24/CH37/EX37.1/Example37_1_result.txt
@@ -0,0 +1,5 @@
+**Sample Problem 37-1a**
+The slit width is equal to 2511.407148nm
+
+**Sample Problem 37-1b**
+The wavelength of the light is equal to 433.333333nm \ No newline at end of file