summaryrefslogtreecommitdiff
path: root/1004/CH2/EX2.2/Ch02Ex2.sci
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1004/CH2/EX2.2/Ch02Ex2.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 '1004/CH2/EX2.2/Ch02Ex2.sci')
-rwxr-xr-x1004/CH2/EX2.2/Ch02Ex2.sci12
1 files changed, 12 insertions, 0 deletions
diff --git a/1004/CH2/EX2.2/Ch02Ex2.sci b/1004/CH2/EX2.2/Ch02Ex2.sci
new file mode 100755
index 000000000..2eac459ce
--- /dev/null
+++ b/1004/CH2/EX2.2/Ch02Ex2.sci
@@ -0,0 +1,12 @@
+// Scilab Code Ex2.2 Maximum velocity of photoelectrons: Pg:44 (2008)
+phi = 4*1.6e-019; // Work function for photoelectric surface, joule
+h = 6.6e-034; // Planck's constant, Js
+e = 1.6e-019; // Electronic charge, coulomb
+m = 9.1e-031; // Mass of the electron, kg
+f = 1e+15; // Frequency of incident photons, Hz
+c = 3e+08; // Speed of light, m/s
+// KE = 1/2*m*v^2 = h*f - phi, solving for v, we have
+v = sqrt(2*(h*f - phi)/m); // Maximum velocity of photoelectrons, m/s
+printf("\nThe maximum velocity of photoelectrons = %5.3e m/s", v);
+// Result
+// The maximum velocity of photoelectrons = 2.097e+005 m/s \ No newline at end of file