summaryrefslogtreecommitdiff
path: root/Physical_Chemistry_by_D._Farrington/Chapter20.ipynb
blob: c3593a82daf07f3deb97167ac49e9dadd7652e7d (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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Chapter20 Macromolecules"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 20.1, Page no.76"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "average molecular weight of this polystrene = 287.48 Kg moleˆ−1\n"
     ]
    }
   ],
   "source": [
    "import math\n",
    "#initialisation of variables\n",
    "R=0.082 # l−atm degˆ−1 moleˆ−1 \n",
    "T=25 #C \n",
    "V=85*10**-6 # l−atm gˆ−1 \n",
    "#CALCULATIONS \n",
    "M=R*(273+T)/V \n",
    "#RESULTS\n",
    "M=M/10**3\n",
    "M=round(M,2)\n",
    "print 'average molecular weight of this polystrene =',M,'Kg moleˆ−1'"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 20.2, Page no.76"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "maximum molecular weight = 69.41 Kg moleˆ−1\n"
     ]
    }
   ],
   "source": [
    "import math\n",
    "from math import pi\n",
    "#initialisation of variables\n",
    "T=20 #C \n",
    "v=0.01005 # poise \n",
    "N=6*10**23 # molecules\n",
    "D=7.8*10** -7 \n",
    "#CALCULATIONS \n",
    "M=4*pi*N/(3*0.75*(D*N*6*pi*v/(8.31*10**7*(273+T))) **3) \n",
    "#RESULTS\n",
    "M=M/10**3\n",
    "M=round(M,2)\n",
    "print  'maximum molecular weight =',M,'Kg moleˆ−1'"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 20.3, Page no.77"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "time = 1.04 * 10**-12 sec\n"
     ]
    }
   ],
   "source": [
    "import math\n",
    "#initialisation of variables\n",
    "w=2.82*10**7 \n",
    "t2=70 #min \n",
    "t1=60 #min \n",
    "r2=6.731 #cm \n",
    "r1=5.949 #cm \n",
    "#CALCULATIONS \n",
    "s=2.303*math.log10(r2/r1)/(w*t2*t1)\n",
    "#RESULTS\n",
    "s=s*10**12\n",
    "s=round(s,2)\n",
    "print  'time =',s,'* 10**-12 sec'"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 20.4, Page no.77"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "molecular weight serum albium = 63.92 Kg mole ˆ−1\n"
     ]
    }
   ],
   "source": [
    "import math\n",
    "#initialisation of variables\n",
    "R=8.31*10**7 # ergs degˆ−1 moleˆ−1 \n",
    "T=20 #C \n",
    "s=4.3*10** -13 # sec \n",
    "D=6.15*10** -7 #cmˆ2 secˆ−1 \n",
    "d=0.9982 #g/ cc \n",
    "v=0.735 #cmˆ3 gˆ−1 \n",
    "#CALCULATIONS\n",
    "M=R*(273+T)*s/(D*(1-d*v))  \n",
    "#RESULTS\n",
    "M=M/10**3\n",
    "M=round(M,2)\n",
    "print 'molecular weight serum albium =',M,'Kg mole ˆ−1'"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 20.5, Page no.78"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Molecular weight = 210.98 g moleˆ−1\n"
     ]
    }
   ],
   "source": [
    "import math\n",
    "#initialisation of variables\n",
    "K=3.7*10** -4 \n",
    "a=0.62 \n",
    "iv=0.74 \n",
    "#CALCULATIONS \n",
    "M=(iv/K)**(1/a) \n",
    "#RESULTS\n",
    "M=M/10**3\n",
    "M=round(M,2)\n",
    "print 'Molecular weight =',M,'g moleˆ−1'"
   ]
  }
 ],
 "metadata": {
  "anaconda-cloud": {},
  "kernelspec": {
   "display_name": "Python [Root]",
   "language": "python",
   "name": "Python [Root]"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.11"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}