diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /1026/CH9/EX9.8/Example9_8.sce | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2 Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip |
updated the code
Diffstat (limited to '1026/CH9/EX9.8/Example9_8.sce')
-rwxr-xr-x | 1026/CH9/EX9.8/Example9_8.sce | 50 |
1 files changed, 26 insertions, 24 deletions
diff --git a/1026/CH9/EX9.8/Example9_8.sce b/1026/CH9/EX9.8/Example9_8.sce index 8f2763134..2c587f9e4 100755 --- a/1026/CH9/EX9.8/Example9_8.sce +++ b/1026/CH9/EX9.8/Example9_8.sce @@ -1,25 +1,27 @@ -//chapter9,Example9_8,pg 239
-
-//from bragg's law
-
-//2*d*sin(theta)=n*lam
-
-n=1
-
-theta1=5.4*(%pi/180)
-
-theta2=7.6*(%pi/180)
-
-theta3=9.4*(%pi/180)
-
-d100=lam/2*sin(theta1)
-
-d110=lam/2*sin(theta2)
-
-d111=lam/2*sin(theta3)
-
-printf("ratio of interplannar spacing \n(1/d100):(1/d110):(1/d111)=")
-
-printf("%.2f:",sin(theta1));printf("%.2f:",sin(theta2));printf("%.2f",sin(theta3));
-
+//chapter9,Example9_8,pg 239 + +//from bragg's law + +//2*d*sin(theta)=n*lam + +n=1 + +theta1=5.4*(%pi/180) + +theta2=7.6*(%pi/180) + +theta3=9.4*(%pi/180) + +lam = 2 + +d100=lam/2*sin(theta1) + +d110=lam/2*sin(theta2) + +d111=lam/2*sin(theta3) + +printf("ratio of interplannar spacing \n(1/d100):(1/d110):(1/d111)=") + +printf("%.2f:",sin(theta1));printf("%.2f:",sin(theta2));printf("%.2f",sin(theta3)); + printf("\nas ratio (1/d100):(1/d110):(1/d111)=1:sqrt(2):sqrt(3)this relation is valid for simple cubic crystal therefore, this is a SCC crystal")
\ No newline at end of file |