From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1985/CH11/EX11.6/Chapter11_Example6.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 1985/CH11/EX11.6/Chapter11_Example6.sce (limited to '1985/CH11/EX11.6/Chapter11_Example6.sce') diff --git a/1985/CH11/EX11.6/Chapter11_Example6.sce b/1985/CH11/EX11.6/Chapter11_Example6.sce new file mode 100755 index 000000000..45b8fa949 --- /dev/null +++ b/1985/CH11/EX11.6/Chapter11_Example6.sce @@ -0,0 +1,14 @@ +clc +clear +//Input data +q=60//Angle of scattering in degrees +l=1.24//Wavelength of X-rays in angstroms +m=9.1*10^-31//Mass of the electron in kg +h=6.625*10^-34//Plancks constant in J.s +c=(3*10^8)//Velocity of light in m/s + +//Calculations +dl=((h*(1-cosd(q)))/(m*c))/10^-10//The Compton angle in degrees + +//Output +printf('The Compton shift is %3.3f angstroms',dl) -- cgit