summaryrefslogtreecommitdiff
path: root/2795/CH3/EX3.12/Ex3_12.sce
diff options
context:
space:
mode:
Diffstat (limited to '2795/CH3/EX3.12/Ex3_12.sce')
-rwxr-xr-x2795/CH3/EX3.12/Ex3_12.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2795/CH3/EX3.12/Ex3_12.sce b/2795/CH3/EX3.12/Ex3_12.sce
new file mode 100755
index 000000000..e9e955851
--- /dev/null
+++ b/2795/CH3/EX3.12/Ex3_12.sce
@@ -0,0 +1,17 @@
+
+// Scilab Code Ex3.12: Page-109 (2013)
+clc; clear
+phi = 2.93; // Work function of lithium, eV
+c = 2.998e+008; // Speed of light in vacuum, m/s
+K = 3.00; // Kinetic energy of photoelectron, eV
+E = phi + K; // Total energy of the incident light, eV
+h = 6.626e-034; // Planck's constant, Js
+e = 1.6e-019; // Energy equivalent of 1 eV, J
+f = E*e/h; // Frequency of incident light, Hz
+lambda = c/f; // Wavelength of the incident light, m
+printf("\nThe frequency of incident light = %4.2e Hz", f);
+printf("\nThe wavelength of the incident light = %4.2f nm", lambda/1e-009);
+
+// Result
+// The frequency of incident light = 1.43e+015 Hz
+// The wavelength of the incident light = 209.37 nm