summaryrefslogtreecommitdiff
path: root/1958/CH17/EX17.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1958/CH17/EX17.1
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 '1958/CH17/EX17.1')
-rwxr-xr-x1958/CH17/EX17.1/Chapter17_example1.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/1958/CH17/EX17.1/Chapter17_example1.sce b/1958/CH17/EX17.1/Chapter17_example1.sce
new file mode 100755
index 000000000..296858a88
--- /dev/null
+++ b/1958/CH17/EX17.1/Chapter17_example1.sce
@@ -0,0 +1,16 @@
+clc
+clear
+//Input data
+w=4000//Wavelength of the light in Angstrom units
+wf=2.25//Work function of potassium in eV
+m=(9.1*10^-31)//Mass of the electron in kg
+v=(3*10^8)//Velocity of light in m/s
+c=(1.6*10^-19)//Charge of the electron in coloumbs
+h=6.626*10^-34//Plancks constant in Js
+
+//Calculations
+E=(h*v)/(w*10^-10*c)//Energy of incident photon in eV
+KE=(E-wf)//Kinetic energy in eV
+
+//Output
+printf('Maximum kinetic energy of photoelectron is %3.3f eV',KE)