summaryrefslogtreecommitdiff
path: root/sample_notebooks/ManchukondaMaruthi Naga Vijaya Durga/Chapter_2_Generalized_Configurations_and_Functional_Descriptions_of.ipynb
blob: 2cb57529431b2525a2e36ef1da5865efadb2f6ab (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
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Chapter 2 Generalized Configurations and Functional Descriptions of Measuring Instruments"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 2_1 pgno:22"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "ts=0.1\n",
      "ps=2.5\n",
      "dT=20\n",
      "the error in measurement is d percent\n",
      "0.007\n"
     ]
    }
   ],
   "source": [
    "#Caption_Error in measurement\n",
    "#Ex_1 part_2 #page 22\n",
    "print (\"ts=0.1\")\n",
    "print (\"ps=2.5\")\n",
    "print (\"dT=20\")\n",
    "\n",
    "ts=0.1   #('enter the temperature sensitivity=:')\n",
    "ps=2.5   #('enter the pressure sensitivity(in units/MPa)=:')\n",
    "dT=20   #('enter the temperature change during pressure measurement=:')\n",
    "P=120   #('enter the pressure to be measured (in MPa)=:')\n",
    "error=(ts*dT)/(ps*P);\n",
    "print'the error in measurement is d percent\\n',round(error,3) "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 2_2 pgno:23"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "the error in measurement is d percent\n",
      "0.017\n"
     ]
    }
   ],
   "source": [
    "#Caption_Error in measurement\n",
    "#Ex_2 part_2 #page 23\n",
    "\n",
    "\n",
    "ts=0.5   #('enter the temperature sensitivity=:')\n",
    "ps=7.5   #('enter the pressure sensitivity(in units/MPa)=:')\n",
    "dT=40   #('enter the temperature change during pressure measurement=:')\n",
    "P=160   #('enter the pressure to be measured (in MPa)=:')\n",
    "error=(ts*dT)/(ps*P);\n",
    "print'the error in measurement is d percent\\n',round(error,3) "
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  },
  "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.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}