summaryrefslogtreecommitdiff
path: root/296/CH1/EX1.2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /296/CH1/EX1.2
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '296/CH1/EX1.2')
-rwxr-xr-x296/CH1/EX1.2/eg1_2.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/296/CH1/EX1.2/eg1_2.sce b/296/CH1/EX1.2/eg1_2.sce
new file mode 100755
index 000000000..a879d15c8
--- /dev/null
+++ b/296/CH1/EX1.2/eg1_2.sce
@@ -0,0 +1,10 @@
+disp("The plane illustrated in Fig. 1-5 has intercepts at 2a, 4b and lc along the three crystal axes. Taking the reciprocals of these intercepts, we get 1/4, 1/2,and 1. These three fractions have the same relationship to each other as the integers 2,1, and 4 (obtained by multiplying each fraction by 4).Thus the plane can be referred to as a (214) plane. The only exception is if the intercept is a fraction of the lattice constant a. In that case, we do not reduce it to the lowest set of integers.")
+x = 0:0.05:2;
+y = 0:0.1:4;
+a=2;
+b=4;
+c=1;
+deff('[z]=fs(x,y)','z = (1-(0.5*x)-(0.25*y))');
+//z = (1-(0.5*x)-(0.25*y));
+fplot3d(x,y,fs);
+