summaryrefslogtreecommitdiff
path: root/Electric_Circuits_by_M._Navhi_And_J._A._Edminister/ch1.ipynb
blob: a58dbced3944ba4b446d1d140ebf56668dd6b358 (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:b3a6cfc1d2c872aca30cd5b6a87aa7825822b184d347f3d205eddfb7ba133797"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 1 : Introduction"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 1.1  Page No : 1"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Given\n",
      "m = 10.;        # Acceleration is 2.0m/s**2\n",
      "a = 2.;         # mass\n",
      "\n",
      "# Calculation and Results\n",
      "#a)\")\n",
      "F = m*a\n",
      "print \"Force is %dN\"%(F)\n",
      "#b)\")\n",
      "t = 4;            # time\n",
      "x = (a*t*t)/2\n",
      "KE = (F*x)\n",
      "P = KE/t\n",
      "print \"Position is %dm\"%(x)\n",
      "print \"Kinetic energy  = %3.1fJ\"%(KE)\n",
      "print \"Power  = %3.1fW\"%(P)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Force is 20N\n",
        "Position is 16m\n",
        "Kinetic energy  = 320.0J\n",
        "Power  = 80.0W\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 1.2  Page No : 3"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Given\n",
      "i = 5.;         # current flow\n",
      "\n",
      "# Calculation\n",
      "#As electroms/min is asked so we need to convert A(C/s) to C/min\n",
      "i1 = 5*60;\n",
      "#Let e be electronic charge\n",
      "e = 1.602*10**-19\n",
      "n = (i1/e)\n",
      "\n",
      "# Results\n",
      "print \"Number of electrons  = %3.2f electrons/min\"%(n)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Number of electrons  = 1872659176029962633216.00 electrons/min\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 1.3  Page No : 8"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Given\n",
      "E = 9.25*10**-6         ##Energy is 9.25uJ\")\n",
      "q = 0.5*10**-6;         # #Charge to be transferred is 0.5uC\")\n",
      "\n",
      "# Calculation\n",
      "#1 volt is 1 joule per coulomb\n",
      "V = E/q;\n",
      "\n",
      "# Results\n",
      "print \"Potential difference between two points a and b is %3.1fV\"%(V)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Potential difference between two points a and b is 18.5V\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 1.4  Page No : 10"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Given\n",
      "#Potential difference is 50V\")\n",
      "#Charge per minute is 120C/min\")\n",
      "V = 50.\n",
      "x = 120;\n",
      "\n",
      "# Calculation\n",
      "#As Electrical energy is to be calculated charge per minute is to be converted in charge per second\n",
      "#Charge per second is nothing but the current\n",
      "i = x/60;\n",
      "P = i*V;\n",
      "#Since is 1W = 1J/s\n",
      "\n",
      "# Results\n",
      "print \"Rate of energy conversion is %dJ/s\"%(P)\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Rate of energy conversion is 100J/s\n"
       ]
      }
     ],
     "prompt_number": 4
    }
   ],
   "metadata": {}
  }
 ]
}