diff options
Diffstat (limited to '3665/CH3/EX3.2/Ex3_2.sce')
-rw-r--r-- | 3665/CH3/EX3.2/Ex3_2.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/3665/CH3/EX3.2/Ex3_2.sce b/3665/CH3/EX3.2/Ex3_2.sce new file mode 100644 index 000000000..e8111e215 --- /dev/null +++ b/3665/CH3/EX3.2/Ex3_2.sce @@ -0,0 +1,19 @@ +clc//
+//
+//
+
+//Variable declaration
+lamda=1.5418; //wavelength(angstrom)
+theta=30; //angle(degrees)
+n=1; //first order
+h=1;
+k=1;
+l=1;
+
+//Calculation
+theta=theta*%pi/180; //angle(radian)
+d=n*lamda/(2*sin(theta));
+a=d*sqrt(h^2+k^2+l^2); //interatomic spacing(angstrom)
+
+//Result
+printf("\n interatomic spacing is %0.2f angstrom",a)
|