summaryrefslogtreecommitdiff
path: root/3401/CH2/EX2.1/Ex2_1.sce
blob: 91f0cbc73c4cd1ea40c98cc04fee026e580ce173 (plain)
1
2
3
4
5
6
7
8
9
10
clc

lambda=0.708*10^-8// cm
h=6.625*10^-34// J*s Plank's constant
c=3*10^10// cm/s
e=1.6*10^-19// eV
E=h*c/lambda// E=hv=hc/lambda
disp(E,"the value of E in J is")
E=E/e
disp(E,"the value of E in eV is")