diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1004/CH2/EX2.12 | |
download | Scilab-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.12')
-rwxr-xr-x | 1004/CH2/EX2.12/Ch02Ex12.sci | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/1004/CH2/EX2.12/Ch02Ex12.sci b/1004/CH2/EX2.12/Ch02Ex12.sci new file mode 100755 index 000000000..bcc198483 --- /dev/null +++ b/1004/CH2/EX2.12/Ch02Ex12.sci @@ -0,0 +1,12 @@ +// Scilab Code Ex2.12 Velocity of the emitted electron: Pg:49 (2008)
+m = 9.1e-031; // Mass of electron, kg
+c = 3e+08; // Speed of light, m/s
+e = 1.6e-019; // Energy equivalent of 1 eV, joule/eV
+phi = 2.3*e; // Work function of metal, J
+L = 4300e-010; // Wavelength of incident light, m
+// As 1/2*m*v^2 = h*f - phi = h*c/L - phi, Einstein's photoelectric equation
+// Solving for v
+v = sqrt(2*(h*c/L - phi)/m); // Velocity of emitted electron, m/s
+printf("\nThe velocity of emitted electron = %4.2e eV", v);
+// Result
+// The velocity of emitted electron = 4.55e+005 eV
\ No newline at end of file |