diff options
Diffstat (limited to '3537/CH4/EX4.13/Ex4_13.sce')
-rw-r--r-- | 3537/CH4/EX4.13/Ex4_13.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/3537/CH4/EX4.13/Ex4_13.sce b/3537/CH4/EX4.13/Ex4_13.sce new file mode 100644 index 000000000..3d3a88d05 --- /dev/null +++ b/3537/CH4/EX4.13/Ex4_13.sce @@ -0,0 +1,12 @@ +//Example 4_13
+clc();
+clear;
+//To calculate the glancing angle for the second order diffraction
+lemda=0.071*10^-9 //units in meters
+a=0.28*10^-9 //units in meters
+h=1
+k=1
+l=0
+n=2
+theta=(asin((n*lemda)/(2*(a/(sqrt(h^2+k^2+l^2))))))*180/%pi
+printf("The glancing angle for the second order diffraction is %.2f degrees",theta)
|