summaryrefslogtreecommitdiff
path: root/3014/CH1/EX1.21/Ex1_21.sce
blob: cc1e81b08f5844f1c8bab65e364dbfbbe3b8c2ed (plain)
1
2
3
4
5
6
7
8
9
10
clc 
//Given that
k = 8.6e-5 // Boltzmann constant
t = 37 // Temperature in degree Celsius
h = 6.62e-34 // Plank constant
m = 1.67e-27 // Mass of neutron
printf("Example 1.21")
lambda = h/sqrt(3*m*(k*1.6e-19)*(t+273))// Calculation of wavelength
printf("\n Wavelength of neutron at %d degree Celsius is %f angstrom.\n\n\n",t,lambda*1e10)