summaryrefslogtreecommitdiff
path: root/1427/CH22/EX22.27/22_27.sce
diff options
context:
space:
mode:
Diffstat (limited to '1427/CH22/EX22.27/22_27.sce')
-rw-r--r--1427/CH22/EX22.27/22_27.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/1427/CH22/EX22.27/22_27.sce b/1427/CH22/EX22.27/22_27.sce
new file mode 100644
index 000000000..6f69e3888
--- /dev/null
+++ b/1427/CH22/EX22.27/22_27.sce
@@ -0,0 +1,10 @@
+//ques-22.27
+//Calculating angle required for reflection
+clc
+a=315.2;//edge length (in pm)
+d=a/sqrt(1^2+0+0);//for plane 100
+w=153.7;//wavelength (in pm)
+c=w/(2*d);
+//For Sind(ang) = c
+ang=14.12;
+printf("The angle required for reflection is %.2f degrees.",ang);