summaryrefslogtreecommitdiff
path: root/1970/CH4/EX4.16/Ch04Exa16.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1970/CH4/EX4.16/Ch04Exa16.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1970/CH4/EX4.16/Ch04Exa16.sce')
-rwxr-xr-x1970/CH4/EX4.16/Ch04Exa16.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1970/CH4/EX4.16/Ch04Exa16.sce b/1970/CH4/EX4.16/Ch04Exa16.sce
new file mode 100755
index 000000000..d483192b4
--- /dev/null
+++ b/1970/CH4/EX4.16/Ch04Exa16.sce
@@ -0,0 +1,15 @@
+// Scilab code Exa4.16 : : Page 182 (2011)
+clc; clear;
+u = 1.49; // Refractive index
+E = 20*1.60218e-019; // Energy of the electron, joule
+m_e = 9.1e-031; // Mass of the electron, Kg
+C = 3e-08; // Velocity of the light, m/s
+bta = (1 + {1/(E/(m_e*C^2)+1)}^2 ); // Boost parameter
+z = 1; //
+L_1 = 4000e-010; // Initial wavelength, metre
+L_2 = 7000e-010; // Final wavelength, metre
+N = 2*%pi*z^2/137*(1/L_1-1/L_2)*(1-1/(bta^2*u^2)); // Number of quanta of visible light, quanta per centimetre
+printf("\nThe total number of quantas during emission of visible light = %d quanta/cm", round(N/100));
+
+// Result
+// The total number of quantas during emission of visible light = 270 quanta/cm \ No newline at end of file