summaryrefslogtreecommitdiff
path: root/1985/CH11/EX11.6/Chapter11_Example6.sce
diff options
context:
space:
mode:
Diffstat (limited to '1985/CH11/EX11.6/Chapter11_Example6.sce')
-rwxr-xr-x1985/CH11/EX11.6/Chapter11_Example6.sce14
1 files changed, 14 insertions, 0 deletions
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)