summaryrefslogtreecommitdiff
path: root/3665/CH6/EX6.14/Ex6_14.sce
blob: 884730ce9ed5b69250f9680e91554060a00712d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc//
//
//

//Variable declaration
E=1.5*9.1*10^-31;    //energy(joule)
m=1.676*10^-27;     //mass(kg)
h=6.62*10^-34;    //planck's constant

//Calculation
v=sqrt(2*E/m);    
lamda=h/(m*v);       //wavelength(m)

//Result
printf("\n wavelength is %0.3f *10^-6 m",lamda*10^6)
printf("\n answer varies due to rounding off errors")