summaryrefslogtreecommitdiff
path: root/3537/CH5/EX5.33/Ex5_33.sce
diff options
context:
space:
mode:
Diffstat (limited to '3537/CH5/EX5.33/Ex5_33.sce')
-rw-r--r--3537/CH5/EX5.33/Ex5_33.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3537/CH5/EX5.33/Ex5_33.sce b/3537/CH5/EX5.33/Ex5_33.sce
new file mode 100644
index 000000000..abea72a1b
--- /dev/null
+++ b/3537/CH5/EX5.33/Ex5_33.sce
@@ -0,0 +1,12 @@
+//Example 5_33
+clc();
+clear;
+//To calculate the wavelength and maximum order of diffraction
+d=0.282*10^-9 //units in meters
+theta=8.583 //units in degrees
+lamda=2*d*(sin(theta*%pi/180))
+lamda1=lamda*10^10 //units in A
+theta=90 //units in degrees
+n=(2*(d)*sin(theta*%pi/180))/lamda
+printf("wave length lamda=%.3fA",lamda1)
+printf("\nMaximum order of diffraction n=%d",round(n))