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 /1985/CH12/EX12.7 | |
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 '1985/CH12/EX12.7')
-rwxr-xr-x | 1985/CH12/EX12.7/Chapter12_example7.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/1985/CH12/EX12.7/Chapter12_example7.sce b/1985/CH12/EX12.7/Chapter12_example7.sce new file mode 100755 index 000000000..c32a46396 --- /dev/null +++ b/1985/CH12/EX12.7/Chapter12_example7.sce @@ -0,0 +1,13 @@ +clc
+clear
+//Input data
+lo=3200*10^-10//Threshold wavelength in m
+h=6.625*10^-34//Plancks constant in J.s
+c=3*10^8//Velocity of light in m/s
+e=1.6*10^-19//Charge of electron in Columbs
+
+//Calculations
+W=((h*c)/(lo*e))//Work function of platinum in eV
+
+//Output
+printf('The photoelectric workfunction for platinum is %3.4f eV',W)
|