diff options
Diffstat (limited to '3651/CH2/EX2.14/Ex2_14.sce')
-rw-r--r-- | 3651/CH2/EX2.14/Ex2_14.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/3651/CH2/EX2.14/Ex2_14.sce b/3651/CH2/EX2.14/Ex2_14.sce new file mode 100644 index 000000000..c26ba4822 --- /dev/null +++ b/3651/CH2/EX2.14/Ex2_14.sce @@ -0,0 +1,18 @@ +
+//Variable declaration
+a=4.57
+h=1
+k=1
+l=1
+lamda=1.52
+twotheta=33.5*%pi/180
+r=5 //radius
+//Calculations
+d=a/(h**2+k**2+l**2)**(1/2)
+sintheta=lamda/(2*d)
+X=r/tan(twotheta)
+
+//Result
+printf('d =%0.3f Angstorms\n',(d))
+printf('sin(theta)=%0.3f \n',(sintheta))
+printf('X =%0.3f cm\n',(X))
|