summaryrefslogtreecommitdiff
path: root/3411/CH5/EX5.5.u1/Ex5_5_u1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3411/CH5/EX5.5.u1/Ex5_5_u1.sce
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 '3411/CH5/EX5.5.u1/Ex5_5_u1.sce')
-rw-r--r--3411/CH5/EX5.5.u1/Ex5_5_u1.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/3411/CH5/EX5.5.u1/Ex5_5_u1.sce b/3411/CH5/EX5.5.u1/Ex5_5_u1.sce
new file mode 100644
index 000000000..465d3c061
--- /dev/null
+++ b/3411/CH5/EX5.5.u1/Ex5_5_u1.sce
@@ -0,0 +1,9 @@
+//Example 5_5_u1
+clc();
+clear;
+//To find out the interplanar spacing of the reflecting planes of the crystal
+theta=28 //units in degrees
+lamda=0.12 //units in nm
+n=2
+d=(n*lamda)/(2*sin(theta*(%pi/180)))
+printf("The interplanar spacing of the reflecting planes of the crystal is d=%.2fnm",d)