summaryrefslogtreecommitdiff
path: root/Heat_and_Thermodynamics_by__Brijlal_and_N._Subrahmanyam/ch1.ipynb
blob: 294345ff566c84a82c75425a87af8a0e199cdc60 (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:aa2f91c2f42af9bd29c5a63bcbda9bd795d5bebbc97e6261dcc647ef07ee9847"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 1 : Thermometry"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 1.11  Page No : 7"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "# Input data\n",
      "R0 = 5.5  # The resistance of a platinum wire at 0 degree centigrade in ohms\n",
      "R100 = 7.5  # The resistance of a platinum wire at 100 degree centigrade in ohms\n",
      "R444 = 14.5  # The resistance of a platinum wire at 444.5 degree centigrade in ohms\n",
      "\n",
      "# Calculations\n",
      "# The value of beta in per degree centigrade square\n",
      "b = ((900 - (2. * 444.6)) / (5.5 * 444.6 * 100 * 344.6))\n",
      "# The value of alpha in per degree centigrade\n",
      "a = (2 / (5.5 * 100)) - (100 * (b))\n",
      "\n",
      "# Output\n",
      "print 'The values are b = %3.4g degree centigrade square \\n   and a = %3g degree centigrade ' % (b, a)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The values are b = 1.282e-07 degree centigrade square \n",
        "   and a = 0.00362355 degree centigrade \n"
       ]
      }
     ],
     "prompt_number": 1
    }
   ],
   "metadata": {}
  }
 ]
}