diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /3411/CH6/EX6.6.u1/Ex6_6_u1.sce | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2 Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip |
updated the code
Diffstat (limited to '3411/CH6/EX6.6.u1/Ex6_6_u1.sce')
-rw-r--r-- | 3411/CH6/EX6.6.u1/Ex6_6_u1.sce | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/3411/CH6/EX6.6.u1/Ex6_6_u1.sce b/3411/CH6/EX6.6.u1/Ex6_6_u1.sce index 484d7eb5d..69fe8d9f0 100644 --- a/3411/CH6/EX6.6.u1/Ex6_6_u1.sce +++ b/3411/CH6/EX6.6.u1/Ex6_6_u1.sce @@ -2,11 +2,12 @@ clc();
clear;
//To calculate the ratio of stimulated emission to Spontaneous emission
-h=6.63*10^-34
-c=3*10^8
-lamda=694.3*10^-9
-kb=1.38*10^-23
-T=300
+h=6.63*10^-34 //units in m^2 kg s^-1
+c=3*10^8 //units in meter/sec
+lamda=694.3 //units in nm
+lamda=lamda*10^-9 //units in meters
+kb=1.38*10^-23 //units in m^2 kg s^-2 K^-1
+T=300 //units in K
constant=(h*c)/(lamda*kb*T)
R=1/(exp(constant)-1)
printf("The ratio of stimulated emission to Spontaneous emission is R=")
|