summaryrefslogtreecommitdiff
path: root/3869/CH7/EX7.4/Ex7_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3869/CH7/EX7.4/Ex7_4.sce')
-rw-r--r--3869/CH7/EX7.4/Ex7_4.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/3869/CH7/EX7.4/Ex7_4.sce b/3869/CH7/EX7.4/Ex7_4.sce
new file mode 100644
index 000000000..8f491652c
--- /dev/null
+++ b/3869/CH7/EX7.4/Ex7_4.sce
@@ -0,0 +1,20 @@
+clear
+//
+//
+//
+
+//Variable declaration
+theta=9.5*%pi/180 //glancing angle(radian)
+lamda=0.58 //wavelength of X-rays(angstrom)
+n=1 //order
+h=2
+k=0
+l=0
+
+//Calculation
+d=n*lamda/(2*sin(theta))
+a=d*sqrt(h**2+k**2+l**2) //lattice parameter(angstrom)
+
+//Result
+printf("\n lattice parameter is %0.3f angstrom",a)
+printf("\n answer given in the book varies due to rounding off errors")