diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3755/CH2/EX2.10/Ex2_10.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3755/CH2/EX2.10/Ex2_10.sce')
-rw-r--r-- | 3755/CH2/EX2.10/Ex2_10.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/3755/CH2/EX2.10/Ex2_10.sce b/3755/CH2/EX2.10/Ex2_10.sce new file mode 100644 index 000000000..f544aff7d --- /dev/null +++ b/3755/CH2/EX2.10/Ex2_10.sce @@ -0,0 +1,25 @@ +clear
+//
+//
+//
+
+//Variable declaration
+h1=0; //intercept on X axis
+k1=1; //intercept on Y axis
+l1=1; //intercept on Z-axis
+h2=1; //intercept on X axis
+k2=0; //intercept on Y axis
+l2=1; //intercept on Z-axis
+h3=1; //intercept on X axis
+k3=1; //intercept on Y axis
+l3=2; //intercept on Z-axis
+
+//Calculations
+d1=h1^2+k1^2+l1^2; //interplanar spacing in 1st plane(angstrom)
+d2=h2^2+k2^2+l2^2; //interplanar spacing in 2nd plane(angstrom)
+d3=h3^2+k3^2+l3^2; //interplanar spacing in 3rd plane(angstrom)
+
+//Result
+printf("\n interplanar spacing in 1st plane is a/sqrt( %0.3f ) angstrom",d1)
+printf("\n interplanar spacing in 2nd plane is a/sqrt( %0.3f ) angstrom",d2)
+printf("\n interplanar spacing in 3rd plane is a/sqrt( %0.3f ) angstrom",d3)
|