summaryrefslogtreecommitdiff
path: root/3875/CH10/EX10.11/10_11.sce
blob: d9c1fae8751b96056bb39c904d705c404a858554 (plain)
1
2
3
4
5
6
7
8
9
10
11
clc;
clear;
W=1.2*1.6*10^-19 //work function in eV
h=6.6*10^-34 //Plancks constant in J-s
v=5.5*10^14 // frequency of light in Hz
e=1.6*10^-19 //charge in C

V_s=((h*v)-W)/e

mprintf("The stopping potential is = %1.2f volt",V_s)
//Answer varies due to round off error.