summaryrefslogtreecommitdiff
path: root/3769/CH23/EX23.1/Ex23_1.sce
blob: 1752e48cda9c313645d93778ccdf33d47e738e78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clear
//Given
h=6.62*10**-34                                     //J
c=3*10**8                                           //m/s
l=4.0*10**-7                                           //m

//Calculation
E=((h*c)/l)/1.6*10**-19
p=h/l

//Result
printf("\n Value of energy is %0.1f  ev",E*10**38)
printf("\n Momentum of photon is %0.3f  kg m/s",p)