summaryrefslogtreecommitdiff
path: root/2411/CH3/EX3.d.301/Ex3d_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '2411/CH3/EX3.d.301/Ex3d_1.sce')
-rwxr-xr-x2411/CH3/EX3.d.301/Ex3d_1.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/2411/CH3/EX3.d.301/Ex3d_1.sce b/2411/CH3/EX3.d.301/Ex3d_1.sce
new file mode 100755
index 000000000..79d1e22c2
--- /dev/null
+++ b/2411/CH3/EX3.d.301/Ex3d_1.sce
@@ -0,0 +1,11 @@
+// Scilab Code Ex3d.1: Page-205 (2008)
+clc; clear;
+D = 200; // Distance between the source and the slit, cm
+a = 0.02; // Slit width, cm
+x = 0.5; // Position of first minimum, cm
+n = 1; // Order of diffraction
+lambda = a*x/(D*n); // Wavelength of light used, cm
+printf("\nThe wavelength of light used = %4d angstrom", lambda/1e-008);
+
+// Result
+// The wavelength of light used = 5000 angstrom \ No newline at end of file