summaryrefslogtreecommitdiff
path: root/24/CH42
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /24/CH42
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 '24/CH42')
-rwxr-xr-x24/CH42/EX42.1/Example42_1.sce10
-rwxr-xr-x24/CH42/EX42.1/Example42_1_result.txt2
-rwxr-xr-x24/CH42/EX42.2/Example42_2.sce12
-rwxr-xr-x24/CH42/EX42.2/Example42_2_result.txt2
-rwxr-xr-x24/CH42/EX42.3/Example42_3.sce15
-rwxr-xr-x24/CH42/EX42.3/Example42_3_result.txt5
-rwxr-xr-x24/CH42/EX42.4/Example42_4.sce17
-rwxr-xr-x24/CH42/EX42.4/Example42_4_result.txt5
-rwxr-xr-x24/CH42/EX42.5/Example42_5.sce12
-rwxr-xr-x24/CH42/EX42.5/Example42_5_result.txt2
-rwxr-xr-x24/CH42/EX42.6/Example42_6.sce16
-rwxr-xr-x24/CH42/EX42.6/Example42_6_result.txt2
-rwxr-xr-x24/CH42/EX42.7/Example42_7.sce9
-rwxr-xr-x24/CH42/EX42.7/Example42_7_result.txt2
14 files changed, 111 insertions, 0 deletions
diff --git a/24/CH42/EX42.1/Example42_1.sce b/24/CH42/EX42.1/Example42_1.sce
new file mode 100755
index 000000000..7e08a4f45
--- /dev/null
+++ b/24/CH42/EX42.1/Example42_1.sce
@@ -0,0 +1,10 @@
+//Given that
+T = 300 //in K
+e = 1.6*10^-19 //in coulomb
+Eg = 5.5*e //in J
+K = 8.62*10^-5*e //in J/K
+
+//Sample Problem 42-1
+printf("**Sample Problem 42-1**\n")
+P = %e^(-Eg/(K*T))
+printf("The probability is equal to %e", P) \ No newline at end of file
diff --git a/24/CH42/EX42.1/Example42_1_result.txt b/24/CH42/EX42.1/Example42_1_result.txt
new file mode 100755
index 000000000..8177877ac
--- /dev/null
+++ b/24/CH42/EX42.1/Example42_1_result.txt
@@ -0,0 +1,2 @@
+**Sample Problem 42-1**
+The probability is equal to 4.291912e-093 \ No newline at end of file
diff --git a/24/CH42/EX42.2/Example42_2.sce b/24/CH42/EX42.2/Example42_2.sce
new file mode 100755
index 000000000..907971488
--- /dev/null
+++ b/24/CH42/EX42.2/Example42_2.sce
@@ -0,0 +1,12 @@
+//Given that
+n = 2
+V = 2*10^-6 //in m^3
+density = 1.738*10^3 //in kg/m^3
+M = 24.312*10^-3 //in kg/m^3
+Na = 6.023*10^23
+
+//Sample Problem 42-2
+printf("**Sample Problem 42-2**\n")
+num = density*V*Na/M
+electrons = n*num
+printf("The number of electrons is equal to %e", electrons) \ No newline at end of file
diff --git a/24/CH42/EX42.2/Example42_2_result.txt b/24/CH42/EX42.2/Example42_2_result.txt
new file mode 100755
index 000000000..43fcf985f
--- /dev/null
+++ b/24/CH42/EX42.2/Example42_2_result.txt
@@ -0,0 +1,2 @@
+**Sample Problem 42-2**
+The number of electrons is equal to 1.722273e+023 \ No newline at end of file
diff --git a/24/CH42/EX42.3/Example42_3.sce b/24/CH42/EX42.3/Example42_3.sce
new file mode 100755
index 000000000..963a9d4a9
--- /dev/null
+++ b/24/CH42/EX42.3/Example42_3.sce
@@ -0,0 +1,15 @@
+//Given that
+E = 7 //in ev
+V = 2*10^-9 //in m^3
+density = 2*10^28 //in m^3/ev
+deltaE = 3*10^-3 //in ev
+
+//Sample Problem 42-3a
+printf("**Sample Problem 42-3a**\n")
+n = density*V
+printf("The number of states are equal to %1.2e per ev\n", n)
+
+//Sample Problem 42-3b
+printf("\n**Sample Problem 42-3b**\n")
+n = n*deltaE
+printf("The number of states are equal to %1.2e per ev\n", n) \ No newline at end of file
diff --git a/24/CH42/EX42.3/Example42_3_result.txt b/24/CH42/EX42.3/Example42_3_result.txt
new file mode 100755
index 000000000..44274066b
--- /dev/null
+++ b/24/CH42/EX42.3/Example42_3_result.txt
@@ -0,0 +1,5 @@
+**Sample Problem 42-3a**
+The number of states are equal to 4.00e+019 per ev
+
+**Sample Problem 42-3b**
+The number of states are equal to 1.20e+017 per ev \ No newline at end of file
diff --git a/24/CH42/EX42.4/Example42_4.sce b/24/CH42/EX42.4/Example42_4.sce
new file mode 100755
index 000000000..69fe3dea5
--- /dev/null
+++ b/24/CH42/EX42.4/Example42_4.sce
@@ -0,0 +1,17 @@
+//Given that
+E = 0.10 //in ev
+T = 800 //in K
+k = 8.62*10^-5 //Boltzman constant
+
+//Sample Problem 42-4a
+txt = mopen('Example42_4_result.txt','wt')
+mfprintf(txt, '**Sample Problem 42-4a**\n')
+expo = E/(k*T)
+P = 1/(%e^expo + 1)
+mfprintf(txt, 'The probability of occupying the given energy state is equal to %f\n', P)
+
+//Sample Problem 42-4b
+Pbelow = 1/(1 + %e^-expo)
+mfprintf(txt, '\n**Sample Problem 42-4**\n')
+mfprintf(txt, 'The probability of occupying the given energy state is equal to %f', Pbelow)
+mclose(txt) \ No newline at end of file
diff --git a/24/CH42/EX42.4/Example42_4_result.txt b/24/CH42/EX42.4/Example42_4_result.txt
new file mode 100755
index 000000000..12dd724e5
--- /dev/null
+++ b/24/CH42/EX42.4/Example42_4_result.txt
@@ -0,0 +1,5 @@
+**Sample Problem 42-4a**
+The probability of occupying the given energy state is equal to 0.189984
+
+**Sample Problem 42-4**
+The probability of occupying the given energy state is equal to 0.810016 \ No newline at end of file
diff --git a/24/CH42/EX42.5/Example42_5.sce b/24/CH42/EX42.5/Example42_5.sce
new file mode 100755
index 000000000..00f4390ab
--- /dev/null
+++ b/24/CH42/EX42.5/Example42_5.sce
@@ -0,0 +1,12 @@
+//Given that
+E = 7.0 //in ev
+density = 2*10^28 //density of states
+V = 2*10^-9 //in m^3
+
+//Sample Problem 42-5
+txt = mopen('Example42_5_result.txt', 'wt')
+mfprintf(txt, '**Sample Problem 42-5**\n')
+P = 0.50
+No = density * P * V
+mfprintf(txt, 'Number of occupied states per eV at 7 ev is equal to %e', No)
+mclose(txt) \ No newline at end of file
diff --git a/24/CH42/EX42.5/Example42_5_result.txt b/24/CH42/EX42.5/Example42_5_result.txt
new file mode 100755
index 000000000..618d779df
--- /dev/null
+++ b/24/CH42/EX42.5/Example42_5_result.txt
@@ -0,0 +1,2 @@
+**Sample Problem 42-5**
+Number of occupied states per eV at 7 ev is equal to 2.000000e+019 \ No newline at end of file
diff --git a/24/CH42/EX42.6/Example42_6.sce b/24/CH42/EX42.6/Example42_6.sce
new file mode 100755
index 000000000..679a5426b
--- /dev/null
+++ b/24/CH42/EX42.6/Example42_6.sce
@@ -0,0 +1,16 @@
+//Given that
+No = 10^16 //number per m^3
+T = 298 //in K
+fac = 10^6
+density = 2330 //in kg/m^3
+Na = 6.023*10^23
+M = 28.1*10^-3 //in kg/mol
+
+//Sample Problem 42-6
+pt = mopen('Example42_6_result.txt', 'wt')
+mfprintf(pt, '**Sample Problem 42-6**\n')
+Np = fac*No + No
+NSi = density*Na/M
+fraction = Np/NSi
+mfprintf(pt, 'The fraction of Phosphorus atoms with Silicon atoms is equal to %e', fraction)
+mclose(pt) \ No newline at end of file
diff --git a/24/CH42/EX42.6/Example42_6_result.txt b/24/CH42/EX42.6/Example42_6_result.txt
new file mode 100755
index 000000000..a073fe408
--- /dev/null
+++ b/24/CH42/EX42.6/Example42_6_result.txt
@@ -0,0 +1,2 @@
+**Sample Problem 42-6**
+The fraction of Phosphorus atoms with Silicon atoms is equal to 2.002341e-007 \ No newline at end of file
diff --git a/24/CH42/EX42.7/Example42_7.sce b/24/CH42/EX42.7/Example42_7.sce
new file mode 100755
index 000000000..d023ef08e
--- /dev/null
+++ b/24/CH42/EX42.7/Example42_7.sce
@@ -0,0 +1,9 @@
+//Given that
+Egap = 1.9 //in eV
+
+//Sample Problem 42-7
+pt = mopen('Example42_7_result.txt', 'wt')
+mfprintf(pt, '**Sample Problem 42-7**\n')
+lambada = 1242/Egap
+mfprintf(pt, 'The wavelength emitted is equal to %dnm', lambada)
+mclose(pt) \ No newline at end of file
diff --git a/24/CH42/EX42.7/Example42_7_result.txt b/24/CH42/EX42.7/Example42_7_result.txt
new file mode 100755
index 000000000..fb5ced8d6
--- /dev/null
+++ b/24/CH42/EX42.7/Example42_7_result.txt
@@ -0,0 +1,2 @@
+**Sample Problem 42-7**
+The wavelength emitted is equal to 653nm \ No newline at end of file