summaryrefslogtreecommitdiff
path: root/623/CH2/EX2.1.6/U2_C1_6.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /623/CH2/EX2.1.6/U2_C1_6.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 '623/CH2/EX2.1.6/U2_C1_6.sce')
-rwxr-xr-x623/CH2/EX2.1.6/U2_C1_6.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/623/CH2/EX2.1.6/U2_C1_6.sce b/623/CH2/EX2.1.6/U2_C1_6.sce
new file mode 100755
index 000000000..c7034715c
--- /dev/null
+++ b/623/CH2/EX2.1.6/U2_C1_6.sce
@@ -0,0 +1,15 @@
+//variable initialization
+lembda1=4000 //wavelength of light (Å)
+V1=2 //stopping potential (volt)
+lembda2=6000 //wavelength of light (Å)
+V2=1 //stopping potential (volt)
+e=1.6*10^-19; //Charge of electron (coulombs)
+c=3*10^8; //speed of light (meter/second)
+ch=12400 //constant (eV Å)
+//(i) Planck's constant
+h=(e*(V1-V2)*lembda1*10^-10*lembda2*10^-10)/(c*((lembda2*10^-10)-(lembda1*10^-10))); //Planck's constant (joule-second)
+
+//(ii) Work function
+phi=(ch/lembda1)-V1; //work function of the material (eV)
+
+printf("\n(i) Planck`s constant = h = %.1e joule-second\n(ii) Work function of the material = %.1f eV",h,phi);