summaryrefslogtreecommitdiff
path: root/3020/CH11/EX11.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3020/CH11/EX11.3
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 '3020/CH11/EX11.3')
-rwxr-xr-x3020/CH11/EX11.3/ex11_3.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3020/CH11/EX11.3/ex11_3.sce b/3020/CH11/EX11.3/ex11_3.sce
new file mode 100755
index 000000000..6afb08b88
--- /dev/null
+++ b/3020/CH11/EX11.3/ex11_3.sce
@@ -0,0 +1,11 @@
+clc;
+clear all;
+T = 523; // Temperature in kelvin
+c = 3e8;// Velocity of air
+h = 6.626e-34; // Plancks constant
+k = 1.38e-23; // Boltzmanns constant
+e = 1.602e-19; // Charge of an electron
+lambda = 5900e-10; // Wavelength of light in meters
+r = exp(((h*c)/(k*T*lambda))); // Temporary variable
+t = (1/(r-1)); //t =(Stimulated emission/Spontaneous emission)
+disp('',t,'Ratio between stimulated emission and spontaneous emission')