summaryrefslogtreecommitdiff
path: root/2939/CH1/EX1.4/Ex1_4.sce
blob: fe89ed4b1d66d589f9d153e512004968bd87c056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Ex1_4

clc;

//Given:

wavelength=10^-10;
m=9.1*10^-31;
h=6.626*10^-34;

//solution:

p=h/wavelength;
e=p*p/(2*m); // energy in J
e1=e/(1.6*10^-19);// energy in eV

printf("The energy in eV is = %f ",e1)