summaryrefslogtreecommitdiff
path: root/635/CH8/EX8.7/Ch08Ex7.sci
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /635/CH8/EX8.7/Ch08Ex7.sci
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 '635/CH8/EX8.7/Ch08Ex7.sci')
-rwxr-xr-x635/CH8/EX8.7/Ch08Ex7.sci17
1 files changed, 17 insertions, 0 deletions
diff --git a/635/CH8/EX8.7/Ch08Ex7.sci b/635/CH8/EX8.7/Ch08Ex7.sci
new file mode 100755
index 000000000..5f87c26da
--- /dev/null
+++ b/635/CH8/EX8.7/Ch08Ex7.sci
@@ -0,0 +1,17 @@
+// Scilab Code Ex8.7 Calculation of wavelengths of tin and barium using Moseley's law Page-257 (2010)
+Z_Fe = 26; // Atomic number of iron
+Z_Pt = 78; // Atomic number of platinum
+Z_Sn = 50; // Atomic number of tin
+Z_Ba = 56; // Atomic number of barium
+b = 1; // Mosley's constant for K-series
+lambda_Fe = 1.93e-010; // Wavelength of K_alpha line of Fe
+lambda_Pt = 0.19e-010; // Wavelength of K_alpha line of Pt
+// From Moseley's Law,
+// f = a*(Z-1)^2. This implies lambda = C*1/(Z-1)^2
+// so that lambda_Fe = C*1/(Z_Fe-1)^2 and lambda_Sn = C*1/(Z_Sn-1)^2
+// Dividing lambda_Sn by lambda_Fe and solving for lambda_Sn
+lambda_Sn = (Z_Fe-1)^2/(Z_Sn-1)^2*lambda_Fe; // Wavelength of K_alpha line for tin, m
+lambda_Ba = (Z_Pt-1)^2/(Z_Ba-1)^2*lambda_Pt; // Wavelength of K_alpha line for barium, m
+printf("\nThe wavelengths of tin and barium = %3.1f angstrom and %4.2f angstrom respectively", lambda_Sn/1D-10, lambda_Ba/1D-10);
+// Result
+// The wavelengths of tin and barium = 0.5 angstrom and 0.37 angstrom respectively \ No newline at end of file