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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
|
{
"metadata": {
"name": "",
"signature": "sha256:1f479e444a408fcb9cb7e4430e1c4545dad453af571a814f51ef48ce1d81ede8"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter 12 Direct current circut"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 12.1 page no 192"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#given\n",
"R=(6,6.0,12) #Resistances from circuit diagram 12.34 on page no.192 in ohms\n",
"V=(5,2) #Voltage in V from circuit diagram 12.20 on page no.192\n",
"\n",
"#Calculations\n",
"Re=(R[2]*R[1])/(R[2]+R[1])\n",
"Re2=Re+R[1]\n",
"I=V[0]/Re2\n",
"Ve=I*Re\n",
"I1=Ve/R[2]\n",
"RE=(R[0]*R[1])/(R[0]+R[1])\n",
"RE2=RE+R[2]\n",
"I2=Ve/RE2\n",
"Itotal=I1-I2\n",
"\n",
"#Output\n",
"print\"The current is \",round(Itotal,2),\"A\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The current is 0.03 A\n"
]
}
],
"prompt_number": 9
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 12.2 page no 193"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#given\n",
"R=(3,5,6,7) #Resistances from circuit diagram 12.36(a) on page no. 193 in ohms\n",
"V=12 #Voltage in V from circuit diagram 12.36(a) on page no. 193\n",
"\n",
"#Calculations\n",
"Vth=(V*R[2])/(R[2]+R[3]+R[1])\n",
"Rth=R[0]+(V*R[2])/(V+R[2])\n",
"\n",
"#Output\n",
"print\"Thevenin equivalent resistance is \",Rth,\"ohms\" \n",
"print\"Thevenin equivalent voltage is \",Vth,\"V\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Thevenin equivalent resistance is 7 ohms\n",
"Thevenin equivalent voltage is 4 V\n"
]
}
],
"prompt_number": 13
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 12.3 page no 193"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#given\n",
"R=(2,3,4.0) #Resistances from circuit diagram 12.37(a) on page no.194 in ohms\n",
"V=5 #Voltage in V from circuit diagram 12.37(a) on page no.194\n",
"\n",
"#Calculations\n",
"RN=(V*R[2])/(V+R[2])\n",
"IN=V/(R[0]+R[1])\n",
"\n",
"#Output\n",
"print\"Nortons equivalent resistance is \",round(RN,1),\"ohms\"\n",
"print\"Nortons equivalent current is \",IN,\"A\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Nortons equivalent resistance is 2.2 ohms\n",
"Nortons equivalent current is 1 A\n"
]
}
],
"prompt_number": 2
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 12.4 page no 194 "
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#given\n",
"C=10*10**-6 #Capicitance in F\n",
"R=10.0*10.0**3 #Resistance in ohms\n",
"e=6 #Emf of the battery in V\n",
"\n",
"#Calculations\n",
"t=C*R\n",
"Qm=(C*e)/10.0**-6\n",
"Im=(e/R)*1000\n",
"\n",
"#Output\n",
"print\"Time constant of the circuit is \",t,\"s\" \n",
"print\"Maximum charge on the capacitor is \",Qm,\"micro C\" \n",
"print\"Maximum current in the circuit is \",Im,\"mA\" \n",
"print\"Charge at time t is Q(t) = \",Qm,\"micro C\"\n",
"print\"Currrent at time t is I(t) = \",Im,\"mA\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Time constant of the circuit is 0.1 s\n",
"Maximum charge on the capacitor is 60.0 micro C\n",
"Maximum current in the circuit is 0.6 mA\n",
"Charge at time t is Q(t) = 60.0 micro C\n",
"Currrent at time t is I(t) = 0.6 mA\n"
]
}
],
"prompt_number": 18
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 12.5 page no 194"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#given\n",
"L=50 #Inductance in mH\n",
"R=5.0 #Resistance in ohms\n",
"V=6 #Volatage of the battery in V\n",
"t=5 #Time in ms\n",
"\n",
"#Calculations\n",
"import math\n",
"t1=(L/R)\n",
"I=(V/R)*(1-math.exp(-t/t1))\n",
"\n",
"#Output\n",
"print\"The time constant of the circuit is \",t1,\"ms\" \n",
"print\"The current in the circuit is \",round(I,2),\"A\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The time constant of the circuit is 10.0 ms\n",
"The current in the circuit is 0.47 A\n"
]
}
],
"prompt_number": 20
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 12.6 page no 194"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#given\n",
"L=6 #Inductance in mH\n",
"C=12 #Capacitance in pF\n",
"V=6 #Voltage of the battery in V\n",
"\n",
"#Calculations\n",
"import math\n",
"f=(1/(2.0*3.14*math.sqrt(L*10**-3*C*10**-12)))/10**5\n",
"Qm=(C*10**-12*V)/10.0**-12\n",
"Im=(2*3.14*f*10**5*Qm*10**-12)/10.0**-6\n",
"\n",
"#Output\n",
"print\"Frequency of oscillation is \",round(f,2),\"*10^5 Hz\" \n",
"print\"The maximum value of charge on capacitor is \",Qm,\"*10**-12 C\" \n",
"print\"The current in the circuit is \",round(Im,0),\"micro A\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Frequency of oscillation is 5.93 *10^5 Hz\n",
"The maximum value of charge on capacitor is 72.0 *10**-12 C\n",
"The current in the circuit is 268.0 micro A\n"
]
}
],
"prompt_number": 23
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 12.e.1 Page no 175"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#given\n",
"V=10 #voltage in V from fig.12.7 on page no.175\n",
"R=10.0 #Resistance in ohms from fig.12.7 on page no.175\n",
"\n",
"#Calculations\n",
"I=(V/R)\n",
"\n",
"#Output\n",
"print\"Current in the circuit shown in fig.12.7 is \",I,\"A\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Current in the circuit shown in fig.12.7 is 1.0 A\n"
]
}
],
"prompt_number": 24
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 12.e.2 Page no 175"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#given\n",
"R=(6,6,3.0) #Resistances in the circuit from circuit diagram 12.9 on page no. 175 in ohms\n",
"V=(24,16) #Voltages in the circuit from circuit diagram 12.9 on page no. 175 in V\n",
"\n",
"#Calculations\n",
"Re=(R[1]*R[2])/(R[1]+R[2])\n",
"Re1=Re+R[0]\n",
"I=V[0]/Re1\n",
"Ve=I*Re\n",
"Ie=Ve/R[2]\n",
"RE=(R[0]*R[1])/(R[0]+R[1])\n",
"RE1=RE+R[2]\n",
"I1=V[1]/RE1\n",
"VE=R[2]*I1\n",
"I2=VE/R[0]\n",
"Itotal=Ie+I2\n",
"#Output\n",
"print\"The current shown in the circiut is \",round(Itotal,1),\"A\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The current shown in the circiut is 3.3 A\n"
]
}
],
"prompt_number": 23
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 12.e.3 Page no 177"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#given\n",
"R=(4,12,2.0,12) #Resistances from circuit diagram 12.12 on page no. 177 in ohms\n",
"V=12 #Voltage in V from circuit diagram 12.12 on page no. 177\n",
"\n",
"#Calculations\n",
"Rth=((R[0]+R[2])*R[1])/(R[0]+R[2]+R[1])\n",
"Vth=(V*R[1])/(R[0]+R[2]+R[1])\n",
"I=(Vth/(Rth+R[3]))\n",
"\n",
"#Output\n",
"print\"The current through the resistor is \",I,\"A\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The current through the resistor is 0.5 A\n"
]
}
],
"prompt_number": 24
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 12.e.4 Page no 178"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#given\n",
"R=(2,3,6) #Resistances from circuit diagram 12.15 on page no. 178 in ohms\n",
"I=2 #Current in A from circuit diagram 12.15 on page no. 178\n",
"\n",
"#Calculations\n",
"Rth=(R[1]+R[2])\n",
"Vth=(R[2]*I)\n",
"\n",
"#Output\n",
"print\"Thevenin equivalent resistance is \",Rth,\"ohms\" \n",
"print\"Thevenin equivalent voltage is \",Vth,\"V\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Thevenin equivalent resistance is 9 ohms\n",
"Thevenin equivalent voltage is 12 V\n"
]
}
],
"prompt_number": 26
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 12.e.5 Page no 178"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#given\n",
"R=(12,8.0,3.0,6) #Resistances from circuit diagram 12.17 on page no.179 in ohms\n",
"V=12 #Voltage in V from circuit diagram 12.17 on page no.179\n",
"\n",
"#Calculations\n",
"Rth=((R[2]*R[0])/(R[2]+R[0]))+((R[1]*R[3])/(R[1]+R[3]))\n",
"Vth=V*((R[1]*R[3])/(R[1]+R[3]))/(R[0]+R[2])\n",
"\n",
"#Output\n",
"print\"Thevenin equivalent resistance is \",round(Rth,2),\"ohms\" \n",
"print\"Thevenin equivalent voltage is \",round(Vth,2),\"V\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Thevenin equivalent resistance is 5.83 ohms\n",
"Thevenin equivalent voltage is 2.74 V\n"
]
}
],
"prompt_number": 4
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 12.e.6 Page no 180"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#given\n",
"R=(4,12,2,12) #Resistances from circuit diagram 12.20 on page no.180 in ohms\n",
"V=12 #Voltage in V from circuit diagram 12.20 on page no.180\n",
"\n",
"#Calculations\n",
"RN=((R[0]+R[2])*R[1])/(R[0]+R[2]+R[1])\n",
"IN=V/(RN+R[2])\n",
"\n",
"#Output\n",
"print\"Nortons equivalent resistance is \",RN,\"ohms\"\n",
"print\"Nortons equivalent current is \",IN,\"A\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Nortons equivalent resistance is 4 ohms\n",
"Nortons equivalent current is 2 A\n"
]
}
],
"prompt_number": 32
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 12.e.7 Page no 181"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#given\n",
"R=(4.0,5,6) #Resistances from circuit diagram 12.22 on page no.181 in ohms\n",
"I=2 #Current in A from circuit diagram 12.22 on page no.181\n",
"\n",
"#Calculations\n",
"RN=(R[0]+R[1]+R[2])\n",
"IN=(R[0]*I)/RN\n",
"\n",
"#Output\n",
"print\"Nortons equivalent resistance is \",RN,\"ohms\"\n",
"print\"Nortons equivalent current is \",round(IN,2),\"A\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Nortons equivalent resistance is 15.0 ohms\n",
"Nortons equivalent current is 0.53 A\n"
]
}
],
"prompt_number": 35
}
],
"metadata": {}
}
]
}
|