summaryrefslogtreecommitdiff
path: root/_A_Textbook_Of_Engineering_Physics/Chapter17_1.ipynb
blob: 24b8e0d760e74f7d1c160424352407211677183c (plain)
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
 "metadata": {
  "name": "",
  "signature": "sha256:247cbf7511831aaf13adbf586a5a4c7c4e491e38e060a5558f6021f692906cbf"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter17-The Band Theory of Solids"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex1-pg522"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "##Example 17.1\n",
      "##calculation of probability\n",
      "\n",
      "##given values\n",
      "E=.01;##energy difference in eV\n",
      "kT=.026;##temperture equivalent at room temp in e\n",
      "\n",
      "##calculation\n",
      "P=1/(1+(math.e**(E/kT)));\n",
      "\n",
      "print'%s %.2f %s'%('interatomic spacing  is',P,'');\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "interatomic spacing  is 0.41 \n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex2-pg523"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "##Example 17.2\n",
      "##calculation of velocity of e\n",
      "\n",
      "##given values\n",
      "e=1.6*10**-19.;##charge of e in C\n",
      "E=2.1*e;##fermi level in J\n",
      "m=9.1*10**-31.;##mass of e in kg\n",
      "\n",
      "##calculation\n",
      "v=math.sqrt(2.*E/m);\n",
      "\n",
      "print'%s %.2f %s'%('velocity of e(in m/s)',v,'');\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "velocity of e(in m/s) 859337.85 \n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex3-pg523"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "##Example 17.3\n",
      "##calculation of velocity of fraction of free electrons\n",
      "\n",
      "##given values\n",
      "E=5.5;##fermi level in eV\n",
      "kT=.026;##temperture equivalent at room temp in e\n",
      "\n",
      "##calculation\n",
      "f=2.*kT/E;\n",
      "\n",
      "print'%s %.4f %s'%('fraction of free electrone\\s upto width kT on either side of Ef is',f,'');\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "fraction of free electrone\\s upto width kT on either side of Ef is 0.0095 \n"
       ]
      }
     ],
     "prompt_number": 3
    }
   ],
   "metadata": {}
  }
 ]
}