summaryrefslogtreecommitdiff
path: root/3869/CH6/EX6.20/Ex6_20.sce
diff options
context:
space:
mode:
Diffstat (limited to '3869/CH6/EX6.20/Ex6_20.sce')
-rw-r--r--3869/CH6/EX6.20/Ex6_20.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3869/CH6/EX6.20/Ex6_20.sce b/3869/CH6/EX6.20/Ex6_20.sce
new file mode 100644
index 000000000..1b3b30d02
--- /dev/null
+++ b/3869/CH6/EX6.20/Ex6_20.sce
@@ -0,0 +1,17 @@
+clear
+//
+//
+//
+
+//Variable declaration
+h=2
+k=2
+l=0 //miller indices
+a=450 //length(nm)
+
+//Calculation
+d220=a/sqrt(h**2+k**2+l**2) //interplanar spacing(nm)
+
+//Result
+printf("\n interplanar spacing is %0.1f nm",d220)
+printf("\n answer given in the book is wrong")