diff options
Diffstat (limited to '3665/CH3/EX3.3')
-rw-r--r-- | 3665/CH3/EX3.3/Ex3_3.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/3665/CH3/EX3.3/Ex3_3.sce b/3665/CH3/EX3.3/Ex3_3.sce new file mode 100644 index 000000000..e9f2c2825 --- /dev/null +++ b/3665/CH3/EX3.3/Ex3_3.sce @@ -0,0 +1,18 @@ +clc//
+//
+//
+
+//Variable declaration
+d100=0.28; //spacing(nm)
+lamda=0.071; //wavelength of X rays(nm)
+n=2; //second order
+
+//Calculation
+d110=(d100/sqrt(2)); //spacing(nm)
+
+x=n*lamda/(2*d110);
+theta=asin(x); //glancing angle(radian)
+theta=theta*180/%pi ; //glancing angle(degrees)
+
+//Result
+printf("\n glancing angle is %0.0f degrees",theta)
|