summaryrefslogtreecommitdiff
path: root/3740/CH1/EX1.6/Ex1_6.sce
blob: 910aa0cb9c3d766506bf1c5be15b9168515a0101 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Optoelectronics - An Introduction, 2nd Edition by J. Wilson and J.F.B. Hawkes
//Example 1.6
//OS=Windows XP sp3
//Scilab version 5.5.2
clc;
clear;

//given
v0=1.1e15;//threshold frequency of light in Hz
e=1.6e-19;//charge of electrons in C
h=6.62e-34;//Planck's constant in SI Units

phi=h*v0/e;//work function of the metal in eV
mprintf("Phi = %.1f eV",phi);//The answers vary due to round off error