diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2309/CH4/EX4.2 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2309/CH4/EX4.2')
-rwxr-xr-x | 2309/CH4/EX4.2/Ex4_2.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/2309/CH4/EX4.2/Ex4_2.sce b/2309/CH4/EX4.2/Ex4_2.sce new file mode 100755 index 000000000..9b8a1f981 --- /dev/null +++ b/2309/CH4/EX4.2/Ex4_2.sce @@ -0,0 +1,20 @@ +// Chapter 4 Example 2
+//==============================================================================
+clc;
+clear;
+
+// input data
+theta = 135; // angle in degrees
+h = 6.625*10^-34 // plancks constant
+mo = 9.1*10^-31 // mass in Kg
+c = 3*10^8; // vel. of light in m/s
+
+// Calculatioms
+// from Compton theory ,Compton shift is given by
+// lamda' - lamda = (h/(mo*c))*(1-cosθ)
+theta_r = theta*%pi/180; // degree to radian conversion
+c_lamda = ( (h/(mo*c))*(1-cos(theta_r))) // Change in wavelength in m
+
+// Output
+mprintf('Change in Wavelength = %3.5f Å',c_lamda*10^10);
+//==============================================================================
|