1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Chapter 2: Lasers"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 2.1: To_calculate_relative_populatio.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"// chapter 2 , Example2 1 , pg 52\n",
"lam=590*10^-9//wavelength(in m)\n",
"T=250+273 //temperature(in kelvin) (converting celsius into kelvin)\n",
"k=1.38*10^-23//boltzman constant (in (m^2*Kg)/(s^2*k))\n",
"h=6.625*10^-34//plancks constant(in Js)\n",
"c=3*10^8//speed of light\n",
"N=exp(-(h*c)/(lam*k*T)) //N=(n2/n1)=relative population of atoms in the 1st excited state and in ground state\n",
"//n1=number of atoms in ground state\n",
"//n2=number of atoms in excited state\n",
"printf('Relative population of Na atoms in the 1st excited state and in ground state\n')\n",
"disp(N)"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 2.2: To_calculate_ratio_of_stimulated_emission_to_spontaneous_emission.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"// chapter 2 , Example2 2 , pg 53\n",
"T=250+273 //temperature(in kelvin) (converting celsius into kelvin)\n",
"h=6.625*10^-34//plancks constant(in Js)\n",
"c=3*10^8//speed of light(in m/s)\n",
"lam=590*10^-9//wavelength(in m)\n",
"k=1.38*10^-23//boltzman constant (in (m^2*Kg)/(s^2*k))\n",
"N=1/(exp((h*c)/(lam*k*T))-1) //N=((n21)'/(n21)) ratio of stimulated emission to spontaneous emission\n",
"printf('Ratio of stimulated emission to spontaneous emission is')\n",
"disp(N)\n",
"\n",
"\n",
"//answer given is wrong"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 2.3: calculate_number_of_photons_emitted_per_minute.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"// chapter 2 , Example2 3 , pg 53\n",
"lam=632.8*10^-9//wavelength(in m)\n",
"Em=3.147*10^-3*60//energy emitted per minute(in J/min)\n",
"c=3*10^8//speed of light(in m/s)\n",
"h=6.625*10^-34//plancks constant(in Js)\n",
"n=c/lam //frequency of emitted photons(in Hz)\n",
"E=h*n //energy of each photon(in J)\n",
"N=Em/E //number of photons emitted per minute\n",
"printf('Number of photons emitted per minute')\n",
"disp(N)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Scilab",
"language": "scilab",
"name": "scilab"
},
"language_info": {
"file_extension": ".sce",
"help_links": [
{
"text": "MetaKernel Magics",
"url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md"
}
],
"mimetype": "text/x-octave",
"name": "scilab",
"version": "0.7.1"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
|