summaryrefslogtreecommitdiff
path: root/3755/CH6/EX6.7/Ex6_7.sce
blob: 1521b66263265cf176b54951bfeed3dfa29a5904 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clear
//
//
//

//Variable declaration    
h=6.6*10^-34;        //planck's constant(J-sec)
m=9.1*10^-31;    //mass of electron(kg)
lamda=0.4*10^-10;        //de-broglie wavelength(m)
e=1.6*10^-19;        //charge of electron(c)

//Calculations
V=h^2/(2*m*e*lamda^2);      //voltage(V)

//Result
printf("\n voltage is %0.1f V",V)
printf("\n answer in the book is wrong")