summaryrefslogtreecommitdiff
path: root/1004/CH2/EX2.31
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1004/CH2/EX2.31
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 '1004/CH2/EX2.31')
-rwxr-xr-x1004/CH2/EX2.31/Ch02Ex31.sci9
1 files changed, 9 insertions, 0 deletions
diff --git a/1004/CH2/EX2.31/Ch02Ex31.sci b/1004/CH2/EX2.31/Ch02Ex31.sci
new file mode 100755
index 000000000..ecd11fed4
--- /dev/null
+++ b/1004/CH2/EX2.31/Ch02Ex31.sci
@@ -0,0 +1,9 @@
+// Scilab Code Ex2.31 Atomic number of impurity in Zinc target: Pg:65 (2008)
+L1 = 1.43603e-010; // Wavelength of characteristic K_alpha line from Zn, m
+Z1 = 30; // Atomic number of zinc
+L2 = 0.53832e-010; // Wavelength of unknown line from Zn, m
+// As (1/L1)/(1/L2) = (Z1/Z2)^2, solving for Z2
+Z2 = Z1*(L1/L2)^(1/2); // Atomic number of impurity in Zn target
+printf("\nThe atomic number of impurity in Zn target = %2d", round(Z2));
+// Result
+// The atomic number of impurity in Zn target = 49 \ No newline at end of file