summaryrefslogtreecommitdiff
path: root/3411/CH5/EX5.7/Ex5_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '3411/CH5/EX5.7/Ex5_7.sce')
-rw-r--r--3411/CH5/EX5.7/Ex5_7.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/3411/CH5/EX5.7/Ex5_7.sce b/3411/CH5/EX5.7/Ex5_7.sce
new file mode 100644
index 000000000..d40ad9d24
--- /dev/null
+++ b/3411/CH5/EX5.7/Ex5_7.sce
@@ -0,0 +1,27 @@
+//Example 5_7
+clc();
+clear;
+//To find the wavelength whenthese planes give rise to maximum density in reflection
+d=275 //units in pm
+theta=45 //units in degrees
+//For n=1
+n=1
+lamda=(2*d*sin(theta*(%pi/180)))/n //units in pm
+printf("Wavelength for n=1 is lamda=%.1fpm\n",lamda)
+//For n=2
+n=2
+lamda=(2*d*sin(theta*(%pi/180)))/n //units in pm
+printf("Wavelength for n=1 is lamda=%.1fpm\n",lamda)
+//For n=3
+n=3
+lamda=(2*d*sin(theta*(%pi/180)))/n //units in pm
+printf("Wavelength for n=1 is lamda=%.1fpm\n",lamda)
+//For n=4
+n=4
+lamda=(2*d*sin(theta*(%pi/180)))/n //units in pm
+printf("Wavelength for n=1 is lamda=%.1fpm\n",lamda)
+//For n=5
+n=5
+lamda=(2*d*sin(theta*(%pi/180)))/n //units in pm
+printf("Wavelength for n=1 is lamda=%.1fpm\n",lamda)
+printf("For n=1,2,3 and >5 lamda lies beyond the range of wavelengths of polychromatic source")