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
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
|
{
"metadata": {
"name": "",
"signature": "sha256:ba29f9cf835e91dacf3ff239c18d4146206edd6f40b56615b0f524da3f5c713f"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter 18 Alternating current"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.2 Page no 555"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"f1=100\n",
"f2=2.0\n",
"I0=50\n",
"\n",
"#Calculation\n",
"import math\n",
"f=f1/f2\n",
"Im=0.636*I0\n",
"Iv=0.707*I0\n",
"I=I0*math.sin(60*3.14/180.0)\n",
"\n",
"#Result\n",
"print\"(i) Frequency of A.C applied is\",f,\"c.p.s\"\n",
"print\"(ii) Mean value of current is\",Im,\"A\"\n",
"print\"(iii) Virtual value of current is\",Iv,\"A\"\n",
"print\"(iv) Value of current is\",round(I,1),\"A\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(i) Frequency of A.C applied is 50.0 c.p.s\n",
"(ii) Mean value of current is 31.8 A\n",
"(iii) Virtual value of current is 35.35 A\n",
"(iv) Value of current is 43.3 A\n"
]
}
],
"prompt_number": 10
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.3 Page no 555"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"R=10.0 #ohm\n",
"E0=200\n",
"\n",
"#Calculation\n",
"import math\n",
"Ev=E0/math.sqrt(2)\n",
"Iv=Ev/R\n",
"Pav=Ev*Iv\n",
"\n",
"#Result\n",
"print\"(i) r.m.s value of voltage is\", E0,\"V\"\n",
"print\"(ii) r.m.s value of current is\",round(Iv,2),\"A\"\n",
"print\"(iii)Power dissipated is\",Pav,\"W\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(i) r.m.s value of voltage is 200 V\n",
"(ii) r.m.s value of current is 14.14 A\n",
"(iii)Power dissipated is 2000.0 W\n"
]
}
],
"prompt_number": 18
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.4 Page no 555"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"L=1 #H\n",
"Ev=110 #V\n",
"f=70 #Hz\n",
"\n",
"#Calculation\n",
"import math\n",
"Xl=2*3.14*f*L\n",
"I=Ev/Xl\n",
"I0=math.sqrt(2)*I\n",
"\n",
"#Result\n",
"print\"(a) Reactance is\", round(Xl,0)\n",
"print\"(b) Current through inductance is\",round(I,2),\"A\"\n",
"print\"(c) Peak value of current is\",round(I0,3),\"A\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(a) Reactance is 440.0\n",
"(b) Current through inductance is 0.25 A\n",
"(c) Peak value of current is 0.354 A\n"
]
}
],
"prompt_number": 28
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.5 Page no 555"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"L=2*10**-3\n",
"w=200 #rad/s\n",
"I0=0.2\n",
"\n",
"#Calculation\n",
"Xl=w*L\n",
"e=L*I0*w\n",
"I0=e/Xl\n",
"\n",
"#Result\n",
"print\"Maximum value of induced current is\", I0,\"A\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Maximum value of induced current is 0.2 A\n"
]
}
],
"prompt_number": 35
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.6 Page no 555"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"C=10*10**-6 #F\n",
"f=50 #cycles/s\n",
"Ev=110\n",
"\n",
"#Calculation\n",
"import math\n",
"Xc=1/(math.pi*2*f*C)\n",
"Iv=Ev/Xc\n",
"\n",
"#Result\n",
"print\"Virtual value of current is\", round(Iv,3),\"A\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Virtual value of current is 0.346 A\n"
]
}
],
"prompt_number": 40
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.7 Page no 555"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"L=4\n",
"R=30 #ohm\n",
"Ev=200\n",
"f=50\n",
"\n",
"#Calculation\n",
"import math\n",
"Xl=2*math.pi*f*(L/math.pi)\n",
"Z=math.sqrt(R**2+Xl**2)\n",
"Iv=Ev/Z\n",
"\n",
"#Result\n",
"print\"current flowing in the circuit is\", round(Iv,3),\"A\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"current flowing in the circuit is 0.499 A\n"
]
}
],
"prompt_number": 5
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.8 Page no 556"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"E=100\n",
"I=1.0\n",
"Iv=0.5\n",
"f=50\n",
"\n",
"#Calculation\n",
"import math\n",
"R=E/I\n",
"Z=E/Iv\n",
"Xl=math.sqrt(Z**2-R**2)\n",
"L=Xl/(2*math.pi*f)\n",
"\n",
"#Result\n",
"print\"Inductance of the coil is\", round(L,2),\"H\"\n",
"print\"Resistance is\",R,\"ohm\"\n",
"print\"Impedence is\",Z,\"ohm\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Inductance of the coil is 0.55 H\n",
"Resistance is 100.0 ohm\n",
"Impedence is 200.0 ohm\n"
]
}
],
"prompt_number": 18
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.9 Page no 556"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"L=0.50 #H\n",
"R=100.0 #ohm\n",
"f=50 #Hz\n",
"Ev=240\n",
"\n",
"#Calculation\n",
"import math\n",
"Iv=Ev/(math.sqrt(R**2+(2*math.pi*f*L)**2))\n",
"I0=math.sqrt(2)*Iv\n",
"a=2*math.pi*f*L/R\n",
"a1=math.atan(a)*180/3.14\n",
"\n",
"#Result\n",
"print\"(a) Maximum current in the coil is\", round(I0,3),\"A\"\n",
"print\"(b) Phase difference is\",round(a1,1),\"degree (e.m.f. leads current)\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(a) Maximum current in the coil is 1.823 A\n",
"(b) Phase difference is 57.5 degree (e.m.f. leads current)\n"
]
}
],
"prompt_number": 29
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.10 Page no 556"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"Ev=220\n",
"Iv=0.5\n",
"\n",
"#Calculation\n",
"import math\n",
"R=Ev/Iv\n",
"Xl=Ev/Iv\n",
"Z=math.sqrt(R**2+Xl**2)\n",
"Iv1=Ev/Z\n",
"\n",
"#Result\n",
"print\"(a) X is a resistor of\",R,\"ohm\\n and Y is a inductor of\",Xl,\"ohm\"\n",
"print\"(b) Current in the circuit is\",round(Iv1,3),\"A\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(a) X is a resistor of 440.0 ohm\n",
" and Y is a inductor of 440.0 ohm\n",
"(b) Current in the circuit is 0.354 A\n"
]
}
],
"prompt_number": 37
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.11 Page no 556"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"Z=100 #ohm\n",
"a=45 #degree\n",
"f=1000\n",
"\n",
"#Calculation\n",
"import math\n",
"Xl=Z/math.sqrt(2)\n",
"L=Xl/(2*math.pi*f)\n",
"\n",
"#Result\n",
"print\"Self inductance of the coil is\", round(L*10**2,4),\"*10**-2 H\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Self inductance of the coil is 1.1254 *10**-2 H\n"
]
}
],
"prompt_number": 43
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.12 Page no 556"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"R=10 #ohm\n",
"Ev=220\n",
"f=50 #Hz\n",
"Iv=2.0 #A\n",
"\n",
"#Calculation\n",
"import math\n",
"Z=Ev/Iv\n",
"Xc=math.sqrt(Z**2-R**2)\n",
"\n",
"#Result\n",
"print\"Reactance of the capacitor is\",round(Xc,2),\"ohm\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Reactance of the capacitor is 109.54 ohm\n"
]
}
],
"prompt_number": 46
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.13 Page no 556"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"R=10\n",
"C=0.1*10**-6 #F\n",
"Ev=100 #V\n",
"f=50\n",
"\n",
"#Calculation\n",
"import math\n",
"Z=math.sqrt(R**2+(1/(2*math.pi*f*C))**2)\n",
"Iv=Ev/Z\n",
"\n",
"#Result\n",
"print\"Current in the circuit is\", round(Iv*10**3,3),\"*10**-3 A\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Current in the circuit is 3.142 *10**-3 A\n"
]
}
],
"prompt_number": 51
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.14 Page no 557"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"C=100*10**-6\n",
"R=40\n",
"Ev=110\n",
"f=60\n",
"\n",
"#Calculation\n",
"import math\n",
"Iv=Ev/(math.sqrt(R**2+(1/(2*math.pi*f*C)**2)))\n",
"Iv1=math.sqrt(2)*Iv\n",
"a=1/(2*math.pi*f*C*R)\n",
"a1=math.atan(a)*180/3.14\n",
"\n",
"#Result\n",
"print\"(a) Maximum current in the circuit is\", round(Iv1,2),\"A\"\n",
"print\"(b) Phase lag between the current maximum and voltage maximum is\",round(a1,2),\"degree (e.m.f. lags behind the current)\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(a) Maximum current in the circuit is 3.24 A\n",
"(b) Phase lag between the current maximum and voltage maximum is 33.57 degree (e.m.f. lags behind the current)\n"
]
}
],
"prompt_number": 62
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.15 page no 557"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"C=100*10**-6\n",
"R=50 #ohm\n",
"L=0.5 #H\n",
"Ev=110\n",
"f=50\n",
"\n",
"#Calculation\n",
"import math\n",
"Z=math.sqrt(R**2+(2*math.pi*f*L-1/(2*math.pi*f*C))**2)\n",
"I0=Ev/Z\n",
"\n",
"#Result\n",
"print\"r.m.s value of current is\", round(I0,3),\"A\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"r.m.s value of current is 0.816 A\n"
]
}
],
"prompt_number": 68
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.16 Page no 557"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"L=0.1 #H\n",
"C=25*10**-6\n",
"R=25.0\n",
"e=314\n",
"E0=310\n",
"\n",
"#Calculation\n",
"import math\n",
"f=e/(2*math.pi)\n",
"Xl=2*math.pi*f*L\n",
"Xc=1/(2*math.pi*f*C)\n",
"A=Xc-Xl\n",
"Z=math.sqrt(R**2+(Xc-Xl)**2)\n",
"Ev=E0/math.sqrt(2)\n",
"Iv=Ev/Z\n",
"a1=(Xc-Xl)/R\n",
"a2=math.atan(a1)*180/3.14\n",
"a3=a2*math.pi/180.0\n",
"V=Iv*Xc\n",
"V1=Iv*Xl\n",
"V2=Iv*R\n",
"L=1/(((2*math.pi*f)**2)*C)\n",
"\n",
"#Result\n",
"print\"(a) The frequency of the e.m.f is\",round(f,0),\"cycle s**-1\" \n",
"print\"(b) The reactance of the circuit is\",round(A,0),\"ohm\"\n",
"print\"(c) The impedance of the circuit is\",round(Z,1),\"ohm\"\n",
"print\"(d) The current in the circuit is\",round(Iv,2),\"A\"\n",
"print\"(e) The phase angle of the current is\",round(a3,3),\"rad\"\n",
"print\"(f) The expression for the instantaneous value of the current is 3.125 cos(314t-1.316)\"\n",
"print\"(g) Effective voltage across the capacitor is\",round(V,1),\"V\"\n",
"print\" Effective Voltage across the inductor is\",round(V1,1),\"V\"\n",
"print\"Effective voltage across the resistor is\",round(V2,2),\"V\"\n",
"print\"(h) Value of inductance is\",round(L,3),\"H\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(a) The frequency of the e.m.f is 50.0 cycle s**-1\n",
"(b) The reactance of the circuit is 96.0 ohm\n",
"(c) The impedance of the circuit is 99.2 ohm\n",
"(d) The current in the circuit is 2.21 A\n",
"(e) The phase angle of the current is 1.317 rad\n",
"(f) The expression for the instantaneous value of the current is 3.125 cos(314t-1.316)\n",
"(g) Effective voltage across the capacitor is 281.5 V\n",
" Effective Voltage across the inductor is 69.4 V\n",
"Effective voltage across the resistor is 55.25 V\n",
"(h) Value of inductance is 0.406 H\n"
]
}
],
"prompt_number": 113
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.17 Page no 558"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"f=50 #Hz\n",
"L=101.5*10**-3\n",
"\n",
"#Calculation\n",
"import math\n",
"C=1/((2*math.pi*f)**2*L)\n",
"\n",
"#Result\n",
"print\"Capacitance of the capacitor is\",round(C*10**6,0),\"micro F\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Capacitance of the capacitor is 100.0 micro F\n"
]
}
],
"prompt_number": 117
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.18 Page no 558"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"Ev=230 #V\n",
"L=5 #H\n",
"C=80*10**-6\n",
"R=40.0\n",
"\n",
"#Calculation\n",
"import math\n",
"f=1/(math.pi*2*math.sqrt(L*C))\n",
"E0=math.sqrt(2)*Ev\n",
"A=E0/R\n",
"\n",
"#Result\n",
"print\"(i) Angular frequency is\", round(f,2),\"Hz\"\n",
"print\"(ii) Impedence of circuit is\",R,\"ohm\"\n",
"print\"(iii) Amplitude of the current is\",round(A,2)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(i) Angular frequency is 7.96 Hz\n",
"(ii) Impedence of circuit is 40.0 ohm\n",
"(iii) Amplitude of the current is 8.13\n"
]
}
],
"prompt_number": 126
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.19 Page no 558"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"C=2*10**-6 #F\n",
"R=100 #ohm\n",
"L=8 #H\n",
"E=200 #V\n",
"\n",
"#Calculation\n",
"import math\n",
"F=1/((2*math.pi*math.sqrt(L*C)))\n",
"D=2*math.pi*F*L\n",
"L1=E/R\n",
"\n",
"#Result\n",
"print\"The resonant frequency is\",round(F,2),\"Hz\"\n",
"print\"(i) The inductive and capacitive reactances of the circuit is\",D,\"ohm\"\n",
"print\"(ii) Total impedance of the circuit is 100\",\"ohm\"\n",
"print\"(iii) Peak value of current is\",L1,\"A\"\n",
"print\"(iv) The voltages across inductor and resistor differ in phase by\",\"90\"\n",
"print\"(v) The voltages across inductor and capacitor differ in phase by\",\"180\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The resonant frequency is 39.79 Hz\n",
"(i) The inductive and capacitive reactances of the circuit is 2000.0 ohm\n",
"(ii) Total impedance of the circuit is 100 ohm\n",
"(iii) Peak value of current is 2 A\n",
"(iv) The voltages across inductor and resistor differ in phase by 90\n",
"(v) The voltages across inductor and capacitor differ in phase by 180\n"
]
}
],
"prompt_number": 144
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.20 Page no 558"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"Ev=220 #V\n",
"f=50 #Hz\n",
"R=100.0 #ohm\n",
"Vr=65 #V\n",
"Vc=415 #V\n",
"Vl=204 #V\n",
"\n",
"#Calculation\n",
"import math\n",
"Iv=Vr/R\n",
"Xl=Vl/Iv\n",
"L=Xl/(2*math.pi*f)\n",
"Xc=Vc/Iv\n",
"C=1/(2*math.pi*f*Xc)\n",
"C1=1/(4*math.pi**2*f**2*L)\n",
"\n",
"#Result\n",
"print\"(i) The current in the circuit is\",Iv,\"A\"\n",
"print\"(ii) The value of the inductor is\",round(L,0),\"H\"\n",
"print\"(iii) The value of the capacitor C is\",round(C*10**6,1),\"micro F\"\n",
"print\"(iv) The value of C required to produce resonance is\",round(C1*10**6,1),\"micro F\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(i) The current in the circuit is 0.65 A\n",
"(ii) The value of the inductor is 1.0 H\n",
"(iii) The value of the capacitor C is 5.0 micro F\n",
"(iv) The value of C required to produce resonance is 10.1 micro F\n"
]
}
],
"prompt_number": 189
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.21 Page no 559"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"L=3 #H\n",
"C=27*10**-6\n",
"R=7.4 #ohm\n",
"\n",
"#Calculation\n",
"import math\n",
"w0=1/(math.sqrt(L*C))\n",
"Q=1/R*(math.sqrt(L/C))\n",
"\n",
"#Result\n",
"print\"Resonant frequency is\", round(w0,1),\"rad/s\"\n",
"print\"Q factor is\",round(Q,2)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Resonant frequency is 111.1 rad/s\n",
"Q factor is 45.05\n"
]
}
],
"prompt_number": 196
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.22 Page no 559"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"R=30 #ohm\n",
"Xl=40\n",
"E0=220\n",
"I0=1 \n",
"\n",
"#Calculation\n",
"import math\n",
"Z=math.sqrt(R**2+Xl**2)\n",
"a=R/Z\n",
"Pav=E0*I0*a/(math.sqrt(2)*math.sqrt(2))\n",
"\n",
"#Result\n",
"print\"Power consumed in the circuit is\", Pav,\"Watt\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Power consumed in the circuit is 66.0 Watt\n"
]
}
],
"prompt_number": 201
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.23 Page no 559"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"Ev=100\n",
"f=50 #Hz\n",
"C=10*10**-6\n",
"R=100\n",
"\n",
"#Calculation\n",
"import math\n",
"Xc=1/(2*math.pi*f*C)\n",
"Iv=Ev/Xc\n",
"Pav=Ev*Iv*Ev/(math.sqrt(Ev**2+Xc**2))\n",
"\n",
"#Result\n",
"print\"(a) The reactance of the capacitor is\",round(Xc,2),\"ohm\"\n",
"print\"(b) Current flowing is\",round(Iv,3),\"A\"\n",
"print\"(c) Average power supplied is\",round(Pav,2),\"W\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(a) The reactance of the capacitor is 318.31 ohm\n",
"(b) Current flowing is 0.314 A\n",
"(c) Average power supplied is 9.42 W\n"
]
}
],
"prompt_number": 214
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.24 Page no 559"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"V=60.0\n",
"P=10\n",
"Ev=100\n",
"f=60 #Hz\n",
"\n",
"#Calculation\n",
"import math\n",
"I=P/V\n",
"R=f/I\n",
"Z=Ev/I\n",
"L=math.sqrt(Z**2-R**2)/(2*math.pi*f)\n",
"R1=Z-R\n",
"\n",
"#Result\n",
"print\"(i) The inductance is\", round(L,3),\"henry\"\n",
"print\"(ii) Value of resistance is\",R1,\"ohm\"\n",
"print\"(iii) If resistance is used in the place of inductance, the electrical energy is wasted.\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(i) The inductance is 1.273 henry\n",
"(ii) Value of resistance is 240.0 ohm\n",
"(iii) If resistance is used in the place of inductance, the electrical energy is wasted.\n"
]
}
],
"prompt_number": 224
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.25 Page no 559"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"V=50.0 #V\n",
"P=20 #watt\n",
"Ev=250 #V\n",
"f=50\n",
"\n",
"#Calculation\n",
"import math\n",
"I=P/V\n",
"R=V/I\n",
"Z=Ev/I\n",
"C=1/(2*math.pi*f*Ev*math.sqrt(6))\n",
"\n",
"#Result\n",
"print\"Value of capacitance required is\", round(C*10**6,3)*10**-6,\"F\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Value of capacitance required is 5.198e-06 F\n"
]
}
],
"prompt_number": 233
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.26 Page no 560"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"Ev=200\n",
"f=50 #H\n",
"R=50\n",
"L=0.3\n",
"C=40*10**-6\n",
"\n",
"#Calculation\n",
"import math\n",
"Xl=2*math.pi*f*L\n",
"Xc=1/(2*math.pi*f*C)\n",
"Z=math.sqrt(R**2+(Xl-Xc)**2)\n",
"Iv=Ev/Z\n",
"a=R/Z\n",
"Pav=Ev*Iv*a\n",
"\n",
"#Result\n",
"print\"Impedence in the circuit is\", round(Z,2),\"ohm\"\n",
"print\"Power in the circuit is\",round(Pav,1),\"watt\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Impedence in the circuit is 52.11 ohm\n",
"Power in the circuit is 736.6 watt\n"
]
}
],
"prompt_number": 244
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.27 Page no 560"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"Ev=200 #v\n",
"L=5 #H\n",
"C=80\n",
"R=40.0\n",
"\n",
"#Calculation\n",
"import math\n",
"W=10**3/(math.sqrt(L*C))\n",
"Iv=Ev/R\n",
"I0=math.sqrt(2)*Iv\n",
"Pav=Ev*L*math.cos(0*3.14/180.0)\n",
"\n",
"print\"(a) Angular frequency is\",W,\"rad s**-1\"\n",
"print\"(b) The current amplitude is\",round(I0,2),\"A\" \n",
"print\"(c) The power dissipation in the circuit is\",Pav,\"Watt\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(a) Angular frequency is 50.0 rad s**-1\n",
"(b) The current amplitude is 7.07 A\n",
"(c) The power dissipation in the circuit is 1000.0 Watt\n"
]
}
],
"prompt_number": 272
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.28 Page no 560"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"L=5.0 #H\n",
"C=80*10**-6 #F\n",
"R=40.0 #ohm\n",
"Ev=230 #V\n",
"\n",
"#Calculation\n",
"import math\n",
"D=1/math.sqrt(L*C)\n",
"Iv=Ev/R\n",
"I0=math.sqrt(2)*Iv\n",
"S=Iv*R\n",
"S1=Iv*D*L\n",
"S2=Iv/(1/D*C)\n",
"S3=Iv/(D*L-1/D*C)\n",
"\n",
"#Result\n",
"print\"(a) The resonant angular frequency is\",D,\"rad s**-1\"\n",
"print\"(b) The impedance of the circuit and the amplitude of curremt is\",round(I0,2),\"A\"\n",
"print\"(c) The R.M.S. potential drop across LC is\",round(S3,0)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(a) The resonant angular frequency is 50.0 rad s**-1\n",
"(b) The impedance of the circuit and the amplitude of curremt is 8.13 A\n",
"(c) The R.M.S. potential drop across LC is 0.0\n"
]
}
],
"prompt_number": 282
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.29 Page no 560"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"L=0.12 #H\n",
"C=480*10**-9 #F\n",
"R=23 #ohm\n",
"Ev=230 #V\n",
"\n",
"#Calculation\n",
"import math\n",
"D=1/(math.sqrt(L*C))\n",
"Iv=Ev/(math.sqrt(R**2+(D*L-1/D*C))**2)\n",
"I0=(math.sqrt(2)*Ev)/(math.sqrt(R**2+(D*L-1/D*C))**2)\n",
"I1=(math.sqrt(2)*Ev)/R\n",
"EvIv=Ev*(I1/math.sqrt(2))\n",
"\n",
"#Result\n",
"print\"(a) The source frequency is\",round(D,1),\"rad s**-1\"\n",
"print\" The maximum value is\",round(I1,2),\"A\"\n",
"print\"(b) Average power will also be maximum at resonant frequency is\",round(D,1),\"rad s**-1\" \n",
"print\" The value of this maximum power is\",EvIv,\"Watt\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(a) The source frequency is 4166.7 rad s**-1\n",
" The maximum value is 14.14 A\n",
"(b) Average power will also be maximum at resonant frequency is 4166.7 rad s**-1\n",
" The value of this maximum power is 2300.0 Watt\n"
]
}
],
"prompt_number": 298
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 18.30 Page no 561"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Given\n",
"L=80*10**-3 #H\n",
"C=60*10**-6 #F\n",
"Ev=230 #V\n",
"f=50 #Hz\n",
"\n",
"#Calculation\n",
"import math\n",
"Iv=-Ev/((2*math.pi*f*L)-(1/(2*math.pi*f*C)))\n",
"I0=math.sqrt(2)*Iv\n",
"Iv1=Iv*2*math.pi*f*L\n",
"Iv2=Iv*(1/(2*math.pi*f*C))\n",
"Pav=math.cos(90*3.14/180.0)*Ev\n",
"Pav1=math.cos(-90*3.14/180.0)*Ev\n",
"\n",
"#Result\n",
"print\"(a) The current amplitude is\",round(Iv,2),\"A\",\"and r.m.s. value is\",round(I0,2),\"A\"\n",
"print\"(b) The r.m.s. value of potential drops across L is\",round(Iv1,1),\"V\",\"and across C is\",round(Iv2,1),\"W\"\n",
"print\"(c) The average power transferred to the inductor is\",round(Pav,0)\n",
"print\"(d) The average power transferred to the capacitor is\",round(Pav1,0)\n",
"print\"(e) Total average power absorbed is zero\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(a) The current amplitude is 8.24 A and r.m.s. value is 11.65 A\n",
"(b) The r.m.s. value of potential drops across L is 207.0 V and across C is 437.0 W\n",
"(c) The average power transferred to the inductor is 0.0\n",
"(d) The average power transferred to the capacitor is 0.0\n",
"(e) Total average power absorbed is zero\n"
]
}
],
"prompt_number": 357
}
],
"metadata": {}
}
]
}
|