summaryrefslogtreecommitdiff
path: root/2411/CH7/EX7.11/Ex7_11.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2411/CH7/EX7.11/Ex7_11.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 '2411/CH7/EX7.11/Ex7_11.sce')
-rwxr-xr-x2411/CH7/EX7.11/Ex7_11.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2411/CH7/EX7.11/Ex7_11.sce b/2411/CH7/EX7.11/Ex7_11.sce
new file mode 100755
index 000000000..a99c6d7bf
--- /dev/null
+++ b/2411/CH7/EX7.11/Ex7_11.sce
@@ -0,0 +1,16 @@
+// Scilab Code Ex7.11: Page-380 (2008)
+clc; clear;
+e = 1.6e-019; // The energy equivalent of 1 eV, J
+c = 3e+008; // Speed of light in vacuum, m/s
+V = [30 44 50 200]; // Operating voltages of X ray, kV
+lambda_min = [0.414 0.284 0.248 0.062]; // Minimum wavelengths of emitted continuous X rays, angstrom
+for i = 1:1:4
+ h = e*V(i)*1e+003*lambda_min(i)*1e-010/c; // Planck's constant, Js
+ printf("\nFor V = %d kV and lambda_min = %5.3f angstrom, h = %4.2e Js", V(i), lambda_min(i), h);
+end
+
+// Result
+// For V = 30 kV and lambda_min = 0.414 angstrom, h = 6.62e-034 Js
+// For V = 44 kV and lambda_min = 0.284 angstrom, h = 6.66e-034 Js
+// For V = 50 kV and lambda_min = 0.248 angstrom, h = 6.61e-034 Js
+// For V = 200 kV and lambda_min = 0.062 angstrom, h = 6.61e-034 Js \ No newline at end of file