summaryrefslogtreecommitdiff
path: root/2780/CH7/EX7.4/Ex7_4.sce
blob: 8c5e1b14eeca86bf2e0f82fc1a78462398b0942f (plain)
1
2
3
4
5
6
7
clc
//to calculate wavelength
h=6.6*10^-34 //plank's constant
m=9.1*10^-31 //mass of electron in kg
E=1.25*10^3 //pottential difference keV
lambda=h/sqrt(2*m*E*1.6*10^-19)
disp("the wavelength is lambda="+string(lambda)+"angstrom")