summaryrefslogtreecommitdiff
path: root/3755/CH2/EX2.8/Ex2_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '3755/CH2/EX2.8/Ex2_8.sce')
-rw-r--r--3755/CH2/EX2.8/Ex2_8.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/3755/CH2/EX2.8/Ex2_8.sce b/3755/CH2/EX2.8/Ex2_8.sce
new file mode 100644
index 000000000..178502c63
--- /dev/null
+++ b/3755/CH2/EX2.8/Ex2_8.sce
@@ -0,0 +1,24 @@
+clear
+//
+//
+//
+
+//Variable declaration
+a=1.2;
+b=1.8;
+c=2.0; //crystal primitives
+x=2;
+y=3;
+z=1; //intercepts
+h=1.2; //intercept on X axis
+
+//Calculations
+h1=a/x;
+k1=b/y;
+l1=c/z;
+k=h*h1/k1; //intercept on Y axis
+l=h*l1/h1; //intercept on Z-axis
+
+//Result
+printf("\n intercept on Y axis is %0.3f angstrom",k)
+printf("\n intercept on Z axis is %0.3f angstrom",l)