summaryrefslogtreecommitdiff
path: root/3822/CH5/EX5.1/Ex5_1.sce
blob: d808eae3226e31610789dd06a553711f5ef7bed2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20


//OptoElectronics and Fibre Optics Communication, by C.K Sarkar and B.C Sarkar
//Example 5.1
//OS=Windows 10
////Scilab version Scilab 6.0.0-beta-2(64 bit)
clc;
clear;

//given
Tc=727;//temperature in celcius
lamda=0.5*10^-6;//wavength of emitting radiation in M
h=6.626*10^-34;//Plank's constant in SI units
KB=1.38*10^-23;//boltzman constant in SI units
c=3*10^8;//speed of light in m/s
f=c/lamda;//frequency in Hz
T=Tc+273;//temperature in kelvin
c1=(h*f)/(KB*T);//constant value
B21byA21Pf=1/(exp(c1)-1);//ratio of stimulated and spontaneous emission rate
mprintf("\n Ratio between stimulated and spontaneous emission is =%.1fx10^-13",B21byA21Pf*1e13); //multiplication by 1e13 to convert the ratio to 10^-13