summaryrefslogtreecommitdiff
path: root/3651/CH3/EX3.5/5.sce
blob: e0ff96ccbfbd7d7440e8b0b4620b65e12fd9bc1c (plain)
1
2
3
4
5
6
7
8
9
10
11
//Variable declaration
KE=10             //Kinetic Energy of neutron in keV
m=1.675*10**-27
h=6.625*10**-34
//Calculations
KE=10**4*1.6*10**-19      //in joule
v=((2*KE)/m)**(1/2)       //derived from KE=1/2*m*v**2
lamda=h/(m*v)
//Results
printf('Velocity =%0.3f  *10**6 m/s \n  ',(v/10**6))
printf('Wavelength =%0.3f  Angstorm \n ',(lamda*10**10))