summaryrefslogtreecommitdiff
path: root/3740/CH1/EX1.6/Ex1_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '3740/CH1/EX1.6/Ex1_6.sce')
-rw-r--r--3740/CH1/EX1.6/Ex1_6.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3740/CH1/EX1.6/Ex1_6.sce b/3740/CH1/EX1.6/Ex1_6.sce
new file mode 100644
index 000000000..910aa0cb9
--- /dev/null
+++ b/3740/CH1/EX1.6/Ex1_6.sce
@@ -0,0 +1,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