summaryrefslogtreecommitdiff
path: root/electronic_instrumentation_by_H_S_Kalsi/Chap20.ipynb
blob: 6483ad2aae9424138b1f6ea70624f3aed8b54e13 (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:188a137b5dad28c9242953d4ba18308d43530d869157a87980207688e00b52f5"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 20 Measurment of power"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 20.1 Page no 721"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Given\n",
      "V1=20                            #volts\n",
      "V2=30                            #Volts\n",
      "R1=100                           #ohm\n",
      "\n",
      "#Calculation\n",
      "p=(V2**2-V1**2)/(4.0*R1)\n",
      "\n",
      "#Result\n",
      "print\"RF test power is \", p,\"Watt\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "RF test power is  1.25 Watt\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 20.2 Page no 725"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Given\n",
      "m=200                           #gm\n",
      "sp=1                             #cal/gm degree C\n",
      "T1=30                            #degree C\n",
      "T2=40                            #degree C\n",
      "\n",
      "#Calculation\n",
      "P=4.18*m*sp*(T2-T1)\n",
      "\n",
      "#Result\n",
      "print\"The power is \",round(P*10**-3,1),\"K watt\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The power is  8.4 K watt\n"
       ]
      }
     ],
     "prompt_number": 10
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 20.3 Page no 728"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#given\n",
      "V1=8.0                               #Volts\n",
      "V2=2.0                                #Volts\n",
      "\n",
      "#Calculation\n",
      "SWR=(V1+V2)/(V1-V2)\n",
      "print\"The standing wave ratio is \", round(SWR,2)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The standing wave ratio is  1.67\n"
       ]
      }
     ],
     "prompt_number": 14
    }
   ],
   "metadata": {}
  }
 ]
}