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
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Chapter 2: Thermometry"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 2.1: Temperature.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"clc\n",
"clear\n",
"\n",
"//INPUT\n",
"li=1.23;//length of melting ice in mm\n",
"lf=18.56;//length of melting ice reading in pressure of 74.24cm of mercury in mm\n",
"l=10.75;//length of melting ice at which temperature to be calculated\n",
"mp=0;//melting point in deg.C\n",
"T=50;//temperature of melting ice at which length to be calculated in deg.C\n",
"//boiling point of water changes by 1 deg.C for change of pressure of 27mm of mercury\n",
"\n",
"//CALCULATIONS\n",
"sp=100-(76-74.24)/(2.7);//76cm of mercury steam point is 100 deg.C so at 74.24cm of mercury the steam point in deg.C\n",
"t=(l-li)*(sp-mp)/(lf-li);//temperature at 10.75mm of melting ice in deg.C\n",
"lt=((T*(lf-li))/(sp-mp))+li;//length of ice at 50 deg.C\n",
"\n",
"//OUTPUT\n",
"mprintf('the temperature of melting ice at 10.75mm of hg is %3.2f deg.C \n the length of ice corresponding to 50 deg.C is %3.2f mm',t,lt)"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 2.2: Temperature_of_the_liquid_air.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"clc\n",
"clear\n",
"\n",
"//INPUT\n",
"p1=23.5;//pressure when immersed in liquid air in cm\n",
"p2=75;//pressure when immersed in ice in cm\n",
"p3=102.4;//pressure when immersed in steam in cm\n",
"T=100;//boiling point of temperature in deg.C\n",
"\n",
"//CALCULATIONS\n",
"t=(p1-p2)*T/(p3-p2);//temperature of the liquid air in deg.C\n",
"\n",
"//OUTPUT\n",
"mprintf('the temperature of liquid of air is %3.2f deg.C',t)"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 2.3: Height_of_the_barometer.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"clc\n",
"clear\n",
"\n",
"//INPUT\n",
"t1=283;//temperature of bulb when pressure is h-2cm of hg in k\n",
"t2=546;//temperature of bulb when pressure is h-22cm of hg in k\n",
"h1=2;//differnce of mercury level at 283k in cm\n",
"h2=22;//differnce of mercury level at 546k in cm\n",
"//let h is the barometer height,then h-2cm at 283k and h-22 at 546k\n",
"\n",
"//CALCULATIONS\n",
"h=((h2*t1)+(h1*t2))/(t2-t1);//height of the barometer in cm\n",
"\n",
"//OUTPUT\n",
"mprintf('height of the barometer is %3.2f cm',h)"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 2.4: Temperature_of_the_furnace.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"clc\n",
"clear\n",
"\n",
"//INPUT\n",
"p0=76;//pressure at 0 deg.C in cm of hg\n",
"p1=228;//pressure (76+152) at T deg.C in cm of hg\n",
"t0=273;//temperature of bulb in K\n",
"\n",
"//CALCULATIONS\n",
"T=p1*t0/p0;//temperature at 228 cm of hg pressure in K\n",
"\n",
"//OUTPUT\n",
"mprintf('the temperature of bulb is %3.2f K',T)"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 2.5: The_temperature_of_the_bath.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"clc\n",
"clear\n",
"\n",
"//INPUT\n",
"t1=0;//temperature in deg.C\n",
"t2=100;//temperature in deg.C\n",
"t3=208;//temperature in deg.C\n",
"r1=3.5;//resistance in ohms\n",
"r2=5.2;//resistance in ohms\n",
"r3=6.9;//resistance in ohms\n",
"r4=9.4;//resistance in ohms\n",
"\n",
"//CALCULATIONS\n",
"t4=(r3-r1)*100/(r2-r1);//temperature in deg.C\n",
"d=(t3-t4)/(2.08*1.08);//deflection\n",
"t5=(r4-r1)*100/(r2-r1);//temperature in deg.C\n",
"t6=(d*(((t5/100)^2)-t5/100))+t5;//temperature in deg.C\n",
"t7=(d*(((t6/100)^2)-t6/100))+t5;//temperature in deg.C\n",
"t8=(d*(((t7/100)^2)-t7/100))+t5;//temperature in deg.C\n",
"t9=(d*(((t8/100)^2)-t8/100))+t5;//temperature in deg.C\n",
"\n",
"//CALCULATIONS\n",
"mprintf('the temperature of the bath is %3.2f deg.C',t9)"
]
}
],
"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
}
|