summaryrefslogtreecommitdiff
path: root/3537/CH5/EX5.30
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3537/CH5/EX5.30
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3537/CH5/EX5.30')
-rw-r--r--3537/CH5/EX5.30/Ex5_30.sce17
-rw-r--r--3537/CH5/EX5.30/Ex5_30.txt2
2 files changed, 19 insertions, 0 deletions
diff --git a/3537/CH5/EX5.30/Ex5_30.sce b/3537/CH5/EX5.30/Ex5_30.sce
new file mode 100644
index 000000000..4b6f269ff
--- /dev/null
+++ b/3537/CH5/EX5.30/Ex5_30.sce
@@ -0,0 +1,17 @@
+//Example 5_30
+clc();
+clear;
+//To give an explanation for the differences between samples
+lamda=0.152 //units in nm
+h=1
+k=1
+l=1
+theta1=21 //units in degrees
+theta2=383 //units in degrees
+d111a=lamda/(2*sin(theta1*%pi/180)) //units in nm
+d111b=lamda/(2*sin(theta2*%pi/180)) //units in nm
+alpha1=d111a*sqrt(h^2+k^2+l^2) //units in nm
+alpha2=d111b*sqrt(h^2+k^2+l^2) //units in nm
+printf("For sample A Alpha=%.3f nm",alpha1)
+printf("\nFor sample B Alpha=%.3f nm",alpha2)
+//In text book answers are printed wrong as 0.363nm and 0.361nm correct answers are 0.3 nm and 0.275nm
diff --git a/3537/CH5/EX5.30/Ex5_30.txt b/3537/CH5/EX5.30/Ex5_30.txt
new file mode 100644
index 000000000..50660766f
--- /dev/null
+++ b/3537/CH5/EX5.30/Ex5_30.txt
@@ -0,0 +1,2 @@
+For sample A Alpha=0.367 nm
+For sample B Alpha=0.337 nm \ No newline at end of file