summaryrefslogtreecommitdiff
path: root/2411/CH5/EX5.4/Ex5_4.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2411/CH5/EX5.4/Ex5_4.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/CH5/EX5.4/Ex5_4.sce')
-rwxr-xr-x2411/CH5/EX5.4/Ex5_4.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2411/CH5/EX5.4/Ex5_4.sce b/2411/CH5/EX5.4/Ex5_4.sce
new file mode 100755
index 000000000..e63354552
--- /dev/null
+++ b/2411/CH5/EX5.4/Ex5_4.sce
@@ -0,0 +1,13 @@
+// Scilab Code Ex5.4: Page-285 (2008)
+clc; clear;
+h = 6.62e-034; // Planck's constant, Js
+c = 3e+008; // Speed of light, m/s
+lambda = 2300e-010; // Thereshold wavelength for tungsten, m
+phi = h*c/lambda; // Work function for tungsten, J
+lambda = 1800e-010; // Wavelength of incident radiation, m
+E = h*c/lambda; // Energy of the incidnt radiation, J
+KE = E - phi; // Kinetic energy of the ejected photoelectrons, J
+printf("\nThe kinetic energy of the ejected photoelectrons = %3.1f eV", KE/1.6e-019);
+
+// Result
+// The kinetic energy of the ejected photoelectrons = 1.5 eV \ No newline at end of file