diff options
author | Trupti Kini | 2016-01-20 23:30:20 +0600 |
---|---|---|
committer | Trupti Kini | 2016-01-20 23:30:20 +0600 |
commit | dd0283f58b9fd55e8286fd860e60e12ffe86c6f4 (patch) | |
tree | 5c60ed21854d68df3697699660c88a5d08fca3d1 | |
parent | 96dce5594ffaee4575d423418335a1544d533ef5 (diff) | |
download | Python-Textbook-Companions-dd0283f58b9fd55e8286fd860e60e12ffe86c6f4.tar.gz Python-Textbook-Companions-dd0283f58b9fd55e8286fd860e60e12ffe86c6f4.tar.bz2 Python-Textbook-Companions-dd0283f58b9fd55e8286fd860e60e12ffe86c6f4.zip |
Added(A)/Deleted(D) following books
A Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER01.ipynb
A Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER02.ipynb
A Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER03.ipynb
A Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER04.ipynb
A Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER05.ipynb
A Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER07.ipynb
A Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER08.ipynb
A Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER09.ipynb
A Network_Analysis_and_Synthesis_by_B_R_Gupta/screenshots/Capture02.png
A Network_Analysis_and_Synthesis_by_B_R_Gupta/screenshots/Capture04.png
A Network_Analysis_and_Synthesis_by_B_R_Gupta/screenshots/Capture08.png
A sample_notebooks/SumadhuriDamerla/Chapter_1_Passive_Circuits.ipynb
A sample_notebooks/VidyaSri/CHAPTER07.ipynb
A sample_notebooks/VijayaLakshmi/CHAPTER04.ipynb
14 files changed, 17186 insertions, 0 deletions
diff --git a/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER01.ipynb b/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER01.ipynb new file mode 100644 index 00000000..dbc4a498 --- /dev/null +++ b/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER01.ipynb @@ -0,0 +1,1559 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:9246b5e44d0fb964b8837c20d80c5b16228283687f98fb2c5c9f9c7892939efd"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "CHAPTER01:INTRODUCTION TO ELECTRONIC CIRCUITS"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E01 : Pg 17"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # CHAPTER1 EX 1-1 PG NO 17 \n",
+ "L=5.*10.**-3.; # length\n",
+ "B=2.*10.**-2.; # breath\n",
+ "A=(5.*10.**-3.)*(2.*10.**-2.); # area\n",
+ "P=1.72*10.**-5. ; # resistivity of copper\n",
+ "R=P*L/A; # resistance of copper\n",
+ "print'i) resistance = ',round (R,5),'ohm'\n",
+ "R=P*L/A; # resistance in ohm"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) resistance = 0.00086 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E02 : Pg 18"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-2 PG NO 18\n",
+ "from math import pi\n",
+ "R=0.69; # RESISTANCE\n",
+ "P=2.83*10**-8; # PRO\n",
+ "L=60.; # LENGTH OF CABLE\n",
+ "a=(P*L)/R;\n",
+ "print'i) a = ',round (a,6),'m**2'\n",
+ "D=((4.*a)/pi)**0.5; # DIAMETER\n",
+ "print'i) DIAMETER = ',round (D,5),'mm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) a = 2e-06 m**2\n",
+ "i) DIAMETER = 0.00177 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E03 : Pg 18"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# EXAMPLE 1-3 PG NO-18\n",
+ "A20=0.00393; # ALPHA 20\n",
+ "R30=1.3; # RESITANCE 30\n",
+ "A30=A20/(1.+A20*(30.-20.)); # ALPHA 30\n",
+ "print'i)Alpha30 (A30) = ',round (A30,7)\n",
+ "T=(((1.6/1.3)-1.)/0.00378); # THE RISE IN TEMPERATURE TO BE FIND where T=t-30\n",
+ "print'ii)Resistance Temperature (t-30) = ',round (T,2),'degree celcious'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)Alpha30 (A30) = 0.0037814\n",
+ "ii)Resistance Temperature (t-30) = 61.05 degree celcious\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E04 : Pg 18"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-4 PG NO 18-19\n",
+ "R1=2.22; # RESISTANCE\n",
+ "R2=0.6; # RESISTANCE\n",
+ "R3=3.; # Resistance\n",
+ "R4=4.;\n",
+ "R5=5.;\n",
+ "R6=6.;\n",
+ "R7=2.;\n",
+ "R=R1+R2+R3;\n",
+ "print'i) Resistance (R) is = ',round(R,2),'ohm'\n",
+ "V=12.; # VOLTAGE\n",
+ "I=V/R; # Current\n",
+ "print'ii) CURRENT (I) is = ',round(I,2),'A'\n",
+ "I3=I; # CURRENT THROUGH 3 ohm RESISTANCE\n",
+ "print'iii) CURRENT (I3) is = ',round(I3,2),'A'\n",
+ "I5=(I3*R4)/(R4+R5); # CURRENT THROUGH 5 ohm RESISTANCE\n",
+ "print'iv) CURRENT (I5) is = ',round(I5,2),'A'\n",
+ "I4=(I3*R5)/(R4+R5); # CURRENT THROUGH 4 ohm RESISTANCE\n",
+ "print'v) CURRENT (I4) is = ',round(I4,2),'A'\n",
+ "V1=1.236; # VOLTAGE ACROSS THREE PARALLEL RESISTANCE \n",
+ "I2=V1/R7; # current\n",
+ "print'vi) CURRENT (I2) is = ',round(I2,2),'A'\n",
+ "I1=V1; # CURRENT THROUGH 1 ohm RESISTANCE\n",
+ "print'iv) CURRENT (I1) is = ',round(I1,2),'A'\n",
+ "I6=V1/R6; # CURRENT THROUGH 6 ohm RESISTANCE\n",
+ "print'vii) CURRENT (I6) is = ',round(I6,2),'A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Resistance (R) is = 5.82 ohm\n",
+ "ii) CURRENT (I) is = 2.06 A\n",
+ "iii) CURRENT (I3) is = 2.06 A\n",
+ "iv) CURRENT (I5) is = 0.92 A\n",
+ "v) CURRENT (I4) is = 1.15 A\n",
+ "vi) CURRENT (I2) is = 0.62 A\n",
+ "iv) CURRENT (I1) is = 1.24 A\n",
+ "vii) CURRENT (I6) is = 0.21 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E05 : Pg 19"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-5 PG NO-19\n",
+ "V1=230.; # VOLTAGE ONE\n",
+ "P1=1000.; # POWER\n",
+ "R=V1*V1/P1; # RESISTANCE OF HEATER\n",
+ "V2=210.; # VOLTAGE TWO\n",
+ "P2=V2*V2/R; # POWER OF HEATER WHEN VOLTAGE IS 210\n",
+ "R=(V1*V1)/P1 # Resistance\n",
+ "print'i)RESISTANCE = ',round(R,2),'ohm'\n",
+ "P2=(V2*V2)/R;# Power\n",
+ "print'ii)POWER = ',round(P2,2),'ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)RESISTANCE = 52.9 ohm\n",
+ "ii)POWER = 833.65 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E06 : Pg 19"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-6 PG NO-19-20\n",
+ "I=12.; # CURRENT\n",
+ "V=230.; # VOLTAGE\n",
+ "P=1000.; # POWER\n",
+ "T=3.; # TIME\n",
+ "S=3600.;\n",
+ "E=(I*V/P)*T; # ENERGY USED\n",
+ "Q=I*T*S; # QUANTITY OF ELECTRICITY USED\n",
+ "IC=6.24*10.**18.; \n",
+ "NC=IC*Q; # NUMBER OF ELECTRON\n",
+ "R=I*V; # RATE OF ENERGY\n",
+ "print'i) ENERGY = ',round(E,2),' KWh'\n",
+ "print'ii) QUANTITY = ',round(Q,2),' C'\n",
+ "print'iiI) NUMBER OF ELECTRON = ',round(NC,2)\n",
+ "print'iiII) RATE OF ENERGY = ',round(R,2),' W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) ENERGY = 8.28 KWh\n",
+ "ii) QUANTITY = 129600.0 C\n",
+ "iiI) NUMBER OF ELECTRON = 8.08704e+23\n",
+ "iiII) RATE OF ENERGY = 2760.0 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example E07 : Pg 20"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # Example 1_7 PG NO-20\n",
+ "I1=3.; # current\n",
+ "I2=1.; # current\n",
+ "R=4.; # Resistor\n",
+ "I=I1-I2; # current through resistance\n",
+ "print'i)Current Through resistance (I) = ',round(I,2),' A'\n",
+ "P=I*I*R;\n",
+ "print'ii)Power dissipated in resistor (P) = ',(P,2),' W'\n",
+ "V=I*R;\n",
+ "print'iii)voltage (V) = ',round(V,2),' V'\n",
+ "P1=V*I1; # power dissipated with 3A source\n",
+ "print'iv)power dissipated with 3A source (P1) = ',round(P1,2),' W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)Current Through resistance (I) = 2.0 A\n",
+ "ii)Power dissipated in resistor (P) = (16.0, 2) W\n",
+ "iii)voltage (V) = 8.0 V\n",
+ "iv)power dissipated with 3A source (P1) = 24.0 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E11 : Pg 21"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-11 PG NO-21\n",
+ "R55=58.; # resistance\n",
+ "R15=50.; # Resistance\n",
+ "T1=55.; # Temperature \n",
+ "T2=15.; # Temperature\n",
+ "A15=((R55/R15)-1.)/(T1-T2); # alpha 15\n",
+ "print'i) ALPHA (A15) = ',round (A15,5)\n",
+ "T3=0;\n",
+ "A2=A15/(1.+A15*(T3-T2)); # Alpha 2\n",
+ "print'ii) ALPHA (A2) = ',round (A2,5)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) ALPHA (A15) = 0.004\n",
+ "ii) ALPHA (A2) = 0.00426\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E13 : Pg 21"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-13 PG NO 21-22\n",
+ "R=10.; # RESISTANCE\n",
+ "V=230.; # VOLTAGE\n",
+ "P=(V*V)/R; # POWER\n",
+ "print'i) POWER = ',round (P,2),'W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) POWER = 5290.0 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E14 : Pg 22"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# EXAMPLE 1-14 PG NO-22\n",
+ "R1=4.; # Resistance\n",
+ "R2=2.; # Resistance\n",
+ "R3=8.; # Resistance\n",
+ "RS=R1+R2; # resistance When Point A&B is short circuit\n",
+ "print'i)resistance When Point A&B is short circuit = ',round (RS,2),'ohm'\n",
+ "RO=R1+R2+R3; # resistance When Point A&B is open circuit\n",
+ "print'i)resistance When Point A&B is open circuit = ',round (RO,2),'ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)resistance When Point A&B is short circuit = 6.0 ohm\n",
+ "i)resistance When Point A&B is open circuit = 14.0 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E15 : Pg 22"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-15 PG NO-22\n",
+ "I1=0.04; # CURRENT\n",
+ "I2=0.01; # CURRENT\n",
+ "V1=200; # VOLTAGE\n",
+ "R=V1/I1; # Resistance\n",
+ "print'i)resistance (R) = ',round (R,2),'ohm'\n",
+ "V2=10.; # VOLTAGE\n",
+ "I3=50.; # CURRENT\n",
+ "A=0.1; # AMMETER RESISTANCE\n",
+ "R1=(V2/I3)-0.1;\n",
+ "print'i)Resistance (R1) = ',round (R1,2),'ohm'\n",
+ "V3=5000.;\n",
+ "V4=250.;\n",
+ "I=I3/V3;\n",
+ "print'i)Current (I) = ',round (I,2),'A'\n",
+ "R2=(V4-I3)/I;\n",
+ "print'i)resistance (R2) = ',round (R2,2),'ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)resistance (R) = 5000.0 ohm\n",
+ "i)Resistance (R1) = 0.1 ohm\n",
+ "i)Current (I) = 0.01 A\n",
+ "i)resistance (R2) = 20000.0 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E16 : Pg 23"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-16 PG NO-23\n",
+ "V=1.; # ASSUMING\n",
+ "t=1.; # ASSUMING\n",
+ "R1=30.; # RESISTANCE\n",
+ "R2=20.;\n",
+ "R3=10.;\n",
+ "E30=(V/R1)*t; # ENERGY AT 30 ohm RESISTANCE\n",
+ "print'i) ENERGY = ',round (E30,2)\n",
+ "E20=(V/R2)*t; # ENERGY AT 20 ohm RESISTANCE\n",
+ "print'ii) ENERGY = ',round (E20,2)\n",
+ "E10=(V/R3)*t; # ENERGY AT 10 ohm RESISTANCE\n",
+ "print'iii) ENERGY = ',round (E10,2)\n",
+ "TE=E30+E20+E10; # TOTAL ENERGY\n",
+ "print'iv) TOTAL ENERGY = ',round (TE,2)\n",
+ "PTE=(E30/TE)*100.; # PERCENTAGE OF TOTAL ENERGY\n",
+ "print'ii) PERCENTAGE OF TOTAL ENERGY = ',round (PTE,2),'%' "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) ENERGY = 0.03\n",
+ "ii) ENERGY = 0.05\n",
+ "iii) ENERGY = 0.1\n",
+ "iv) TOTAL ENERGY = 0.18\n",
+ "ii) PERCENTAGE OF TOTAL ENERGY = 18.18 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E17 : Pg 23"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# EXAMPLE 1-17 PG NO-23\n",
+ "from math import pi\n",
+ "N=10.**3.; # Number of Turns\n",
+ "a=6.25*10.**-4.; # Diameter\n",
+ "l=0.25; \n",
+ "L=(N*N*4.*pi*10.**-7.*a)/(pi*l); # INDUCTANCE\n",
+ "print'i)inductance = ',round (L,5),'H'\n",
+ "e=L*100.; # EMF\n",
+ "print'ii)EMF = ',round (e,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)inductance = 0.001 H\n",
+ "ii)EMF = 0.1 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E18 : Pg 23"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-18 PG NO-23\n",
+ "E=0.05; # ENERGY \n",
+ "i=0.1; # CURRENT\n",
+ "L=2*E/i**2 # INDUCTANCE OF COIL\n",
+ "print'i)inductance = ',round (L,2),' H'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)inductance = 10.0 H\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E19 : Pg 23"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-19 PG NO 23\n",
+ "i=0.184 # derivative of I\n",
+ "e=0.16;\n",
+ "L=e/i; # Inductance\n",
+ "print'i)Inductance = ',round (L,2),'H'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)Inductance = 0.87 H\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E20 : Pg 24"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-20 PG NO-24\n",
+ "A=20.*10.**-6.;\n",
+ "L=30.;\n",
+ "P20=1.72*10**-8;\n",
+ "R20=P20*L/A;\n",
+ "X0=0.00426;\n",
+ "I=5.;\n",
+ "X20=X0/(1.+(X0*20));\n",
+ "R55=R20*(1.+X20*(55-20));\n",
+ "P=I*I*R55;\n",
+ "print'i)RESISTANCE = ',round (R20,2),' ohm'\n",
+ "print'i) ALPHA 20(X20)= ',round(X20,2),' ohm'\n",
+ "print'i)RESISTANCE = ',round (R55,2),' ohm'\n",
+ "print'i)POWER = ',round (P,2),'w'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)RESISTANCE = 0.03 ohm\n",
+ "i) ALPHA 20(X20)= 0.0 ohm\n",
+ "i)RESISTANCE = 0.03 ohm\n",
+ "i)POWER = 0.73 w\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E21 : Pg 24"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-21 PG NO-24\n",
+ "L=200.*10.**-3.; # INDUCTAR\n",
+ "t1=1.; # di/dt=(-2e**-t+4e**-2t)=-1.9*10**-7;\n",
+ "V=L*(-1.94*10.**-7.); # VOLTAGE AT TIME 1\n",
+ "print'i) Voltage = ',round (V,2),'V'\n",
+ "t2=0.1; # di/dt=(-2e**-t+4e**-2t)**2=0.216;\n",
+ "V1=L*0.5*(0.216); # VOLTAGE AT TIME O.1\n",
+ "print'ii) Voltage = ',round (V1,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage = -0.0 V\n",
+ "ii) Voltage = 0.02 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E26 : Pg 27"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-26 PG NO 27\n",
+ "L1=(1.1-0.8)/0.75; # Inductance\n",
+ "print'i)Inductance = ',round (L1,2),'H'\n",
+ "L2=3*L1; # Inductance\n",
+ "print'ii)Inductance = ',round (L2,2),'H'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)Inductance = 0.4 H\n",
+ "ii)Inductance = 1.2 H\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E27 : Pg 27"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-27 PG NO27\n",
+ "L1=50.*10.**-3.; # Inductar\n",
+ "L2=100.*10.**-3.; # Inductar\n",
+ "X=(L1/L2);\n",
+ "print'i) (L1/L2) = ',round (X,2)\n",
+ "#Q11+Q22=600.; \n",
+ "Q11=200.; # flux\n",
+ "Q22=400.; # flux\n",
+ "print'ii) Flux Q11 = ',round (Q11),'mWb'\n",
+ "print'iii) Flux Q22 = ',round (Q22),' mWb'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) (L1/L2) = 0.5\n",
+ "ii) Flux Q11 = 200.0 mWb\n",
+ "iii) Flux Q22 = 400.0 mWb\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E28 : Pg 27"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-28 PG NO-27\n",
+ "C1=60.; # TWO CAPACITOR CONNECTED IN SERIES\n",
+ "EC=(C1*C1)/(C1+C1); # EQUIVALENT CAPACITOR\n",
+ "print'i) Equivalent Cpacitor (EC) is = ',round (EC,2),'microF'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Equivalent Cpacitor (EC) is = 30.0 microF\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E29 : Pg 27"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-29 PG NO-27-28\n",
+ "C1=12.; # CAPACITOR\n",
+ "C2=4.; # CAPACITOR\n",
+ "C3=8.;\n",
+ "C4=7.;\n",
+ "C1=(C1*C2)/(C1+C2); # CAPACITOR IN SEREIS\n",
+ "print'i) Capacitor = ',round (C1,2),' muF'\n",
+ "C2=(C3*C4)/(C3+C4); # CAPACITOR IN PARALLEL\n",
+ "print'i) Capacitor = ',round (C2,2),' muF'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Capacitor = 3.0 muF\n",
+ "i) Capacitor = 3.73 muF\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E30 : Pg 28"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-30 PG NO-28\n",
+ "Q=80.*10.**-4.; # COULUMB CHARGR\n",
+ "C=150.*10.**-6.;\n",
+ "C1=100.*10.**-6.; # CAPACITANCE\n",
+ "C2=50.*10.**-6.;\n",
+ "Va=Q/C1;\n",
+ "Vb=Q/C2;\n",
+ "E1=(0.5*C1*Va*Va)+(0.5*C2*Vb*Vb); # ENERGY\n",
+ "E2=0.5*C*(Va+Vb)*(Va+Vb);\n",
+ "print'i)variable = ',round (Va,2),'ohm'\n",
+ "print'i)variable = ',round (Vb,2),'ohm'\n",
+ "print'i)energy = ',round (E1,2),'J'\n",
+ "print'i)energy = ',round (E2,2),'J'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)variable = 80.0 ohm\n",
+ "i)variable = 160.0 ohm\n",
+ "i)energy = 0.96 J\n",
+ "i)energy = 4.32 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E32 : Pg 29"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-32 PG NO-29\n",
+ "V=10.; # VOLTAGE\n",
+ "R1=2.;\n",
+ "R2=8.; # RESISTANCE\n",
+ "I1=V/(R1+R2); # CURRENT\n",
+ "I2=1.25; # CURRENT THROUGH SECOND BRANCH\n",
+ "R=V/I2-5.;\n",
+ "print'i)CURRENT = ',round (I1,2),' A'\n",
+ "print'ii)RESISTANCE = ',round (R,2),' ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)CURRENT = 1.0 A\n",
+ "ii)RESISTANCE = 3.0 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E33 : Pg 29"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-33 PG NO-29-30\n",
+ "R1=29980; # RESISTANCE\n",
+ "I1=9.99; # current\n",
+ "R2=20;\n",
+ "I2=0.01; # current\n",
+ "r=20*0.01/9.99; # resistance\n",
+ "print'i)resistance = ',round (r,2),'ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)resistance = 0.02 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E34 : Pg 30"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # Example 1-34 PG NO-30\n",
+ "V=20.; # VOLTAGE\n",
+ "R1=5.; # Resistance\n",
+ "X=7.5;\n",
+ "P=(20./(R1+X))**2.*(X); # Power\n",
+ "print'i) Power (P) is = ',round(P,2),'W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Power (P) is = 19.2 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E35 : Pg 30 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-35 PG NO 30-31\n",
+ "I1=4.; # Current\n",
+ "I2=6.; # Current\n",
+ "V=110.; # Voltage\n",
+ "Vab1=V-(6.+4.)*2.;\n",
+ "VB=80.;\n",
+ "VC=50.;\n",
+ "R11=(Vab1-VB)/I1;\n",
+ "R12=(Vab1-VC)/I2; \n",
+ "Vab2=V-(-2.+20.)*2.; # Voltage\n",
+ "R21=(VB-Vab2)/2.; # Resistance\n",
+ "R22=(Vab2-VC)/20.; # Resistance\n",
+ "I=(V-VB)/2.; # Current\n",
+ "R=(VB-VC)/I; # Resistance\n",
+ "print'i)variable = ',round(Vab1,2),'ohm'\n",
+ "print'ii)resistance = ',round(R11,2),'ohm'\n",
+ "print'iii)resistance = ',round(R12,2),'ohm'\n",
+ "print'iv)variable = ',round(Vab2,2),'ohm'\n",
+ "print'v)resistance = ',round(R21,2),'ohm'\n",
+ "print'vi)resistance = ',round(R22,2),'ohm'\n",
+ "print'vii)resistance = ',round(R,2),'ohm'\n",
+ "print'viii)Current = ',round(I,2),'A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)variable = 90.0 ohm\n",
+ "ii)resistance = 2.5 ohm\n",
+ "iii)resistance = 6.67 ohm\n",
+ "iv)variable = 74.0 ohm\n",
+ "v)resistance = 3.0 ohm\n",
+ "vi)resistance = 1.2 ohm\n",
+ "vii)resistance = 2.0 ohm\n",
+ "viii)Current = 15.0 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E36 : Pg 31"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-36 PG NO-31\n",
+ "T=0.99425; # TIME\n",
+ "print'i)Time = ',round(T,2),'seconds'\n",
+ "X=0.37; # DERAVATIVES OF 'I' W.R.T\n",
+ "print'ii)(di\\dt) = ',round(X,2),'A\\sec'\n",
+ "LI=0.63; # CURRENT\n",
+ "dli=0.37; # deravatives of 'SI' w.r.t\n",
+ "print'iii)(dsi\\dt) = ',round(dli,2),' Wb-turns\\sec'\n",
+ "VL=dli;\n",
+ "print'iv)(VL) = ',round(VL,2),'V'\n",
+ "Ri=0.63;\n",
+ "VR=Ri;\n",
+ "print'v)VR = ',round(VR,2),'V'\n",
+ "E=0.5*LI*LI; # ENERGY\n",
+ "print'vi)ENERGY stored in magnetic field = ',round(E,2),'J'\n",
+ "E1=LI*VL; # ENERGY STORED IN MAGNETIC FIELD\n",
+ "H=Ri*Ri; # HEAT\n",
+ "print'vii) Rate of Energy stored in magnetic field = ',round(E1,2),'W'\n",
+ "print'viii)Rate of dissipation of heat in resistor = ',round(H,2),' W'\n",
+ "print'ix)Rate of supply of battery energy = ',round(Ri,2),'W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)Time = 0.99 seconds\n",
+ "ii)(di\\dt) = 0.37 A\\sec\n",
+ "iii)(dsi\\dt) = 0.37 Wb-turns\\sec\n",
+ "iv)(VL) = 0.37 V\n",
+ "v)VR = 0.63 V\n",
+ "vi)ENERGY stored in magnetic field = 0.2 J\n",
+ "vii) Rate of Energy stored in magnetic field = 0.23 W\n",
+ "viii)Rate of dissipation of heat in resistor = 0.4 W\n",
+ "ix)Rate of supply of battery energy = 0.63 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E37 : Pg 32"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "T=2000.; # TEMPERATURE\n",
+ "T1=15.; # ROOM TEMPERATURE\n",
+ "V=220.; # VOLTAGE\n",
+ "P=40.; # POWER\n",
+ "A15=0.005;\n",
+ "R=V*V/P; # RESISTANCE\n",
+ "R15=R/(1.+A15*(T-T1)); # RESISTANCE AT TIME OF SWITICHING\n",
+ "I=V/R15; # CURRENT\n",
+ "print'i)resistance = ',round(R,2),'ohm'\n",
+ "print'ii)resistance = ',round(R15,2),'ohm'\n",
+ "print'iii)current = ',round(I,2),'A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)resistance = 1210.0 ohm\n",
+ "ii)resistance = 110.76 ohm\n",
+ "iii)current = 1.99 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E38 : Pg 32"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-38 PG NO-32\n",
+ "from math import pi\n",
+ "F=50.; # Frequency\n",
+ "W=2.*pi*F;\n",
+ "print'i)W = ',round(W,2),'rad/sec'\n",
+ "t=0.0025; # time\n",
+ "Vm=10.;\n",
+ "A1=0.01;\n",
+ "A2=0.005;\n",
+ "i=((A2*Vm**2.)/2.)+0.0707;\n",
+ "print'ii)Current = ',round(i,2),'A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)W = 314.16 rad/sec\n",
+ "ii)Current = 0.32 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E39 : Pg 32"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-39 PG NO-32-33\n",
+ "V=440.; # voltage\n",
+ "V1=5.; # voltage\n",
+ "R=40.; # resistance\n",
+ "V2=220.;\n",
+ "V3=100.;\n",
+ "Rv=(V3*R)/(V2-V3); # insulation resistance\n",
+ "print'i)Resistance (Rv) = ',round(Rv,2),'Kohm'\n",
+ "Ri=(Rv*(V-V1))/V1; # insulation resistance\n",
+ "print'iii)Resistance(Ri) = ',round(Ri,2),'Kohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)Resistance (Rv) = 33.33 Kohm\n",
+ "iii)Resistance(Ri) = 2900.0 Kohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 30
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E40 : Pg 33"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-40 PG NO-33\n",
+ "from math import pi \n",
+ "P=1.72*10.**-8.; # PRO\n",
+ "t=0.03; # distance\n",
+ "R=((4.*P)/(pi*0.03))*0.47; # Resistance\n",
+ "print'i)Resistance = ',round(R,7),'ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)Resistance = 3e-07 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E41 : Pg 33"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-41 PG NO-33\n",
+ "from math import pi\n",
+ "P=1.72*10**-8; # PRO\n",
+ "t=0.03;\n",
+ "R=((P*pi)/(4.*0.03*0.47));\n",
+ "print'i)Resistance = ',round(R,7),'ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)Resistance = 1e-06 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E44 : Pg 34"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-42 PG NO-34\n",
+ "import math \n",
+ "P=100.; # pro\n",
+ "L=0.5; # inductance\n",
+ "r1=0.15; # radius\n",
+ "r2=0.075; # radius\n",
+ "R=(100./(2.*math.pi*L))*(0.731); # resistance\n",
+ "print'i)Resistance = ',round(R,2),'ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)Resistance = 23.27 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 33
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E44 : Pg 36"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-44 PG NO-36\n",
+ "R1=12.; # Resistance\n",
+ "R2=0.2; # Resistance\n",
+ "R3=15.; \n",
+ "V1=(-(R2*R3)+R1)/3.; # voltage drop \n",
+ "print'i) VOLTAGE = ',round(V1,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) VOLTAGE = 3.0 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 34
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E46 : Pg 37"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-46 PG NO37\n",
+ "import numpy\n",
+ "A=([85, -25],[-25, 135]); # Finding current\n",
+ "B=([60],[100]);\n",
+ "X=numpy.divide(A,B);#current\n",
+ "print'i)CURRENT = ',X,'A'\n",
+ "I1=0.977;\n",
+ "I2=0.922; # WE HAVE FOUNDED I1 and I2\n",
+ "I3=I1-I2;\n",
+ "print'ii)CURRENT = ',I3,'A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)CURRENT = [[ 1 -1]\n",
+ " [-1 1]] A\n",
+ "ii)CURRENT = 0.055 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 35
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E47 : Pg 39"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-48 PG NO-39-40\n",
+ "R1=4.; # Resistance\n",
+ "R2=4.; # Resistance\n",
+ "R3=8.; # Resistance\n",
+ "RA=(R1*R2)/(R1+R2+R3);\n",
+ "print'i)RESISTANCE = ',round(RA,2),'ohm'\n",
+ "RB=(R1*R3)/(R1+R2+R3);\n",
+ "print'ii)RESISTANCE = ',round(RB,2),'ohm'\n",
+ "RC=(R2*R3)/(R1+R2+R3);\n",
+ "print'iii)RESISTANCE = ',round(RC,2),'ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)RESISTANCE = 1.0 ohm\n",
+ "ii)RESISTANCE = 2.0 ohm\n",
+ "iii)RESISTANCE = 2.0 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 36
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E48 : Pg 39"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-48 PG NO-39-40\n",
+ "R1=6.8; # Resistance\n",
+ "R2=15.;\n",
+ "R3=10.;\n",
+ "RA=(R1*R2)/(R1+R2+R3);\n",
+ "print'i)RESISTANCE = ',round(RA,2),'ohm'\n",
+ "RB=(R1*R3)/(R1+R2+R3);\n",
+ "print'ii)RESISTANCE = ',round(RB,2),'ohm'\n",
+ "RC=(R2*R3)/(R1+R2+R3);\n",
+ "print'iii)RESISTANCE = ',round(RC,2),'ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)RESISTANCE = 3.21 ohm\n",
+ "ii)RESISTANCE = 2.14 ohm\n",
+ "iii)RESISTANCE = 4.72 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 37
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E50 : Pg 45"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-50 PG NO-45\n",
+ "TR=17./6.; # TOTAL RESISTANCE\n",
+ "V=40.; # VOLTAGE\n",
+ "I=5.; # CURRENT\n",
+ "Vs=(TR*I)-V;\n",
+ "print'i)VOLTAGE = ',round(Vs,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)VOLTAGE = -25.83 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 38
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E51 : Pg 45"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-51 PG NO-45-46\n",
+ "TR=2.05; # TOTAL RESISTANCE\n",
+ "V=2.; # VOLTAGE \n",
+ "P=V**2./TR; # ower\n",
+ "print'i)POWER = ',round(P,2),'W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)POWER = 1.95 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 39
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E52 : Pg 46"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-52 PG NO-46\n",
+ "L1=1.;\n",
+ "L2=1.;\n",
+ "L3=1.; # INDUCTANCE\n",
+ "DL1=((L1*L2)+(L2*L3)+(L3*L1))/(L1*L2*L3);\n",
+ "print'i)DELTA INDUCTANCE = ',round(DL1,2),'H'\n",
+ "L4=1.5;\n",
+ "L5=1.5; # Inductance\n",
+ "L6=1.5;\n",
+ "L=(L4*(L5+L6))/(L4+L5+L6);\n",
+ "print'ii)INDUCTANCE = ',round(L,2),'H'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)DELTA INDUCTANCE = 3.0 H\n",
+ "ii)INDUCTANCE = 1.0 H\n"
+ ]
+ }
+ ],
+ "prompt_number": 40
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E53 : Pg 46"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 1-53 PG NO-46-47\n",
+ "R1=200.; # RESISTANCE\n",
+ "R2=50.;\n",
+ "R3=30.;\n",
+ "R4=20.;\n",
+ "Rab=(R1*(R2+R3+R4))/(R1+R2+R3+R4); # equvalent resistance\n",
+ "print'i)RESISTANCE = ',round(Rab,2),'ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)RESISTANCE = 66.67 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 41
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER02.ipynb b/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER02.ipynb new file mode 100644 index 00000000..fd2a2064 --- /dev/null +++ b/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER02.ipynb @@ -0,0 +1,4476 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:ea2c88828cfd7962d0151c1e4c0260079332f1e23732eddfffa7f8816f08a92b"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "CHAPTER02:SINGLE PHASE AC CIRCUITS"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E01 : Pg 59"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE-2-1 EXAMPLE-59\n",
+ "t=0.5; \n",
+ "x=115.; \n",
+ "z=310.6 # time\n",
+ "AV=0.2*x; # average value\n",
+ "RMS=(1./10.)*z; # rms value\n",
+ "F=RMS/AV; # form factor\n",
+ "PF=60./RMS; # peak factor\n",
+ "S=60./(2.)**0.5; # rms value of sine wave\n",
+ "print '%s %.2f %s' %('i)R.M.S =',RMS,' V')\n",
+ "print '%s %.2f %s' %('i) average value = ',AV,' V')\n",
+ "print '%s %.2f' %('i)orm factor = ',F)\n",
+ "print '%s %.2f' %('i peak factor =',PF)\n",
+ "print '%s %.2f %s' %('i)sine wave =',S,' V')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)R.M.S = 31.06 V\n",
+ "i) average value = 23.00 V\n",
+ "i)orm factor = 1.35\n",
+ "i peak factor = 1.93\n",
+ "i)sine wave = 42.43 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E03 : Pg 59"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-3 PG NO-59-60\n",
+ "Vm=1.;\n",
+ "AV1=0.318*Vm; # avegare value\n",
+ "RMS1=0.5*Vm; # RMS value\n",
+ "FF1=RMS1/AV1; # Form Factor\n",
+ "PF1=Vm/RMS1; # Peak Factor\n",
+ "AV2=0.637*Vm; # Average value\n",
+ "RMS2=0.707*Vm; # RMS value\n",
+ "FF2=RMS2/AV2; # Form Factor\n",
+ "PF2=Vm/RMS2; # Peak Factor\n",
+ "print'i)Form Factor = ',round(FF1,2)\n",
+ "print'i)peak Factor = ',round(PF1,2)\n",
+ "print'i)Form Factor = ',round(FF2,2)\n",
+ "print'i)PEAK Factor = ',round(PF2,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)Form Factor = 1.57\n",
+ "i)peak Factor = 2.0\n",
+ "i)Form Factor = 1.11\n",
+ "i)PEAK Factor = 1.41\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E07 : Pg 64"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-7 PG NO 64-65\n",
+ "V1=24.15+1j*6.47; # VOLTAGE\n",
+ "V2=7.5+1j*12.99; # VOLTAGE\n",
+ "X=V1+V2; # ADITION fo v1&v2\n",
+ "print'i)ADITION is in rectangular form = ',X,' V'\n",
+ "X1=V1-V2; # subsraction of v1&v2\n",
+ "print'i)substraction is in rectangular form = ',X1,' V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)ADITION is in rectangular form = (31.65+19.46j) V\n",
+ "i)substraction is in rectangular form = (16.65-6.52j) V\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E08 : Pg 65"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-8 PG NO-65\n",
+ "A=3.+1j*1;\n",
+ "B=4.+1j*3;\n",
+ "X=A+B; # ADDITION\n",
+ "Y=A-B; # SUBSTRACTION\n",
+ "Z=A*B; # MULTIPLICATION\n",
+ "U=A/B; # DIVISION\n",
+ "V=A**4.; \n",
+ "P=B**(1./3.);\n",
+ "print'ii) ADDITION (A+B) is in polar form = ',X,'ohm'\n",
+ "print'ii) SUBSTRACTION (A-B) is in polar form = ',Y,'ohm'\n",
+ "print'ii) MULTIPLICATION (A*B) is in polar form = ',Z,'ohm'\n",
+ "print'ii) DIVISION (A/B) is is in polar form = ',U,'ohm'\n",
+ "print'ii) SQUARE OF A(A**4) is in polar form = ',V,'ohm'\n",
+ "print'ii) CUBE ROOT OF B (B**(1/3)) is in polar form = ',P,'ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) ADDITION (A+B) is in polar form = (7+4j) ohm\n",
+ "ii) SUBSTRACTION (A-B) is in polar form = (-1-2j) ohm\n",
+ "ii) MULTIPLICATION (A*B) is in polar form = (9+13j) ohm\n",
+ "ii) DIVISION (A/B) is is in polar form = (0.6-0.2j) ohm\n",
+ "ii) SQUARE OF A(A**4) is in polar form = (28+96j) ohm\n",
+ "ii) CUBE ROOT OF B (B**(1/3)) is in polar form = (1.67078820069+0.363984239564j) ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E09 : Pg 65"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# EXAMPLE 2-9 PG NO-65\n",
+ "from math import cos \n",
+ "t1=0.0025; # time\n",
+ "t2=0.005; # time\n",
+ "t3=0.01; # time\n",
+ "i1=10.*314.16*cos(314.16*t1); # i1 is derivatives of i wrt t;\n",
+ "print'i) Current = ',round(i1,2),'A'\n",
+ "i2=10*314.16*cos(314.16*t2);\n",
+ "print'ii) Current = ',round(i2,2),'A'\n",
+ "i3=10*314.16*cos(314.16*t3);\n",
+ "print'iii) Current = ',round(i3,2),'A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Current = 2221.44 A\n",
+ "ii) Current = -0.01 A\n",
+ "iii) Current = -3141.6 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E10 : Pg 66"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-10 PG NO-66\n",
+ "I1=5; # current\n",
+ "I2=7.071; # current\n",
+ "RMS=(I1*I1+I2*I2)**0.5; # resultant rms value\n",
+ "print '%s %.2f %s' %('i) RMS = ',RMS,'A ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) RMS = 8.66 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E11 : Pg 66"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-11 PG NO-66\n",
+ "import math \n",
+ "W=314.16;\n",
+ "PV=14.14; # PEAK VALUE\n",
+ "t=0.0025; # TIME\n",
+ "i=PV*math.sin(W*t); # CURRENT\n",
+ "T=0.0175; # TOTAL TIME\n",
+ "I=PV*math.sin(W*T);\n",
+ "print '%s %.2f' %('ii) CURRNT (i) is = ',i);\n",
+ "print '%s %.2f' %('ii) CURRNT (I) is = ',I);"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) CURRNT (i) is = 10.00\n",
+ "ii) CURRNT (I) is = -10.00\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E12 : Pg 66"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-12 PG NO-66-67\n",
+ "import math \n",
+ "W1=80*math.pi; # womega\n",
+ "W2=100*math.pi;\n",
+ "PV=14.14; # peak value\n",
+ "t1=0.025; # time\n",
+ "t2=0.05;\n",
+ "t3=0.075;\n",
+ "I1=PV*(math.cos(80.*math.pi*t1)+math.cos(100.*math.pi*t1)); # current\n",
+ "I2=PV*(math.cos(80.*math.pi*t2)+math.cos(100.*math.pi*t2)); # current\n",
+ "I3=PV*(math.cos(80.*math.pi*t3)+math.cos(100.*math.pi*t3)); # current\n",
+ "print '%s %.2f %s' %('ii) CURRNT (I) is = ',I1,' A');\n",
+ "print '%s %.2f %s' %('ii) CURRNT (I) is = ',I2,' A ');\n",
+ "print '%s %.2f %s' %('ii) CURRNT (I) is = ',I3,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) CURRNT (I) is = 14.14 A\n",
+ "ii) CURRNT (I) is = 0.00 A \n",
+ "ii) CURRNT (I) is = 14.14 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E13 : Pg 67"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-13 PG NO-67\n",
+ "T=20.*10.**-3.; # TIME PERIOD\n",
+ "Ta=300.*10.**-3.; # TOTAL AREA\n",
+ "A=(Ta)/T; # AVERAGE VALUE\n",
+ "print '%s %.2f %s' %('ii) AVERAGE VALUE (A) is = ',A,' V ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) AVERAGE VALUE (A) is = 15.00 V \n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E14 : Pg 67"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-14 PG NO-67\n",
+ "Ta=5.; # TOTAL AREA\n",
+ "T=20.*10.**-3.; # TIME\n",
+ "Av=Ta/T; # AVERAGE VALUE\n",
+ "Ev=(Av)**0.5; # EFFECTIVE VALUE\n",
+ "FF=Ev/15.; # FORM FACTOR\n",
+ "print '%s %.2f' %('ii) AVERAGE VALUE (Av) is = ',Av);\n",
+ "print '%s %.2f %s' %('ii) EFFECTIVE VALUE (Ev) is = ',Ev,'V');\n",
+ "print '%s %.2f' %('ii) FORM FACTOR (FF) is = ',FF);"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) AVERAGE VALUE (Av) is = 250.00\n",
+ "ii) EFFECTIVE VALUE (Ev) is = 15.81 V\n",
+ "ii) FORM FACTOR (FF) is = 1.05\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E15 : Pg 68"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math \n",
+ "Eav=50.; # in volts\n",
+ "T=2; # time\n",
+ "E=((1./T)*2500.*2.66)**0.5; # energy # integrate('0','t',2)=2.66 \n",
+ "print '%s %.2f %s' %('i) Energy = ',E,'V ');\n",
+ "FF=E/Eav; # form factor\n",
+ "print '%s %.2f' %('i) Form Factor = ',FF);"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Energy = 57.66 V \n",
+ "i) Form Factor = 1.15\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E16 : Pg 68"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-16 PG NO 68\n",
+ "import math \n",
+ "Eav=2.5; # AVERAGE ENERGY\n",
+ "E=8.333;\n",
+ "print '%s %.2f %s' %('i) ENERGY (E) is = ',math.sqrt(E),' V ');\n",
+ "FF=math.sqrt(E)/Eav;\n",
+ "print '%s %.2f' %('ii) Form Factor (FF) is = ',FF);"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) ENERGY (E) is = 2.89 V \n",
+ "ii) Form Factor (FF) is = 1.15\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E17 : Pg 69"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-17 PG NO-69\n",
+ "I1=10.; # CURRENT\n",
+ "I2=-4.;\n",
+ "I3=2.;\n",
+ "I4=0;\n",
+ "T=8.; # TIME\n",
+ "Irms=(((I1*I1*2)+(I2*I2*2)+(I3*I3*2)+(I4*I4*2))/T)**0.5; # RMS\n",
+ "print '%s %.2f %s' %('ii) CURRENT R.M.S (Irms) is = ',Irms,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) CURRENT R.M.S (Irms) is = 5.48 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E20 : Pg 70"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-20 PG NO-70\n",
+ "import math \n",
+ "T=0.03; # TIME\n",
+ " # (1000*integrate('0','t',0.01,0.01))**2=-0.333\n",
+ " # 100*integrate('0.01','t',0.02,0.02)=-1\n",
+ " # integrate('0.02', '',0.03,0.03)]=0\n",
+ "V=(-0.33-1.)/T;\n",
+ "print '%s %.2f %s' %('i) Voltage (V) is = ',V,' V ');\n",
+ "print '%s %.2f %s' %('i) Square Root of Voltage (V) is = ',math.sqrt(-V),' seconds ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (V) is = -44.33 V \n",
+ "i) Square Root of Voltage (V) is = 6.66 seconds \n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E21 : Pg 70"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-21 PG NO-70\n",
+ "import math \n",
+ "T=0.05; # TIME\n",
+ " # (400*integrate('0','t',0.025,))**2=--0.8333\n",
+ " # 100*integrate('0.01','t',0.02,0.02)=-1.738\n",
+ "V=(-0.833-1.738*10**-86)/T;\n",
+ "print '%s %.2f %s' %('i) Voltage (V) is = ',V,' V ');\n",
+ "print '%s %.2f %s' %('i) Square Root of Voltage (V) is = ',math.sqrt(-V),' seconds ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (V) is = -16.66 V \n",
+ "i) Square Root of Voltage (V) is = 4.08 seconds \n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E22 : Pg 70"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# EXAMPLE 2-22 PG NO-70-71\n",
+ "import math \n",
+ "A=math.pi/2.;\n",
+ " # integrate(wt)=math.pi/6\n",
+ "Eavg=1./A*(math.pi+math.pi)/6.;\n",
+ "print '%s %.2f %s' %('i) Average Energy (Eavg) is =',Eavg,' Em ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Average Energy (Eavg) is = 0.67 Em \n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E23 : Pg 71"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-23 PG NO-71\n",
+ "import math \n",
+ "A=math.pi/2;\n",
+ " # [integrate('0',wt,'math.pi/3')]**2=math.pi/9\n",
+ " # integrate('math.pi/3',wt,'math.pi/2')=math.pi/6;\n",
+ "E=1./A*((math.pi/9.)+(math.pi/6.));\n",
+ "print '%s %.2f %s' %('i) Energy (E) is = ',E,' ');\n",
+ "print '%s %.2f' %('ii) Square Energy (E) is = ',math.sqrt(E));\n",
+ "FF=(math.sqrt(E)*3.)/2.;\n",
+ "print '%s %.2f' %('iii) FORM FACTOR (FF) is = ',FF);"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Energy (E) is = 0.56 \n",
+ "ii) Square Energy (E) is = 0.75\n",
+ "iii) FORM FACTOR (FF) is = 1.12\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E24 : Pg 71"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-24 PG NO 71\n",
+ "# integration of is=1008sinQ**2=0.5\n",
+ "import math \n",
+ "I=150.; # CURRENT\n",
+ "print '%s %.2f %s' %('i) CURRENT (I**2) is = ',I,' A ');\n",
+ "print '%s %.2f %s' %('ii) CURRENT (I) is = ',math.sqrt(I),' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (I**2) is = 150.00 A \n",
+ "ii) CURRENT (I) is = 12.25 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E25 : Pg 72"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-25 PG NO-72\n",
+ "V1=50.+1j*0;\n",
+ "V2=37.5-1j*64.95;\n",
+ "X=V1+V2; # ADDITION OF V1&V2\n",
+ "print 'ii) ADDITION (X) is in polar form = ',X,' V '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) ADDITION (X) is in polar form = (87.5-64.95j) V \n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E26 : Pg 72"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-26 PG NO-72\n",
+ "import math \n",
+ "V=200.;\n",
+ "R=100.;\n",
+ "R1=500.;\n",
+ "R2=0.9009; # resistance\n",
+ "RMS1=V/(R+R); # RMS\n",
+ "print '%s %.2f %s' %('ii) CURRENT R.M.S in forward (R.M.S.1) is = ',RMS1,' A ');\n",
+ "RMS2=-V/(R+R1);\n",
+ "print '%s %.2f %s' %('ii) CURRENT R.M.S in Backward (R.M.S.2) is = ',RMS2,' A ');\n",
+ "I1=RMS1*R2; # Current\n",
+ "print '%s %.2f %s' %('ii) Average CURRENT in forward (I1) is = ',I1,' A ');\n",
+ "I2=RMS2*R2;\n",
+ "print '%s %.2f %s' %('ii) Average CURRENT in Backward (I2) is = ',I2,' A ');\n",
+ "A=(I1+I2)/2; # Ammeter\n",
+ "print '%s %.2f %s' %('ii) Reading of moving coil ammeter (A) is = ',A,' A ');\n",
+ "HA=(0.5*(RMS1+(RMS2)**2))**0.5; # HOT AMMETER\n",
+ "print '%s %.2f %s' %('ii) Reading of hot wire ammeter (H.A) is = ',HA,' A ');\n",
+ "P=0.5*((RMS1*V)+(RMS2*RMS2*600)); # POWER\n",
+ "print '%s %.2f %s' %('ii) TOTAL AVERAGE POWER (P) is = ',P,' W ');\n",
+ "P1=0.5*((RMS1*R)+(RMS2*RMS2*R1));\n",
+ "print '%s %.2f %s' %('ii) TOTAL POWER dissipated in rectifier (P) is = ',P1,' W ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) CURRENT R.M.S in forward (R.M.S.1) is = 1.00 A \n",
+ "ii) CURRENT R.M.S in Backward (R.M.S.2) is = -0.33 A \n",
+ "ii) Average CURRENT in forward (I1) is = 0.90 A \n",
+ "ii) Average CURRENT in Backward (I2) is = -0.30 A \n",
+ "ii) Reading of moving coil ammeter (A) is = 0.30 A \n",
+ "ii) Reading of hot wire ammeter (H.A) is = 0.75 A \n",
+ "ii) TOTAL AVERAGE POWER (P) is = 133.33 W \n",
+ "ii) TOTAL POWER dissipated in rectifier (P) is = 77.78 W \n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E27 : Pg 74"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-27 PG NO 74\n",
+ "import math \n",
+ "F=50.\n",
+ "V=230.; # voltage\n",
+ "R=20.; # resisance\n",
+ "I=V/R; # current\n",
+ "P=V*I; # power\n",
+ "Im=I*1.414; # Maximum current\n",
+ "W=2.*math.pi*F;\n",
+ "print '%s %.2f %s' %(' current is = ',I,' A');\n",
+ "print '%s %.2f %s' %(' POWER is = ',P,' W');\n",
+ "print '%s %.2f %s' %(' MAXIMUM CURENT is = ',Im,' A');\n",
+ "print '%s %.2f %s' %(' W is = ',W,' ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " current is = 11.50 A\n",
+ " POWER is = 2645.00 W\n",
+ " MAXIMUM CURENT is = 16.26 A\n",
+ " W is = 314.16 \n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E28 : Pg 76"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-28 PG NO-76\n",
+ "import math \n",
+ "F=50.; # Frequency\n",
+ "L=0.2; # inductance\n",
+ "XL1=500.;\n",
+ "XL=(2*math.pi*F*L); \n",
+ "f=XL1/(2.*math.pi*L); # FREQUENCY\n",
+ "print '%s %.2f %s' %(' XL is = ',XL,' ohms');\n",
+ "print '%s %.2f %s' %(' frequency is = ',f,' Hz');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " XL is = 62.83 ohms\n",
+ " frequency is = 397.89 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E29 : Pg 77"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-29 PG NO=77-78\n",
+ "import math \n",
+ "V=230.;\n",
+ "F=50.; # Frequency\n",
+ "C=10.*10.**-6.; # Capacitor\n",
+ "Xc=1./(math.pi*2.*F*C);\n",
+ "Bc=1./Xc;\n",
+ "I=V/Xc; # susceptance current\n",
+ "print '%s %.2f %s'%(' Xc is = ',Xc,' ohms');\n",
+ "print '%s %.2e %s'%(' Bc is = ',Bc,' siemens');\n",
+ "print '%s %.2f %s'%(' Current is = ',I,' A');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Xc is = 318.31 ohms\n",
+ " Bc is = 3.14e-03 siemens\n",
+ " Current is = 0.72 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E30 : Pg 81"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-30 PG NO-81-82\n",
+ "from math import pi,cos,sin\n",
+ "V=230.+1j*0;\n",
+ "F=50.;\n",
+ "L=0.03;\n",
+ "R=20.;\n",
+ "XL=2.*pi*F*L;\n",
+ "print'i) INDUCTANCE (XL) is in polar form = ',XL,' ohm '\n",
+ "Z=R+1j*XL;\n",
+ "print'ii) IMPEDANCE (Z) is in polar form = ',Z,' ohm '\n",
+ "Y=1/Z;\n",
+ "print'iii) ADMITTANCE (Y) is in polar form = ',Y,' siemens '\n",
+ "I=V/Z;\n",
+ "print'iv) CURRENT (I) is in polar form = ',I,'A '\n",
+ "Vr=I*R;\n",
+ "print'v) VOLTAGE (Vr) is in polar form = ',Vr,' V '\n",
+ "VL=1j*XL*I\n",
+ "print'vi) VOLTAGE (VL) is in polar form = ',VL,' V '\n",
+ "Q=25.23; # TETA\n",
+ "PF=cos(Q);\n",
+ "print'vi) POWER FACTOR (PF) is = ',PF,' lagging '\n",
+ "P=V*I*cos(Q); # ACTIVE POWER\n",
+ "print'vi) ACTIVE POWER (P) is in polar form = ',P,' W '\n",
+ "q=V*I*sin(Q)\n",
+ "print'vi) REACTIVE POWER (q) is in polar form = ',q,' W '\n",
+ "S=230*10.4;\n",
+ "print'vi) APPARENT POWER (S) is in polar form = ',S,' VA '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) INDUCTANCE (XL) is in polar form = 9.42477796077 ohm \n",
+ "ii) IMPEDANCE (Z) is in polar form = (20+9.42477796077j) ohm \n",
+ "iii) ADMITTANCE (Y) is in polar form = (0.0409143171878-0.0192804177456j) siemens \n",
+ "iv) CURRENT (I) is in polar form = (9.4102929532-4.43449608149j) A \n",
+ "v) VOLTAGE (Vr) is in polar form = (188.205859064-88.6899216297j) V \n",
+ "vi) VOLTAGE (VL) is in polar form = (41.7941409359+88.6899216297j) V \n",
+ "vi) POWER FACTOR (PF) is = 0.995274092769 lagging \n",
+ "vi) ACTIVE POWER (P) is in polar form = (2154.13877979-1015.11398481j) W \n",
+ "vi) REACTIVE POWER (q) is in polar form = (210.172000308-99.0412218237j) W \n",
+ "vi) APPARENT POWER (S) is in polar form = 2392.0 VA \n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E31 : Pg 82"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-31 PG NO=82\n",
+ "Z1=20.15+1j*15.18;\n",
+ "Z2=6.99+1j*17.29;\n",
+ "Z=Z1+Z2; # impedance\n",
+ "V=230+1j*0;\n",
+ "I=V/Z; # Current\n",
+ "PF=0.64; # Power Factotr\n",
+ "S=V*I; # Apparent Power\n",
+ "P=S*PF; # Active Power\n",
+ "print' Impedanceis in rectangular form = ',Z,' ohm'\n",
+ "print' current is in rectangular form = ',I,' A'\n",
+ "print' S is in rectangular form = ',S,'VA'\n",
+ "print' POWER is in rectangular form = ',P,'W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Impedanceis in rectangular form = (27.14+32.47j) ohm\n",
+ " current is in rectangular form = (3.4855480307-4.17007164911j) A\n",
+ " S is in rectangular form = (801.676047062-959.116479296j) VA\n",
+ " POWER is in rectangular form = (513.07267012-613.834546749j) W\n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E32 : Pg 83"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-32 PG NO-83\n",
+ "cos30=0.866;\n",
+ "sin30=0.5;\n",
+ "E1=141.42+1j*0;\n",
+ "E2=144.566+1j*11.976;\n",
+ "V=E1+141.42*(cos30 * sin30 );\n",
+ "print'1) Voltage is in rectangular form = ',V,'W'\n",
+ "Z=8+1j*6; # IMPEDANCE\n",
+ "I=V/Z;\n",
+ "print'1) Current is in rectangular form = ',I,'A'\n",
+ "P=I*V*0.743;\n",
+ "print' POWER is in rectangular form = ',P,'W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "1) Voltage is in rectangular form = (202.65486+0j) W\n",
+ "1) Current is in rectangular form = (16.2123888-12.1592916j) A\n",
+ " POWER is in rectangular form = (2441.14090122-1830.85567591j) W\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E33 : Pg 84"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-33 PG NO-84-85\n",
+ "from math import pi\n",
+ "V=230.+1j*0; # Voltage\n",
+ "F=50.; # Frequency\n",
+ "C=10.**-4.; # Capacitor\n",
+ "R=10.; # Resistance\n",
+ "XC=1./(2.*pi*F*C); # Capacitor\n",
+ "print'i) CAPACITOR (XC) is in polar form = ',XC,'ohm '\n",
+ "Z=R-1j*XC; # Impedance\n",
+ "print'ii) IMPEDANCE (Z) is in polar form = ',Z,' ohm '\n",
+ "Y=1/Z; # Admittance\n",
+ "print'iii) ADMITTANCE (Y) is in polar form = ',Y,' siemens '\n",
+ "I=V/Z; # current\n",
+ "print'iv) CURRENT (I) is in polar form = ',I,' A '\n",
+ "Vr=I*R; # Voltage\n",
+ "print'v) VOLTAGE (Vr) is in polar form = ',Vr,' V '\n",
+ "VC=1j*XC*I # Voltage\n",
+ "print'vi) VOLTAGE (VL) is in polar form = ',VC,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CAPACITOR (XC) is in polar form = 31.8309886184 ohm \n",
+ "ii) IMPEDANCE (Z) is in polar form = (10-31.8309886184j) ohm \n",
+ "iii) ADMITTANCE (Y) is in polar form = (0.00898301623537+0.0285938287547j) siemens \n",
+ "iv) CURRENT (I) is in polar form = (2.06609373414+6.57658061358j) A \n",
+ "v) VOLTAGE (Vr) is in polar form = (20.6609373414+65.7658061358j) V \n",
+ "vi) VOLTAGE (VL) is in polar form = (-209.339062659+65.7658061358j) V\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E34 : Pg 85"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-34 PG NO-85\n",
+ "V=80.+1j*60; # voltage\n",
+ "I=-4.+1j*10; # current\n",
+ "Z=V/I; # Impedance\n",
+ "PF=0.26; # power factor\n",
+ "P=V*I*PF; # Power\n",
+ "print' IMPEDANCE is in rectangular form = ',Z,'ohm'\n",
+ "print' POWER is in rectangular form = ',P,' W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " IMPEDANCE is in rectangular form = (2.41379310345-8.96551724138j) ohm\n",
+ " POWER is in rectangular form = (-239.2+145.6j) W\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E : Pg 86"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE-2-35 PG NO-86\n",
+ "from math import pi,sqrt\n",
+ "Vr=100.; # VOLTAGE\n",
+ "P=300.; # POWER\n",
+ "I=P/Vr; # CURRENT\n",
+ "V=240.; # voltage\n",
+ "F=50.; # frequency\n",
+ "Z=V/I; # IMPEDANCE\n",
+ "R=Vr/I;\n",
+ "Xc=(Z**2.-R**2.)**0.5;\n",
+ "C=1./(2.*F*pi*Xc); # CAPACITOR\n",
+ "Vc=((V*V)-(Vr*Vr))**0.5;\n",
+ "Vm=sqrt(2.)*Vc;\n",
+ "Qm=(sqrt(2.)*Vc)*(C); # CHARGE\n",
+ "Em=0.5*(Xc*Vm*Vm); # MAXIMUM ENERGY\n",
+ "print'i) CURRENT (I) is = ',round(I,2),'A'\n",
+ "print'ii) IMPEDANCE (Z) is = ',round(Z,2),'ohm'\n",
+ "print'iii) RESISTANCE (R) is = ',round(R,2),'ohm'\n",
+ "print'i) CAPACITOR (Xc) is = ',round(Xc,2),'ohm'\n",
+ "print'i) CAPACITOR (C) is = ',round(C,2),'F'\n",
+ "print'i) VOLTAGE (Vc) is = ',round(Vc,2),'V'\n",
+ "print'i) MAXIMUM VOLTAGE (Vm) is = ',round(Vm),'V'\n",
+ "print'i) MAXIMUM CHARGE (Qm) is = ',round(Qm,2),'C'\n",
+ "print'i) MAXIMUM ENERGY (Em) is = ',round(Em,2),'J'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (I) is = 3.0 A\n",
+ "ii) IMPEDANCE (Z) is = 80.0 ohm\n",
+ "iii) RESISTANCE (R) is = 33.33 ohm\n",
+ "i) CAPACITOR (Xc) is = 72.72 ohm\n",
+ "i) CAPACITOR (C) is = 0.0 F\n",
+ "i) VOLTAGE (Vc) is = 218.17 V\n",
+ "i) MAXIMUM VOLTAGE (Vm) is = 309.0 V\n",
+ "i) MAXIMUM CHARGE (Qm) is = 0.01 C\n",
+ "i) MAXIMUM ENERGY (Em) is = 3461697.98 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E36 : Pg 87"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-36 PG NO-87\n",
+ "from math import pi\n",
+ "F=50.; # FREQUENCY\n",
+ "L=0.2; # INDUCTANCE\n",
+ "C=150.*10.**-6.; # CAPACITOR\n",
+ "R=20.;\n",
+ "V=230.;\n",
+ "XL=2.*pi*L*F;\n",
+ "print'i) INDUCTANCE (XL) is = ',XL,' ohm '\n",
+ "XC=1./(2.*pi*F*C)\n",
+ "print'i) CAPACITOR (Xc) is = ',XC,' ohm '\n",
+ "Z=R+1j*(XL-XC)\n",
+ "print'i) IMPEDANCE (Z) is in polar form = ',Z,' ohm '\n",
+ "I=V/Z; # CURRENT\n",
+ "print'i) CURRENT (I) is in polar form = ',I,' ohm '\n",
+ "AP=V*I; # APPARENT POWER\n",
+ "print'i) Apparent Power (AP) is in polar form = ',AP,' VA '\n",
+ "P=V*I*0.433; # active power\n",
+ "print'i) ACTIVE POWER (P) is in polar form = ',P,' W '\n",
+ "Q=V*I*0.9013; # Reactive Power\n",
+ "print'i) Reactive Power (Q) is in polar form = ',Q,' vars '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) INDUCTANCE (XL) is = 62.8318530718 ohm \n",
+ "i) CAPACITOR (Xc) is = 21.2206590789 ohm \n",
+ "i) IMPEDANCE (Z) is in polar form = (20+41.6111939929j) ohm \n",
+ "i) CURRENT (I) is in polar form = (2.15811326221-4.49008348061j) ohm \n",
+ "i) Apparent Power (AP) is in polar form = (496.366050307-1032.71920054j) VA \n",
+ "i) ACTIVE POWER (P) is in polar form = (214.926499783-447.167413834j) W \n",
+ "i) Reactive Power (Q) is in polar form = (447.374721142-930.789815447j) vars \n"
+ ]
+ }
+ ],
+ "prompt_number": 30
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E37 : Pg 88"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-37 PG NO-88\n",
+ "Xc=4.;\n",
+ "XL=6.;\n",
+ "R=2.; # RESISTANCE\n",
+ "v=8.48+1j*30.;\n",
+ "Z=R+1j*(XL-Xc); # IMPEDANCE\n",
+ "V=v;\n",
+ "I=V/Z; # CURRENT\n",
+ "VL=1j*I*XL;\n",
+ "Vc=-1j*I*Xc;\n",
+ "P=V*I*0.707; # ACTIVE POWER\n",
+ "print'i) Active Power = ',P,' W'\n",
+ "print'ii) Impedance = ',Z,' ohm'\n",
+ "print'iii) Current is = ',I,' A'\n",
+ "print'iv) VL is = ',VL,' V'\n",
+ "print'v)Vc is = ',Vc,' V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Active Power = (-56.4344368+236.2952368j) W\n",
+ "ii) Impedance = (2+2j) ohm\n",
+ "iii) Current is = (9.62+5.38j) A\n",
+ "iv) VL is = (-32.28+57.72j) V\n",
+ "v)Vc is = (21.52-38.48j) V\n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E38 : Pg 88"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-38 PG N0-88-89\n",
+ "Z=12.-1j*5;\n",
+ "V=100.; # VOLTAGE\n",
+ "I=V/Z; # CURRENT\n",
+ "print'i) CURRENT (I) is in polar form = ',I,'A'\n",
+ "Z1=4.+1j*3;\n",
+ "Z2=6.-1j*8; # impedance\n",
+ "V1=I*Z1;\n",
+ "print'i) voltage (V1) is in polar form = ',V1,' V '\n",
+ "V2=I*Z2; # voltage\n",
+ "print'i) voltage (V2) is in polar form = ',V2,' V '\n",
+ "V3=2.*I; # voltage\n",
+ "print'i) voltage (V3) is in polar form = ',V3,' V '\n",
+ "P=V*I*0.9230; # ACTIVE POWER\n",
+ "print'i) Active Power (P) is in polar form = ',P,' W '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (I) is in polar form = (7.10059171598+2.95857988166j) A\n",
+ "i) voltage (V1) is in polar form = (19.5266272189+33.1360946746j) V \n",
+ "i) voltage (V2) is in polar form = (66.2721893491-39.0532544379j) V \n",
+ "i) voltage (V3) is in polar form = (14.201183432+5.91715976331j) V \n",
+ "i) Active Power (P) is in polar form = (655.384615385+273.076923077j) W \n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E39 : Pg 89"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE-2-39 PG NO-89\n",
+ "V=7.07;\n",
+ "I=4.24;\n",
+ "W=500;\n",
+ "S=V*I;\n",
+ "cosQ=0.6428;\n",
+ "sinQ=0.766;\n",
+ "P=S*cosQ; # ACTIVE POWER\n",
+ "Q=S*sinQ; # REACTIVE POWER\n",
+ "Z=V/I; # IMPEDANCE\n",
+ "R=Z*cosQ; # RESISTANCE\n",
+ "Xc=Z*sinQ; # Xc\n",
+ "C=1/(W*Xc); # CAPACITOR\n",
+ "P2 =S*(cosQ-1); # NEGATIVE PEAK POWER\n",
+ "P3 =S*(cosQ+1); # POSITIVE PEAK POWER\n",
+ "P1=(P3 +P2)/2; # POWER\n",
+ "S1=(P3-P1); # apparent power\n",
+ "print' S is = ',round(S,2),' VA'\n",
+ "print' ACTIVE POWER is = ',round(P,2),' W'\n",
+ "print' REACTIVE POWER is = ',round(Q,2),' VAr'\n",
+ "print' IMPEDANCE is = ',round(Z,2),' ohm'\n",
+ "print' RESISTANCE is = ',round(R,2),'ohm '\n",
+ "print' Xc is = ',round(Xc,2),' ohm'\n",
+ "print' CAPACITOR is = ',round(C,2),' F'\n",
+ "print' POWER CURVE is = ',round(P2,2),' W'\n",
+ "print' POWER CURVE is = ',round(P3,2),' W'\n",
+ "print' POWER is = ',round(P1,2),' W'\n",
+ "print' S is = ',round(S1,2),' VA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " S is = 29.98 VA\n",
+ " ACTIVE POWER is = 19.27 W\n",
+ " REACTIVE POWER is = 22.96 VAr\n",
+ " IMPEDANCE is = 1.67 ohm\n",
+ " RESISTANCE is = 1.07 ohm \n",
+ " Xc is = 1.28 ohm\n",
+ " CAPACITOR is = 0.0 F\n",
+ " POWER CURVE is = -10.71 W\n",
+ " POWER CURVE is = 49.25 W\n",
+ " POWER is = 19.27 W\n",
+ " S is = 29.98 VA\n"
+ ]
+ }
+ ],
+ "prompt_number": 33
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E40 : Pg 89"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-40 PG NO-89-90\n",
+ "V1=52.33-1j*34.15878;\n",
+ "Z1=7.5-1j*9.999; # IMPEDANCE\n",
+ "Z2=3.488+1j*12; # IMPEDANCE\n",
+ "Z3=11.99+1j*5;\n",
+ "V2=(Z2/Z1)*V1;\n",
+ "print'i) voltage (V2) is in polar form = ',V2,' V '\n",
+ "V3=(Z3/Z1)*V1; # voltage\n",
+ "print'ii) voltage (V3) is in polar form = ',V3,' V '\n",
+ "V=V1+V2+V3; # total voltage\n",
+ "print'i) voltage (V) is in polar form = ',V,' V '\n",
+ "Z=Z1+Z2+Z3; # Total Impedance\n",
+ "print'i) IMPEDANCE (Z) is in polar form = ',Z,' V '\n",
+ "Y=1./Z; # Admittance\n",
+ "print'i) Y (Y) is in polar form = ',Y,' ohm '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) voltage (V2) is in polar form = (-4.12462353773+62.3429419475j) V \n",
+ "ii) voltage (V3) is in polar form = (47.786719967+43.9874187666j) V \n",
+ "i) voltage (V) is in polar form = (95.9920964292+72.1715807141j) V \n",
+ "i) IMPEDANCE (Z) is in polar form = (22.978+7.001j) V \n",
+ "i) Y (Y) is in polar form = (0.0398230520619-0.0121333966179j) ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 34
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E41 : Pg 90"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-41 PG NO-90\n",
+ "import math \n",
+ "F1=50.; # frequency\n",
+ "W=(2.*math.pi*F1);\n",
+ "L=1.; # inductar\n",
+ "C=10.**-6.; # capacitor\n",
+ "XL1=W*L;\n",
+ "Xc1=1./(W*C);\n",
+ "Z1=XL1-Xc1;\n",
+ "F2=1000.;\n",
+ "XL2=(2.*math.pi*F2*L);\n",
+ "Xc2=1./(2.*math.pi*F2*C);\n",
+ "Z2=(XL2-Xc2); # impedance\n",
+ "print' IMPEDANCE(Z1) is = ',round(Z1,2),'ohm'\n",
+ "print' IMPEDANCE(Z2) is = ',round(Z2,2),'ohm'\n",
+ "print' XL1 is = ',round(XL1,2),'ohm'\n",
+ "print' Xc1 is = ',round(Xc1,2),'ohm'\n",
+ "print' XL2 is = ',round(XL2,2),'ohm'\n",
+ "print' Xc2 is = ',round(Xc2,2),'ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " IMPEDANCE(Z1) is = -2868.94 ohm\n",
+ " IMPEDANCE(Z2) is = 6124.03 ohm\n",
+ " XL1 is = 314.16 ohm\n",
+ " Xc1 is = 3183.1 ohm\n",
+ " XL2 is = 6283.19 ohm\n",
+ " Xc2 is = 159.15 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 35
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E42 : Pg 90"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-42 PG NO-90\n",
+ "import math \n",
+ "F=50.; # frequency\n",
+ "C=100.*10.**-6.; # capacitor\n",
+ "W=(2.*math.pi*F);\n",
+ "Xc=1./(W*C);\n",
+ "R=19.1; # resistance\n",
+ "XL=25.46;\n",
+ "L=XL/(2.*math.pi*F); # inductance\n",
+ "print' Xc is = ',round(Xc,2),'ohms'\n",
+ "print' INDUCTANCE is = ',round(L,2),'H'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Xc is = 31.83 ohms\n",
+ " INDUCTANCE is = 0.08 H\n"
+ ]
+ }
+ ],
+ "prompt_number": 36
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E43 : Pg 91"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-43 PG NO-91\n",
+ "R1=6.; # RESISTANCE\n",
+ "R2=3.; # RESISTANCE\n",
+ "R3=8.; # RESISTANCE\n",
+ "Z1=7.; # IMPEDANCE\n",
+ "Z2=5.; # IMPEDANCE\n",
+ "Z3=10.; # IMPEDANCE\n",
+ "V=7.;\n",
+ "I=1.;\n",
+ "PF1=R1/Z1; # POWER FACTOR\n",
+ "print'i) Power Factor (PF1) is = ',round(PF1,2)\n",
+ "PD1=V*I*0.857; # POWER dissipated\n",
+ "print'i) Power Dissipated (PD1) is = ',round(PD1,2),'W'\n",
+ "PF2=R2/Z2;\n",
+ "print'iii) Power Factor (PF2) is = ',round(PF2,2),'W'\n",
+ "PD2=Z2*PF2;\n",
+ "print'i) Power Dissipated (PD2) is = ',round(PD2,2),'W'\n",
+ "PF3=R3/Z3;\n",
+ "print'iii) Power Factor (PF3) is = ',round(PF3,2),'W'\n",
+ "PD3=Z3*PF3;\n",
+ "print'i) Power Dissipated (PD3) is = ',round(PD3,2),' W '\n",
+ "A=(Z1**2-R1**2)**0.5;\n",
+ "print'i) REACTANCE OF COIL (A) is = ',round(A,2),' ohm '\n",
+ "B=(Z2**2-R2**2)**0.5;\n",
+ "print'i) REACTANCE OF COIL (B) is = ',round(B,2),' ohm '\n",
+ "C=(Z3**2-R3**2)**0.5;\n",
+ "print'i) REACTANCE OF COIL (C) is = ',round(C,2),' ohm '\n",
+ "TR=R1+R2+R3; # TOTAL RESISTANCE\n",
+ "print'i) TOTAL RESISTANCE (TR) is = ',round(TR,2),' ohm '\n",
+ "TRC=A+B+C; # TOTAL RACTANCE\n",
+ "print'i) TOTAL REACTANCE (TRC) is = ',round(TRC,2),' ohm '\n",
+ "TI=(TR**2+TRC**2)**0.5; # TOTAL IMPEADNCE\n",
+ "print'i) TOTAL IMPEDANCE (TI) is = ',round(TI,2),'ohm' \n",
+ "PF=TR/TI;# POWER FACTOR \n",
+ "print'i) POWER FACTOR (PF) is = ',round(PF,2),'lagging'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Power Factor (PF1) is = 0.86\n",
+ "i) Power Dissipated (PD1) is = 6.0 W\n",
+ "iii) Power Factor (PF2) is = 0.6 W\n",
+ "i) Power Dissipated (PD2) is = 3.0 W\n",
+ "iii) Power Factor (PF3) is = 0.8 W\n",
+ "i) Power Dissipated (PD3) is = 8.0 W \n",
+ "i) REACTANCE OF COIL (A) is = 3.61 ohm \n",
+ "i) REACTANCE OF COIL (B) is = 4.0 ohm \n",
+ "i) REACTANCE OF COIL (C) is = 6.0 ohm \n",
+ "i) TOTAL RESISTANCE (TR) is = 17.0 ohm \n",
+ "i) TOTAL REACTANCE (TRC) is = 13.61 ohm \n",
+ "i) TOTAL IMPEDANCE (TI) is = 21.77 ohm\n",
+ "i) POWER FACTOR (PF) is = 0.78 lagging\n"
+ ]
+ }
+ ],
+ "prompt_number": 37
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E44 : Pg 91"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-44 PG NO 91-92\n",
+ "import math \n",
+ "R=20.; # Resistance\n",
+ "V=125.; # VOLTAGE\n",
+ "I=2.2; # CURRENT\n",
+ "Z=V/I; # IMPEDANCE\n",
+ "print'i) Impedance is = ',round(Z,2)\n",
+ "F=50.; # FREQUENCY\n",
+ "XC=53.18\n",
+ "C=1./(2.*math.pi*F*XC); # CAPACITANCE\n",
+ "print'ii) Capacitor is = ',round(C,2),'F'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Impedance is = 56.82\n",
+ "ii) Capacitor is = 0.0 F\n"
+ ]
+ }
+ ],
+ "prompt_number": 38
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E45 : Pg 92"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-45 PG NO-92\n",
+ "import math \n",
+ "I=10.; # CURRENT \n",
+ "R=5.; # RESISTANCE\n",
+ "P=I*I*R; # POWER\n",
+ "IL=250.; # IRON LOSS\n",
+ "Z=20.;\n",
+ "r=5.;\n",
+ "F=50.;\n",
+ "W=2.*math.pi*F;\n",
+ "p1=750.;\n",
+ "v=200.; # voltage\n",
+ "L=(Z*Z-r*r)**0.5/W; # iductance\n",
+ "cosQ=p1/(v*I);\n",
+ "print' power is = ',round(P,2),'W'\n",
+ "print' inductance is = ',round(L,2),'H'\n",
+ "print' cos Q is = ',round(cosQ,2),'lagging'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " power is = 500.0 W\n",
+ " inductance is = 0.06 H\n",
+ " cos Q is = 0.38 lagging\n"
+ ]
+ }
+ ],
+ "prompt_number": 39
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E46 : Pg 92"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # Example 2-46 PG NO-92\n",
+ "from math import sin,pi,sqrt \n",
+ "Z=50.+1j*49.95; # IMPEDANCE\n",
+ "V=283.; # VOLTAGE \n",
+ "T=1.; # ASSUMING\n",
+ "i=(V/70.675)*(sin(100.*pi-44.97));\n",
+ "print'i) Current (i) is in polar form = ',i,'A'\n",
+ "P=(V/sqrt(2))*(4/sqrt(2.))*(0.707);\n",
+ "print'ii) POWER (P) is = ',P,'W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Current (i) is in polar form = -3.3425967922 A\n",
+ "ii) POWER (P) is = 400.162 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 40
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E47 : Pg 92"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-47 PG NO 92\n",
+ "import math \n",
+ "V=100./math.sqrt(2.); # VOLTAGE\n",
+ "F=100.; # FREQUENCY\n",
+ "L=0.018; # INDUCTANCE\n",
+ "XL=2.*math.pi*F*L;\n",
+ "print'i) INDUCTANCE (XL) is in polar form = ',XL,'ohm'\n",
+ "I=V/((11.3+1j*11.3));# current\n",
+ "print'ii) CURRENT (I) is in polar form = ',I,'A'\n",
+ "VR=I*10.; # voltage\n",
+ "print'i) Voltage Across Resister (VR) is = ',VR,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) INDUCTANCE (XL) is in polar form = 11.3097335529 ohm\n",
+ "ii) CURRENT (I) is in polar form = (3.1287910672-3.1287910672j) A\n",
+ "i) Voltage Across Resister (VR) is = (31.287910672-31.287910672j) V\n"
+ ]
+ }
+ ],
+ "prompt_number": 41
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E49 : Pg 93"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-49 PG NO-93\n",
+ "import math \n",
+ "K=0.35; # CONSTANT\n",
+ "L1=0.1; # INDUCTANCE\n",
+ "L2=0.2; # INDUCTANCE\n",
+ "M=K*(L1*L2)**0.5;\n",
+ "V=125.; # VOLTAGE\n",
+ "F=50.; # FREQUENCY\n",
+ "L=0.2; # TOTAL INDUCTANCE\n",
+ "I=V/(2.*math.pi*F*L); # CURRENT\n",
+ "print' M is = ',round(M,2),'H'\n",
+ "print' current is = ',round(I,2),'A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " M is = 0.05 H\n",
+ " current is = 1.99 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 42
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E51 : Pg 94"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # example 2-51 pg no-94\n",
+ "import math \n",
+ "V=230.+1j*0; # VOLTAGE\n",
+ "F=50.; # FREQUENCY\n",
+ "C=10.**-4.; # CAPACITOR\n",
+ "R=10.; # RESISTANCE\n",
+ "#cos(72.56)=0.299;\n",
+ "XC=1./(2.*math.pi*F*C);\n",
+ "print'i) INDUCTANCE (XC) is = ',XC,'ohm'\n",
+ "Z=R-1j*XC; # impedance\n",
+ "print'i) IMPEDANCE (Z) is in rectangular form = ',Z,'ohm'\n",
+ "Y=1/Z; # admittance\n",
+ "print'i) ADMITTANCE (Y) is in rectangular form = ',Y,'ohm'\n",
+ "I=V/Z; # CURRENT\n",
+ "print'i) CURRENT (I) is in rectangular form = ',I,'A'\n",
+ "PF=0.299; # POWER FACTOR\n",
+ "print'i) POWER FACTOR (PF) is = ',PF,'leading'\n",
+ "S=V*I; # APPARENT POWER\n",
+ "print'i) APPARENT POWER (S) is IN rectangular FORM = ',S,'VA'\n",
+ "P=V*I*0.3; # ACTIVE POWER\n",
+ "print'i) ACTIVE POWER (P) is in rectangular form = ',P,'W'\n",
+ "Q=V*I*-0.1315; # REACTIVE POWER\n",
+ "print'i) REACTIVE POWER (Q) is in rectangular form = ',Q,'vars'\n",
+ "Vr=I*R;\n",
+ "print'i) VOLTAGE (Vr) is in rectangular form = ',Vr,'V'\n",
+ "Vc=-1j*I*XC;\n",
+ "print'i) VOLTAGE (Vc) is = ',Vc,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) INDUCTANCE (XC) is = 31.8309886184 ohm\n",
+ "i) IMPEDANCE (Z) is in rectangular form = (10-31.8309886184j) ohm\n",
+ "i) ADMITTANCE (Y) is in rectangular form = (0.00898301623537+0.0285938287547j) ohm\n",
+ "i) CURRENT (I) is in rectangular form = (2.06609373414+6.57658061358j) A\n",
+ "i) POWER FACTOR (PF) is = 0.299 leading\n",
+ "i) APPARENT POWER (S) is IN rectangular FORM = (475.201558851+1512.61354112j) VA\n",
+ "i) ACTIVE POWER (P) is in rectangular form = (142.560467655+453.784062337j) W\n",
+ "i) REACTIVE POWER (Q) is in rectangular form = (-62.4890049889-198.908680658j) vars\n",
+ "i) VOLTAGE (Vr) is in rectangular form = (20.6609373414+65.7658061358j) V\n",
+ "i) VOLTAGE (Vc) is = (209.339062659-65.7658061358j) V\n"
+ ]
+ }
+ ],
+ "prompt_number": 43
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E52 : Pg 96"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# EXAMPLE 2-52 PG NO-96\n",
+ "W=1000.;\n",
+ "L=0.02;\n",
+ "XL=W*L;\n",
+ "Z=4.85;\n",
+ "V=(100./1.414);\n",
+ "I=(20.62/1.414);\n",
+ "#cos(14.06)=0.97; # \n",
+ "P=V*I*0.97;\n",
+ "z=1.18;\n",
+ "Leq=z/W;\n",
+ "print' XL is = ',round(XL,2),'ohms'\n",
+ "print' POWER is = ',round(P,2),'W' \n",
+ "print' Leq is = ',round(Leq,2),'H'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " XL is = 20.0 ohms\n",
+ " POWER is = 1000.37 W\n",
+ " Leq is = 0.0 H\n"
+ ]
+ }
+ ],
+ "prompt_number": 44
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E53 : Pg 97"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-53 PG NO=97\n",
+ "import math \n",
+ "R=15.; # RESISTANCE\n",
+ "V=240+1j*0; # VOLTAGE\n",
+ "I=22.1;\n",
+ "Ir=V/R; # CURENT\n",
+ "print'i) CURRENT (Ir) is = ',Ir,'A'\n",
+ "IL=(I**2.-Ir**2.)**0.5;\n",
+ "print'i) CURRENT (IL) is = ',IL,'A'\n",
+ "XL=V/IL;\n",
+ "print'i) INDUCTANCE (XL) is = ',XL,'ohm'\n",
+ "L=XL/(2.*math.pi*50.);\n",
+ "print'i) INDUCTANCE (L) is = ',L,'H'\n",
+ "IL1=(34.**2.-Ir**2.)**0.5;\n",
+ "print'i) INDUCTANCE (IL1) is = ',IL1,'A'\n",
+ "F=8./(2.*math.pi*0.05);\n",
+ "print'i) FREQUENCY (F) is = ',F,'Hz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (Ir) is = (16+0j) A\n",
+ "i) CURRENT (IL) is = (15.2449991801+0j) A\n",
+ "i) INDUCTANCE (XL) is = (15.7428673603+0j) ohm\n",
+ "i) INDUCTANCE (L) is = (0.0501111031767+0j) H\n",
+ "i) INDUCTANCE (IL1) is = (30+0j) A\n",
+ "i) FREQUENCY (F) is = 25.4647908947 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 45
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E54 : Pg 98"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-54 PG NO-98\n",
+ "from math import pi\n",
+ "C=159.*10.**-6.; # capacitor\n",
+ "F=50.; # frequency\n",
+ "Xc=1./(2.*pi*F*C);\n",
+ "Z=8.94; # impedance\n",
+ "V=100.; # voltage\n",
+ "I=V/Z; # Current\n",
+ "PF=0.894 # power factor\n",
+ "S=V*I; \n",
+ "P=V*I*PF;\n",
+ "Q=V*I*(-0.447);\n",
+ "print' CURRENT is = ',round(P,2),'A'\n",
+ "print' APPARENT POWER is = ',round(S,2),'VA'\n",
+ "print' active power is = ',round(P,2),'W'\n",
+ "print' reactive power is = ',round(Q,2),'vars'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " CURRENT is = 1000.0 A\n",
+ " APPARENT POWER is = 1118.57 VA\n",
+ " active power is = 1000.0 W\n",
+ " reactive power is = -500.0 vars\n"
+ ]
+ }
+ ],
+ "prompt_number": 46
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E55 : Pg 99"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-55 PG NO-99\n",
+ "\n",
+ "Q=72.4;\n",
+ "tanQ=3.1524;\n",
+ "W=3000.;\n",
+ "C=35.*10.**-6.;\n",
+ "Xc=1./(W*C);\n",
+ "R=3.1524*Xc\n",
+ "print'i) CAPACITOR (XC) is = ',round(Xc,2),'ohm'\n",
+ "print'i) RESISTANCE (R) is = ',round(R,2),'ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CAPACITOR (XC) is = 9.52 ohm\n",
+ "i) RESISTANCE (R) is = 30.02 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 47
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E56 : Pg 100"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-56 PG NO-99-100\n",
+ "import math \n",
+ "V=230.+1j*0;\n",
+ "R=15.+1j*0;\n",
+ "L=1j*7.5;\n",
+ "Ir=V/R;\n",
+ "Z1=-1j*12.\n",
+ "print'i) CURRENT (Ir) is = ',Ir,' A'\n",
+ "IL=V/L;\n",
+ "print'i) INDUCTANCE CURRENT (IL) is = ',IL,'A'\n",
+ "Ic=V/Z1;\n",
+ "print'i) CAPACITOR CURRENT (Ic) is = ',Ic,'A'\n",
+ "I=Ir+IL+Ic;\n",
+ "print'i) CURRENT (I) is = ',I,'A'\n",
+ "Z=V/I;\n",
+ "print'i) IMPEDANCE (Z) is = ',Z,'A'\n",
+ "PF=0.8;\n",
+ "Leq=7.2/(2.*math.pi*50.);\n",
+ "print'i) EQUIVALENT CURRENT (Ieq) is = ',Leq,'H'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (Ir) is = (15.3333333333+0j) A\n",
+ "i) INDUCTANCE CURRENT (IL) is = -30.6666666667j A\n",
+ "i) CAPACITOR CURRENT (Ic) is = (-0+19.1666666667j) A\n",
+ "i) CURRENT (I) is = (15.3333333333-11.5j) A\n",
+ "i) IMPEDANCE (Z) is = (9.6+7.2j) A\n",
+ "i) EQUIVALENT CURRENT (Ieq) is = 0.0229183118052 H\n"
+ ]
+ }
+ ],
+ "prompt_number": 48
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E57 : Pg 100"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-57 PG N0-100-101\n",
+ "V=240.+1j*0;\n",
+ "R=400.+1j*0;\n",
+ "Z1=1j*50.;\n",
+ "Z2=-1j*40.;\n",
+ "IR=V/R;\n",
+ "print'i) CURRENT (IR) is = ',IR,'A'\n",
+ "IL=V/Z1;\n",
+ "print'i) CURRENT (IL) is = ',IL,'A'\n",
+ "IC=V/Z2;\n",
+ "print'i) CURRENT (IC) is = ',IC,'A'\n",
+ "I=IR+IL+IC;\n",
+ "print'i) CURRENT (I) is = ',I,'A'\n",
+ "Z=V/I;\n",
+ "print'i) IMPEDANCE (Z) is = ',Z,'ohms'\n",
+ "Y=1/Z;\n",
+ "print'i) ADMITTANCE (Y) is = ',Y,'ohm'\n",
+ "S=V*I;\n",
+ "print'i) APPARENT POWER (S) is = ',S,'VA'\n",
+ "P=V*I*0.448;\n",
+ "print'i) ACTIVE POWER (P) is = ',P,'W'\n",
+ "Q=V*I*-0.94;\n",
+ "print'i) REACTIVE POWER (Q) is = ',Q,'vars'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (IR) is = (0.6+0j) A\n",
+ "i) CURRENT (IL) is = -4.8j A\n",
+ "i) CURRENT (IC) is = (-0+6j) A\n",
+ "i) CURRENT (I) is = (0.6+1.2j) A\n",
+ "i) IMPEDANCE (Z) is = (80-160j) ohms\n",
+ "i) ADMITTANCE (Y) is = (0.0025+0.005j) ohm\n",
+ "i) APPARENT POWER (S) is = (144+288j) VA\n",
+ "i) ACTIVE POWER (P) is = (64.512+129.024j) W\n",
+ "i) REACTIVE POWER (Q) is = (-135.36-270.72j) vars\n"
+ ]
+ }
+ ],
+ "prompt_number": 49
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E58 : Pg 101"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-58 PG NO-101-102\n",
+ "Z1=2.+1j*3;\n",
+ "Z2=1.-1j*5;\n",
+ "Z3=4.+1j*2;\n",
+ "Zeq=(Z2*Z3)/(Z2+Z3);\n",
+ "print'i) IMPEDANCE EQUVALENT (Zeq) is = ',Zeq,'ohms '\n",
+ "Z=Z1+Zeq;\n",
+ "print'i) TOTAL IMPEDANCE (Z) is = ',Z,'ohm '\n",
+ "V=10.;\n",
+ "R=5.65+1j*1.588;\n",
+ "I=V/R;\n",
+ "print'i) CURRENT (I) is = ',I,'A'\n",
+ "VBC=I*Zeq;\n",
+ "print'i) VOLTAGE (VBC) is = ',VBC,'V'\n",
+ "I2=VBC/Z2;\n",
+ "print'i) CURRENT (I2) is = ',I2,'A'\n",
+ "I3=VBC/Z3;\n",
+ "print'i) CURRENT (I3) is in polar form = ',I3,'A'\n",
+ "S=V*I;\n",
+ "print'i) APPARENT POWER (S) is in polar form = ',S,'VA'\n",
+ "P=V*I*0.963;\n",
+ "print'i) ACTIVE POWER (P) is in polar form = ',P,'W'\n",
+ "Q=V*I*-0.27;\n",
+ "print'i) REACTIVE POWER (Q) is in polar form = ',Q,'vars'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) IMPEDANCE EQUVALENT (Zeq) is = (3.64705882353-1.41176470588j) ohms \n",
+ "i) TOTAL IMPEDANCE (Z) is = (5.64705882353+1.58823529412j) ohm \n",
+ "i) CURRENT (I) is = (1.64033212632-0.46103494099j) A\n",
+ "i) VOLTAGE (VBC) is = (5.33151489694-3.99718455136j) V\n",
+ "i) CURRENT (I2) is = (0.973747602067+0.871553458976j) A\n",
+ "i) CURRENT (I3) is in polar form = (0.666584524253-1.33258839997j) A\n",
+ "i) APPARENT POWER (S) is in polar form = (16.4033212632-4.6103494099j) VA\n",
+ "i) ACTIVE POWER (P) is in polar form = (15.7963983765-4.43976648174j) W\n",
+ "i) REACTIVE POWER (Q) is in polar form = (-4.42889674106+1.24479434067j) vars\n"
+ ]
+ }
+ ],
+ "prompt_number": 50
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E59 : Pg 103"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-59 PG NO-103\n",
+ "import math \n",
+ "C1=15.5*10**3;\n",
+ "L=1000.;\n",
+ "V=230.;\n",
+ "PL1=10.; # active load power\n",
+ "PL2=6.; # active load power\n",
+ "QL1=7.5; # reactive load power\n",
+ "QL2=8.; # reactiveload power\n",
+ "P=PL1+PL2; # total active power\n",
+ "Q=QL1+QL2; # total reactive power\n",
+ "AP=(P*P+Q*Q)**0.5; # total apparent power\n",
+ "I=(AP*L)/V; # TOTAL CURRENT\n",
+ "Ic=(C1/V);\n",
+ "Xc=V/Ic;\n",
+ "K=16.;\n",
+ "C=1./(2.*math.pi*50.*Xc);\n",
+ "I1=(L*K)/V;\n",
+ "print' total active power is = ',round(P,2),'KW'\n",
+ "print' total reactive power is = ',round(Q,2),'K var'\n",
+ "print' total apparent power is = ',round(AP,2),'KVA'\n",
+ "print' total current(I) is = ',round(P,2),'A'\n",
+ "print' Ic is = ',round(P,2),'A'\n",
+ "print' Xc is = ',round(Xc,2),'ohm'\n",
+ "print' capacitor is = ',round(C,2),'F'\n",
+ "print' current(I1) is = ',round(I1,2),'A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " total active power is = 16.0 KW\n",
+ " total reactive power is = 15.5 K var\n",
+ " total apparent power is = 22.28 KVA\n",
+ " total current(I) is = 16.0 A\n",
+ " Ic is = 16.0 A\n",
+ " Xc is = 3.41 ohm\n",
+ " capacitor is = 0.0 F\n",
+ " current(I1) is = 69.57 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 51
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E60 : Pg 103"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-60 PG NO-103-104\n",
+ "Z1=6.+1j*8;\n",
+ "V=230.; # VOLTAGE\n",
+ "Y1=1./Z1;\n",
+ "print'i) ADMITTANCE (Y1) is = ',Y1,' siemens '\n",
+ "G1=0.06;\n",
+ "B1=-0.08;\n",
+ "Z2=4.-1j*3;\n",
+ "Y2=1./Z2;\n",
+ "print'ii) ADMITTANCE (Y2) is = ',Y2,' siemens '\n",
+ "G2=0.16;\n",
+ "B2=0.12;\n",
+ "TL=G1+G2; # TOTAL CONDUCTANCE\n",
+ "print'iii) TOTAL CONDUCTANCE (TL) is = ',TL,' siemens'\n",
+ "TS=B1+B2; # TOTAL SUSCEPTANCE\n",
+ "print'iv) TOTAL SUSCEPTANCE (TS) is = ',TS,' siemens '\n",
+ "I1=V*Y1; # CURRENT\n",
+ "print'v) CURRENT (I1) is = ',I1,' A '\n",
+ "I2=V*Y2;\n",
+ "print'vi) CURRENT (I2) is = ',I2,' A '\n",
+ "TI=I1+I2; # TOTAL CURRENT\n",
+ "print'vii) TOTAL CURRENT (TI) is = ',TI,' A '\n",
+ "PF=0.983;#cos(degree(10.3));\n",
+ "print'i) POWER FACTOR (PF) is = ',PF,' leading '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) ADMITTANCE (Y1) is = (0.06-0.08j) siemens \n",
+ "ii) ADMITTANCE (Y2) is = (0.16+0.12j) siemens \n",
+ "iii) TOTAL CONDUCTANCE (TL) is = 0.22 siemens\n",
+ "iv) TOTAL SUSCEPTANCE (TS) is = 0.04 siemens \n",
+ "v) CURRENT (I1) is = (13.8-18.4j) A \n",
+ "vi) CURRENT (I2) is = (36.8+27.6j) A \n",
+ "vii) TOTAL CURRENT (TI) is = (50.6+9.2j) A \n",
+ "i) POWER FACTOR (PF) is = 0.983 leading \n"
+ ]
+ }
+ ],
+ "prompt_number": 52
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E61 : Pg 104"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-61 PG NO-104-105\n",
+ "V=100.+1j*0;\n",
+ "Zab=1.6+1j*7.2;\n",
+ "Yab=1./Zab;\n",
+ "print'i) ADMITTANCE (Yab) is in polar form = ',Yab,' siemens'\n",
+ "Zcd=4.+1j*3;\n",
+ "Ycd=1./Zcd;\n",
+ "print'i) ADMITTANCE (Ycd) is in polar form = ',Ycd,' siemens '\n",
+ "Zef=6.-1j*8;\n",
+ "Yef=1./Zef;\n",
+ "print'i) ADMITTANCE (Yef) is in polar form = ',Yef,' siemens '\n",
+ "Ybg=Yef+Ycd;\n",
+ "print'i) ADMITTANCE (Ybg) is in polar form = ',Ybg,' siemens '\n",
+ "Zbg=1./Ybg;\n",
+ "print'i) IMPEDANCE (Zbg) is in polar form = ',Zbg,' ohms '\n",
+ "TZ=1.6+1j*7.2+4.4+1j*0.8;\n",
+ "print'i) TOTAL IMPEDANCE (TZ) is in polar form = ',TZ,' ohms '\n",
+ "TI=V/TZ;\n",
+ "print'i) TOTAL CURRENT (TI) is in polar form = ',TI,' A '\n",
+ "Icd=TI*(Zef/(Zcd+Zef))\n",
+ "print'i) CURRENT (Icd) is in polar form = ',Icd,' A '\n",
+ "Ief=TI*(Zcd/(Zcd+Zef));\n",
+ "print'i) CURRENT (Ief) is in polar form = ',Ief,' A '\n",
+ "Pab=TI*TI*1.6;\n",
+ "print'i) POWER (Pab) is in polar form = ',Pab,' W '\n",
+ "Pcd=Icd*Icd*4;\n",
+ "print'i) POWER (Pcd) is in polar form = ',Pcd,' W '\n",
+ "Pef=Ief*Ief*6;\n",
+ "print'i) POWER (Pef) is in polar form = ',Pef,' W '\n",
+ "TP=Pab+Pcd+Pef;\n",
+ "print'i) TOTAL POWER (TP) is in polar form = ',TP,' W '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) ADMITTANCE (Yab) is in polar form = (0.0294117647059-0.132352941176j) siemens\n",
+ "i) ADMITTANCE (Ycd) is in polar form = (0.16-0.12j) siemens \n",
+ "i) ADMITTANCE (Yef) is in polar form = (0.06+0.08j) siemens \n",
+ "i) ADMITTANCE (Ybg) is in polar form = (0.22-0.04j) siemens \n",
+ "i) IMPEDANCE (Zbg) is in polar form = (4.4+0.8j) ohms \n",
+ "i) TOTAL IMPEDANCE (TZ) is in polar form = (6+8j) ohms \n",
+ "i) TOTAL CURRENT (TI) is in polar form = (6-8j) A \n",
+ "i) CURRENT (Icd) is in polar form = (1.6-8.8j) A \n",
+ "i) CURRENT (Ief) is in polar form = (4.4+0.8j) A \n",
+ "i) POWER (Pab) is in polar form = (-44.8-153.6j) W \n",
+ "i) POWER (Pcd) is in polar form = (-299.52-112.64j) W \n",
+ "i) POWER (Pef) is in polar form = (112.32+42.24j) W \n",
+ "i) TOTAL POWER (TP) is in polar form = (-232-224j) W \n"
+ ]
+ }
+ ],
+ "prompt_number": 53
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E62 : Pg 105"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-62 PG NO-105-106\n",
+ "Z1=24.+1j*18;\n",
+ "Z2=24.-1j*10;\n",
+ "Z3=2.-1j*0.148;\n",
+ "R1=24.;\n",
+ "R2=24.;\n",
+ "R3=32.;\n",
+ "R4=16.;\n",
+ "V=2.;\n",
+ "v1=128.3;\n",
+ "I=2.;\n",
+ "I3=32.+1j*24;\n",
+ "I4=16.-1j*30;\n",
+ "Z=Z1+Z2;\n",
+ "print'i) IMPEDANCE (Z) is in polar form = ',Z,' ohms '\n",
+ "I1=(Z2/(Z1+Z2))*Z3;\n",
+ "print'i) CURRENT (I1) is in polar form = ',I1,' ohms '\n",
+ "I2=(Z1/(Z1+Z2))*Z3;\n",
+ "print'i) CURRENT (I2) is in polar form = ',I2,' ohms '\n",
+ "P1=I1*I1*R1;\n",
+ "print'i) POWER (P1) is in polar form = ',P1,' W '\n",
+ "P2=I2*I2*R2;\n",
+ "print'i) POWER (P2) is in polar form = ',P2,' W '\n",
+ "P3=V*V*R3;\n",
+ "print'i) POWER (P3) is in polar form = ',P3,' W '\n",
+ "P4=V*V*R4;\n",
+ "print'i) POWER (P4) is in polar form = ',P4,' W '\n",
+ "P=P1+P2+P3+P4;\n",
+ "print'i) TOTAL POWER (P) is in polar form = ',P,' W '\n",
+ "V1=I1*Z1;\n",
+ "print'i) VOLTAGE (V1) is in polar form = ',V1,' V '\n",
+ "V2=V1;\n",
+ "print'i) VOLTAGE (V2) is in polar form = ',V2,' V '\n",
+ "V3=I3*Z3;\n",
+ "print'i) VOLTAGE (V3) is in polar form = ',V3,' V '\n",
+ "V4=I4*Z3;\n",
+ "print'i) VOLTAGE (V4) is in polar form = ',V4,' V '\n",
+ "V=V1+V4+V3;\n",
+ "print'i%) VOLTAGE (V) is in polar form = ',V,' V '\n",
+ "S=v1*I;\n",
+ "print'i) Apparent Power (S) is = ',S,' VA '\n",
+ "Q=S*0.0726;\n",
+ "print'i) Reactive Power (Q) is = ',Q,' Var '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) IMPEDANCE (Z) is in polar form = (48+8j) ohms \n",
+ "i) CURRENT (I1) is in polar form = (0.863405405405-0.634567567568j) ohms \n",
+ "i) CURRENT (I2) is in polar form = (1.13659459459+0.486567567568j) ohms \n",
+ "i) POWER (P1) is in polar form = (8.22702951059-26.2986752608j) W \n",
+ "i) POWER (P2) is in polar form = (25.3223825917+26.5454432257j) W \n",
+ "i) POWER (P3) is in polar form = 128.0 W \n",
+ "i) POWER (P4) is in polar form = 64.0 W \n",
+ "i) TOTAL POWER (P) is in polar form = (225.549412102+0.246767964938j) W \n",
+ "i) VOLTAGE (V1) is in polar form = (32.1439459459+0.311675675676j) V \n",
+ "i) VOLTAGE (V2) is in polar form = (32.1439459459+0.311675675676j) V \n",
+ "i) VOLTAGE (V3) is in polar form = (67.552+43.264j) V \n",
+ "i) VOLTAGE (V4) is in polar form = (27.56-62.368j) V \n",
+ "i%) VOLTAGE (V) is in polar form = (127.255945946-18.7923243243j) V \n",
+ "i) Apparent Power (S) is = 256.6 VA \n",
+ "i) Reactive Power (Q) is = 18.62916 Var \n"
+ ]
+ }
+ ],
+ "prompt_number": 54
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E63 : Pg 106"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-63 PG NO-106-107\n",
+ "Z1=14.+1j*48;\n",
+ "Z2=30.+1j*40;\n",
+ "Z3=24.+1j*70;\n",
+ "V=230.+1j*0;\n",
+ "Y1=1./Z1;\n",
+ "print'i) ADMITTANCE (Y1) is in polar form = ',Y1,' siemens'\n",
+ "Y2=1./Z2;\n",
+ "print'ii) ADMITTANCE (Y2) is in polar form = ',Y2,' siemens'\n",
+ "Y3=1./Z3;\n",
+ "print'iii) ADMITTANCE (Y3) is in polar form = ',Y3,' siemens'\n",
+ "Y=Y1+Y2+Y3;\n",
+ "print'i) ADMITTANCE (Y) is in polar form = ',Y,' siemens'\n",
+ "Z13=29.763+1j*21.62;\n",
+ "Z14=10.-1j*24;\n",
+ "X=Z13+Z14;\n",
+ "Y=18.+1j*80;\n",
+ "A=8.-1j*6;\n",
+ "print'i) IMPEDANCE (X) is in polar form = ',X,' ohm'\n",
+ "Z=((X*Y)/(X+Y))+A;\n",
+ "print'i) IMPEDANCE (Z) is in polar form = ',Z,' ohm'\n",
+ "I=V/Z;\n",
+ "print'vi) CURRENT (I) is = ',I,' A '\n",
+ "S=V*I;\n",
+ "print'i) Apparent Power (S) is = ',S,' VA '\n",
+ "P=V*I*0.989;\n",
+ "print'i) Active Power (P) is = ',P,' W '\n",
+ "Q=V*I*0.146;\n",
+ "print'i) Reactive Power (Q) is = ',Q,' Var '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) ADMITTANCE (Y1) is in polar form = (0.0056-0.0192j) siemens\n",
+ "ii) ADMITTANCE (Y2) is in polar form = (0.012-0.016j) siemens\n",
+ "iii) ADMITTANCE (Y3) is in polar form = (0.00438276113952-0.0127830533236j) siemens\n",
+ "i) ADMITTANCE (Y) is in polar form = (0.0219827611395-0.0479830533236j) siemens\n",
+ "i) IMPEDANCE (X) is in polar form = (39.763-2.38j) ohm\n",
+ "i) IMPEDANCE (Z) is in polar form = (39.6114255491+5.85051241937j) ohm\n",
+ "vi) CURRENT (I) is = (5.68244535894-0.839283532063j) A \n",
+ "i) Apparent Power (S) is = (1306.96243256-193.035212374j) VA \n",
+ "i) Active Power (P) is = (1292.5858458-190.911825038j) W \n",
+ "i) Reactive Power (Q) is = (190.816515153-28.1831410067j) Var \n"
+ ]
+ }
+ ],
+ "prompt_number": 55
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E64 : Pg 107"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "ZA=15.+1j*15.708;\n",
+ "ZB=20.+1j*0;\n",
+ "V=200.+1j*0;\n",
+ "IA=V/ZA;\n",
+ "print'i) CURRENT (IA) is =',IA,' A '\n",
+ "IB=V/ZB;\n",
+ "print'ii) CURRENT (IB) is =',IB,' A '\n",
+ "I=IA+IB;\n",
+ "print'vi) TOTAL CURRENT (I) is =',I,' A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (IA) is = (6.35941824245-6.6595827835j) A \n",
+ "ii) CURRENT (IB) is = (10+0j) A \n",
+ "vi) TOTAL CURRENT (I) is = (16.3594182425-6.6595827835j) A \n"
+ ]
+ }
+ ],
+ "prompt_number": 56
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E66 : Pg 108"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-66 PG NO-108\n",
+ "I=15.;\n",
+ "Z1=10.+1j*15\n",
+ "Z2=6.-1j*8;\n",
+ "I1=(I*Z2)/(Z1+Z2);\n",
+ "print'ii) CURRENT (I1) is in polar form = ',I1,' A '\n",
+ "I2=(I*Z1)/(Z1+Z2);\n",
+ "print'ii) CURRENT (I2) is in polar form = ',I2,' A '\n",
+ "P1=8.59**2*10;\n",
+ "print'ii) Power (P1) is in polar form = ',P1,' W '\n",
+ "P2=15.49**2*6;\n",
+ "print'ii) Power (P2) is in polar form = ',P2,' W '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) CURRENT (I1) is in polar form = (1.96721311475-8.3606557377j) A \n",
+ "ii) CURRENT (I2) is in polar form = (13.0327868852+8.3606557377j) A \n",
+ "ii) Power (P1) is in polar form = 737.881 W \n",
+ "ii) Power (P2) is in polar form = 1439.6406 W \n"
+ ]
+ }
+ ],
+ "prompt_number": 57
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E67 : Pg 108"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-67 PG NO-108-109\n",
+ "Z1=5.;\n",
+ "V=100.+1j*200;\n",
+ "I1=16.; # CURRENT\n",
+ "P1=I1*I1*Z1;\n",
+ "print'i) POWER (P1) is = ',P1,' W '\n",
+ "P2=5000.-P1;\n",
+ "print'ii) POWER (P2) is = ',P2,' W '\n",
+ "Q1=-69.02;\n",
+ "#cos(-69.02)=0.35;\n",
+ "Z2=Z1/0.358;\n",
+ "print'iii) IMPEDANCE (Z2) is in polar form = ',Z2,' ohms '\n",
+ "X1=Z2*-0.933;\n",
+ "print'i) (X1) is in polar form = ',X1,' ohms '\n",
+ "Z3=5-1j*13.04;\n",
+ "I1=V/Z3;\n",
+ "print'ii) CURRENT (I1) is in polar form = ',I1,' A '\n",
+ "P3=3720;\n",
+ "I2=P3/(223.6*0.8);\n",
+ "print'ii) CURRENT (I2) is in polar form = ',I2,' A '\n",
+ "z2=8.6+1j*6.45;\n",
+ "I3=V/z2;\n",
+ "print'ii) CURRENT (I3) is in polar form = ',I3,' A'\n",
+ "I=I1+I3;\n",
+ "print'ii) CURRENT (I) is in polar form = ',I,' A '\n",
+ "Z=V/I;\n",
+ "print'iii) IMPEDANCE (Z) is in polar form = ',Z,'ohms '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) POWER (P1) is = 1280.0 W \n",
+ "ii) POWER (P2) is = 3720.0 W \n",
+ "iii) IMPEDANCE (Z2) is in polar form = 13.9664804469 ohms \n",
+ "i) (X1) is in polar form = -13.030726257 ohms \n",
+ "ii) CURRENT (I1) is in polar form = (-10.8079507141+11.8128645376j) A \n",
+ "ii) CURRENT (I2) is in polar form = 20.7960644007 A \n",
+ "ii) CURRENT (I3) is in polar form = (18.6046511628+9.3023255814j) A\n",
+ "ii) CURRENT (I) is in polar form = (7.79670044869+21.115190119j) A \n",
+ "iii) IMPEDANCE (Z) is in polar form = (9.87428968497-1.08988463059j) ohms \n"
+ ]
+ }
+ ],
+ "prompt_number": 58
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E68 : Pg 109"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-68 PG NO-109-110\n",
+ "V=100.;\n",
+ "Y1=0.16+1j*0.12;\n",
+ "Y2=-1j*0.15;\n",
+ "I1=V*Y1;\n",
+ "print'i) CURRENT (I1) is in polar form = ',I1,' A '\n",
+ "I2=V*Y2;\n",
+ "print'ii) CURRENT (I2) is in polar form = ',I2,' A '\n",
+ "P=(V*I1*0.8)+(V*I2*0);\n",
+ "print'iii) Power (P) is in polar form = ',P,' W '\n",
+ "I=I1+I2;\n",
+ "print'ii) CURRENT (I) is in polar form = ',I,' A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (I1) is in polar form = (16+12j) A \n",
+ "ii) CURRENT (I2) is in polar form = -15j A \n",
+ "iii) Power (P) is in polar form = (1280+960j) W \n",
+ "ii) CURRENT (I) is in polar form = (16-3j) A \n"
+ ]
+ }
+ ],
+ "prompt_number": 59
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E69 : Pg 110"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-69 PG NO-110\n",
+ "import math \n",
+ "F=50.;\n",
+ "L=0.6;\n",
+ "R=100.;\n",
+ "XL=(math.pi*2.*F*L)\n",
+ "print'i) INDUCTANCE (XL) is = ',XL,' ohm '\n",
+ "V=230.+1j*0;\n",
+ "IR=V/R;\n",
+ "print'ii) CURRENT (IR) is in polar form = ',IR,' A '\n",
+ "IL=V/(0+1j*XL);\n",
+ "print'iii) CURRENT (IL) is in polar form = ',IL,' A '\n",
+ "I=IR+IL;\n",
+ "print'iv) CURRENT (I) is in polar form = ',I,' A '\n",
+ "#cos(degree(27.9))=0.8837;\n",
+ "P=V*I*0.8837;\n",
+ "print'v) POWER (P) is in polar form = ',P,' W '\n",
+ "Z=V/I;\n",
+ "print'vi) IMPEDANCE (Z) is = ',Z,' ohm '\n",
+ "LEQ=41.39/(2.*math.pi*F);\n",
+ "print'ii) INDUCTANCE (LEQ) is = ',LEQ,' H '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) INDUCTANCE (XL) is = 188.495559215 ohm \n",
+ "ii) CURRENT (IR) is in polar form = (2.3+0j) A \n",
+ "iii) CURRENT (IL) is in polar form = -1.22018789704j A \n",
+ "iv) CURRENT (I) is in polar form = (2.3-1.22018789704j) A \n",
+ "v) POWER (P) is in polar form = (467.4773-248.004410261j) W \n",
+ "vi) IMPEDANCE (Z) is = (78.0367372592+41.3997749252j) ohm \n",
+ "ii) INDUCTANCE (LEQ) is = 0.131748461891 H \n"
+ ]
+ }
+ ],
+ "prompt_number": 60
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E70 : Pg 110"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-70 PG NO-110-111\n",
+ "ZA=-1j*227.36; # IMPEDANCE\n",
+ "ZB=-1j*795.77; # IMPEDANCE\n",
+ "ZC=500.; # IMPEDANCE\n",
+ "V=230.+1j*0; # VOLTAGE\n",
+ "IA=V/ZA; # CURRENT\n",
+ "print 'i) CURRENT (IA) is in polar form = ',IA,' A '\n",
+ "IB=V/ZB;\n",
+ "print 'i) CURRENT (IB) is in polar form = ',IB,' A '\n",
+ "IC=V/ZC;\n",
+ "print 'i) CURRENT (IC) is in polar form = ',IC,' A '\n",
+ "I=IA+IB+IC;\n",
+ "print 'i) CURRENT (I) is in polar form = ',I,' A '\n",
+ "P=V*I*0.334;\n",
+ "print 'i) POWER (P) is in polar form = ',P,' W '\n",
+ "Z=V/I;\n",
+ "print 'vi) IMPEDANCE (Z) is = ',Z,' ohm '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (IA) is in polar form = (-0+1.01161154117j) A \n",
+ "i) CURRENT (IB) is in polar form = (-0+0.289028236802j) A \n",
+ "i) CURRENT (IC) is in polar form = (0.46+0j) A \n",
+ "i) CURRENT (I) is in polar form = (0.46+1.30063977797j) A \n",
+ "i) POWER (P) is in polar form = (35.3372+99.9151477437j) W \n",
+ "vi) IMPEDANCE (Z) is = (55.5887198711-157.175870154j) ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 61
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E71 : Pg 111"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-71 PG NO-111\n",
+ "V=240.;\n",
+ "#cos (degree(62.74))=0.458;\n",
+ "Pm=V*2*0.458;\n",
+ "print 'i) POWER (Pm) is in rectangular form = ',Pm,' W '\n",
+ "I=(2.*0.458+1.5)-1j*(2*0.89);\n",
+ "print 'i) CURRENT (I) is in rectangular form = ',I,' A '\n",
+ "P=V*3*0.805\n",
+ "print 'i) Power (P) is in rectangular form = ',P,' W '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) POWER (Pm) is in rectangular form = 219.84 W \n",
+ "i) CURRENT (I) is in rectangular form = (2.416-1.78j) A \n",
+ "i) Power (P) is in rectangular form = 579.6 W \n"
+ ]
+ }
+ ],
+ "prompt_number": 62
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E72 : Pg 111"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-72 PG NO 111\n",
+ "PF=0.5;\n",
+ "cosQ=0.5;\n",
+ "sinQ=0.866;\n",
+ "V=552.;\n",
+ "I=2.3;\n",
+ "v=240;\n",
+ "PF1=0.89;\n",
+ "P=v*I*PF1;\n",
+ "Q=(V*V-P*P)**0.5;\n",
+ "print '%s %.2f %s' %(' ACTIVE POWER is = ',P,' W');\n",
+ "print '%s %.2f %s' %(' REACTIVE POWER is = ',Q,' vars');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " ACTIVE POWER is = 491.28 W\n",
+ " REACTIVE POWER is = 251.69 vars\n"
+ ]
+ }
+ ],
+ "prompt_number": 63
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E73 : Pg 112"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-73 PG NO-112\n",
+ "import math \n",
+ "R=44.074;\n",
+ "V=230.;\n",
+ "I=3.05;\n",
+ "Z=V/I;\n",
+ "Y=2.475;\n",
+ "X=(Z*Z-R*R)**0.5;\n",
+ "L=X/(2.*math.pi*50.) \n",
+ "Xc=V/Y;\n",
+ "C=1./(2.*50.*Xc*math.pi);\n",
+ "print '%s %.2f %s' %(' impedance is = ',Z,' ohm'); \n",
+ "print '%s %.2f %s' %(' X is = ',X,' W'); \n",
+ "print '%s %.2f %s' %('inductance is = ',L,'H '); \n",
+ "print '%s %.2f %s' %(' Xc is = ',Xc,' ohm');\n",
+ "print '%s %.2e %s' %(' Capacitor is = ',C,' F'); "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " impedance is = 75.41 ohm\n",
+ " X is = 61.19 W\n",
+ "inductance is = 0.19 H \n",
+ " Xc is = 92.93 ohm\n",
+ " Capacitor is = 3.43e-05 F\n"
+ ]
+ }
+ ],
+ "prompt_number": 64
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E74 : Pg 112"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-74 PG NO-112\n",
+ "ZA=10.+1j*7.226; # IMPEDANCE\n",
+ "ZB=5.+1j*10.99; # IMPEDANCE\n",
+ "V=200.+1j*0; # VOLTAGE\n",
+ "IA=V/ZA; # CURRENT\n",
+ "print'i) CURRENT (IA) is in polar form = ',IA,' A '\n",
+ "IB=V/ZB;\n",
+ "print'ii) CURRENT (IB) is in polar form = ',IB,' A '\n",
+ "I=IA+IB;\n",
+ "print'iii) CURRENT (I) is in polar form = ',I,' A '\n",
+ "S=V*I;\n",
+ "print'i) Apparent Power (S) is = ',S,' VA '\n",
+ "P=V*I*0.63;\n",
+ "print'i) Active Power (P) is = ',P,' W '\n",
+ "Q=V*I*0.775;\n",
+ "print'i) Reactive Power (Q) is = ',Q,' Var '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (IA) is in polar form = (13.1393029689-9.49446032534j) A \n",
+ "ii) CURRENT (IB) is in polar form = (6.85964682422-15.0775037196j) A \n",
+ "iii) CURRENT (I) is in polar form = (19.9989497931-24.571964045j) A \n",
+ "i) Apparent Power (S) is = (3999.78995863-4914.392809j) VA \n",
+ "i) Active Power (P) is = (2519.86767394-3096.06746967j) W \n",
+ "i) Reactive Power (Q) is = (3099.83721794-3808.65442697j) Var \n"
+ ]
+ }
+ ],
+ "prompt_number": 65
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E75 : Pg 113"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-75 PG NO-113\n",
+ "V=100.+1j*0;\n",
+ "R=3.+1j*2.;\n",
+ "I=V/R;\n",
+ "print'i) CURRENT (I) is in polar form = ',I,' A '\n",
+ "ZA=10.+1j*8.;\n",
+ "ZB=9.-1j*6.;\n",
+ "ZC=3.+1j*2.;\n",
+ "IB=I*(ZA/(ZA+ZB));\n",
+ "print'i) CURRENT (IB) is in polar form = ',IB,' A '\n",
+ "IA=I*(ZB/(ZA+ZB));\n",
+ "print'i) CURRENT (IA) is in polar form = ',IA,' A '\n",
+ "Z=((ZA*ZB)/(ZA+ZB))+ZC;\n",
+ "print'vi) IMPEDANCE (Z) is = ',Z,' ohm '\n",
+ "V1=I*Z;\n",
+ "print'vi)VOLTAGE (V1) is = ',V1,' V '\n",
+ "S=V1*I;\n",
+ "print'i) Apparent Power (S) is = ',S,' VA '\n",
+ "P=V1*I*0.984;\n",
+ "print'i) Active Power (P) is = ',P,' W '\n",
+ "Q=(S**2-P**2)**0.5;\n",
+ "print'i) Reactive Power (Q) is = ',Q,' Var '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (I) is in polar form = (23.0769230769-15.3846153846j) A \n",
+ "i) CURRENT (IB) is in polar form = (18.5879873551-0.337197049526j) A \n",
+ "i) CURRENT (IA) is in polar form = (4.48893572181-15.0474183351j) A \n",
+ "vi) IMPEDANCE (Z) is = (10.2493150685+1.86849315068j) ohm \n",
+ "vi)VOLTAGE (V1) is = (265.268703899-114.562697576j) V \n",
+ "i) Apparent Power (S) is = (4359.08243495-6724.81154251j) VA \n",
+ "i) Active Power (P) is = (4289.33711599-6617.21455783j) W \n",
+ "i) Reactive Power (Q) is = (776.651002751-1198.1493137j) Var \n"
+ ]
+ }
+ ],
+ "prompt_number": 66
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E76 : Pg 113"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "Z1=8.+1j*10.;\n",
+ "Z2=7.+1j*9.;\n",
+ "Z3=5.-1j*2.;\n",
+ "Z=(Z1*Z2)/(Z1+Z2);\n",
+ "print'vi) IMPEDANCE (Z) is in polar form = ',Z,' ohm '\n",
+ "TZ=Z+Z3;\n",
+ "print'vi) TOTAL IMPEDANCE (TZ) is = ',TZ,' ohm '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "vi) IMPEDANCE (Z) is in polar form = (3.7337883959+4.73720136519j) ohm \n",
+ "vi) TOTAL IMPEDANCE (TZ) is = (8.7337883959+2.73720136519j) ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 67
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E77 : Pg 114"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-77 PG NO-114\n",
+ "import math \n",
+ "R=math.sqrt(2.5**2-1.724**2)-0.69;\n",
+ "print '%s %.2f %s' %('i) Resistance (R) is = ',R,' ohm ');\n",
+ "R1=math.sqrt(2.5**2-1.92**2)-0.384;\n",
+ "print '%s %.2f %s' %('ii) Resistance (R1) is = ',R1,' ohm ');\n",
+ "r=5;\n",
+ "PF=(0.69+R)/2.5;\n",
+ "print '%s %.2f %s' %('iii) Power Factor (PF) is = ',PF,' lagging ');\n",
+ "r1=10;\n",
+ "PF1=(0.384+R1)/2.5;\n",
+ "print '%s %.2f %s' %('iv) Power Factor (PF1) is = ',PF1,' lagging ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Resistance (R) is = 1.12 ohm \n",
+ "ii) Resistance (R1) is = 1.22 ohm \n",
+ "iii) Power Factor (PF) is = 0.72 lagging \n",
+ "iv) Power Factor (PF1) is = 0.64 lagging \n"
+ ]
+ }
+ ],
+ "prompt_number": 68
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E78 : Pg 114"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-78 PG NO-114-115\n",
+ "import math \n",
+ "I=10.;\n",
+ "L1=0.0318; # INDUCTANCE\n",
+ "L2=0.0191;\n",
+ "F=50.; # FREQUENCY\n",
+ "C=398.*10.**-6.; # CAPACITOR\n",
+ "XL1=(2.*math.pi*F*L1);\n",
+ "print 'i) INDUCYANCE (XL1) is = ',XL1,' ohm '\n",
+ "XL2=(2.*math.pi*F*L2);\n",
+ "print 'ii) INDUCYANCE (XL2) is = ',XL2,' ohm '\n",
+ "XC=1./(2.*math.pi*F*C);\n",
+ "print 'iii) CAPACITOR (XC) is = ',XC,' ohm '\n",
+ "Z1=5.+1j*6.;\n",
+ "Z2=7.-1j*8.;\n",
+ "Z3=8.+1j*9.99;\n",
+ "Z=((Z1*Z2)/(Z1+Z2))+Z3;\n",
+ "print 'iv) IMPEDANCE (Z) is in polar form = ',Z,' ohm '\n",
+ "VAB=I*Z;\n",
+ "print 'i) VOLTAGE (VAB) is in polar form = ',VAB,' V '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) INDUCYANCE (XL1) is = 9.99026463842 ohm \n",
+ "ii) INDUCYANCE (XL2) is = 6.00044196836 ohm \n",
+ "iii) CAPACITOR (XC) is = 7.99773583376 ohm \n",
+ "iv) IMPEDANCE (Z) is in polar form = (14.7027027027+11.2737837838j) ohm \n",
+ "i) VOLTAGE (VAB) is in polar form = (147.027027027+112.737837838j) V \n"
+ ]
+ }
+ ],
+ "prompt_number": 69
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E79 : Pg 115"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-79 PG NO-115\n",
+ "I2=10.+1j*0;\n",
+ "Z1=7.-1j*8.;\n",
+ "Z2=5.+1j*6.\n",
+ "V=I2*Z1;\n",
+ "print 'i) VOLTAGE (V) is in polar form = ',V,' V '\n",
+ "I1=V/Z2;\n",
+ "print 'i) CURRENT (I1) is in polar form = ',I1,' A '\n",
+ "I=I2-1j*13.44;\n",
+ "print 'i) CURRENT (I) is in polar form = ',I,' A '\n",
+ "VAB=15.57*18.52;\n",
+ "print 'i) VOLTAGE (VAB) is in polar form = ',VAB,' V '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) VOLTAGE (V) is in polar form = (70-80j) V \n",
+ "i) CURRENT (I1) is in polar form = (-2.13114754098-13.4426229508j) A \n",
+ "i) CURRENT (I) is in polar form = (10-13.44j) A \n",
+ "i) VOLTAGE (VAB) is in polar form = 288.3564 V \n"
+ ]
+ }
+ ],
+ "prompt_number": 70
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E80 : Pg 115"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-80 PG NO-115-16\n",
+ "I=12.+1j*0;\n",
+ "X2=13.33;\n",
+ "R=10.+1j*13.33;\n",
+ "V=I*R;\n",
+ "print'i) VOLTAGE (V) is in polar form = ',V,'V'\n",
+ "V1=30.-1j*27.67;\n",
+ "Z1=10.6165+1j*1.5;\n",
+ "R1=V1/Z1;\n",
+ "print'i) RESISTANCE (R1) is in polar form = ',R1,'ohm'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) VOLTAGE (V) is in polar form = (120+159.96j) V\n",
+ "i) RESISTANCE (R1) is in polar form = (2.4094452498-2.9467496703j) ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 71
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E81 : Pg 116"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-81 PG NO-116-117\n",
+ "Z1=10.+1j*10;\n",
+ "Z2=20.+1j*0;\n",
+ "Z3=20.-1j*0.2;\n",
+ "V=100.+1j*0;\n",
+ "I1=V/Z1;\n",
+ "print'i) CURRENT (I1) is in polar form = ',I1,'A'\n",
+ "I2=V/Z2;\n",
+ "print'i) CURRENT (I2) is in polar form = ',I2,'A'\n",
+ "I3=V/Z3;\n",
+ "print'i) CURRENT (I3) is in polar form = ',I3,'A'\n",
+ "I=I1+I2+I3;\n",
+ "print'i) CURRENT (I) is in polar form = ',I,'A'\n",
+ "S=V*I;\n",
+ "print'i) Apparent Power (S) is in polar form = ',S,'A'\n",
+ "P=V*I*0.95;\n",
+ "print'i) Active Power (P) is in polar form = ',P,'W'\n",
+ "Q=(S**2.-P**2.)**0.5;\n",
+ "print'i) Reactive Power (Q) is in polar form = ',Q,'Var'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (I1) is in polar form = (5-5j) A\n",
+ "i) CURRENT (I2) is in polar form = (5+0j) A\n",
+ "i) CURRENT (I3) is in polar form = (4.99950005+0.0499950005j) A\n",
+ "i) CURRENT (I) is in polar form = (14.99950005-4.9500049995j) A\n",
+ "i) Apparent Power (S) is in polar form = (1499.950005-495.00049995j) A\n",
+ "i) Active Power (P) is in polar form = (1424.95250475-470.250474953j) W\n",
+ "i) Reactive Power (Q) is in polar form = (468.359238946-154.56385657j) Var\n"
+ ]
+ }
+ ],
+ "prompt_number": 72
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E82 : Pg 117"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-82 PG NO-117\n",
+ "import math \n",
+ "Z1=4.+1j*314.16; # Impedance\n",
+ "I1=1./Z1; # CURRENT\n",
+ "print'i) Current (I1) is = ',I1,'A'\n",
+ "I2=I1+1j*90; # CURRENT\n",
+ "print'ii) Current (I2) is = ',I2,'A'\n",
+ "Z2=1/I2; # IMPEDANCE\n",
+ "print'i) Impedance (Z2) is = ',Z2,'ohm'\n",
+ "R=310.16; # RESISTANCE\n",
+ "Xc=310.16;\n",
+ "F=50.;\n",
+ "C=1./(2.*math.pi*F*Xc);\n",
+ "print'i) Capacitor (C) is = ',C,'F'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Current (I1) is = (4.05217148089e-05-0.00318257548109j) A\n",
+ "ii) Current (I2) is = (4.05217148089e-05+89.9968174245j) A\n",
+ "i) Impedance (Z2) is = (5.00303466848e-09-0.0111115040356j) ohm\n",
+ "i) Capacitor (C) is = 1.02627639342e-05 F\n"
+ ]
+ }
+ ],
+ "prompt_number": 73
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E83 : Pg 117"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-83 PG NO-117-118\n",
+ "import math \n",
+ "V=125+1j*0;\n",
+ "I1=5+1j*0;\n",
+ "I2=1.2+1j*1.964;\n",
+ "Z2=28.316333-1j*46.344399 ;#V/I2;\n",
+ "print'iv) IMPEDANCE (Z2) is in polar form = ',Z2,'ohm'\n",
+ "R=28.26;\n",
+ "XC=46.43;\n",
+ "F=50;\n",
+ "C=0.0000686 ;#1./(2.*math.pi*F*XC);\n",
+ "print'iv) CAPACITOR (C) is in polar form = ',C,'F'\n",
+ "I=6.2+1j*1.964;#I1+I2;\n",
+ "print'iv) CURRENT (I) is in polar form = ',I,'A'\n",
+ "S=775+1j*245.5;#V*I;\n",
+ "print'i) Apparent Power (S) is in polar form = ',S,'VA'\n",
+ "P=738.575+1j*233.9615;#S*0.953;\n",
+ "print'i) Active Power (P) is in polar form = ',P,'W'\n",
+ "Q=234.05+1j*74.141;#S*0.302;\n",
+ "print'i) Reactive Power (Q) is in polar form = ',Q,'Var'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "iv) IMPEDANCE (Z2) is in polar form = (28.316333-46.344399j) ohm\n",
+ "iv) CAPACITOR (C) is in polar form = 6.86e-05 F\n",
+ "iv) CURRENT (I) is in polar form = (6.2+1.964j) A\n",
+ "i) Apparent Power (S) is in polar form = (775+245.5j) VA\n",
+ "i) Active Power (P) is in polar form = (738.575+233.9615j) W\n",
+ "i) Reactive Power (Q) is in polar form = (234.05+74.141j) Var\n"
+ ]
+ }
+ ],
+ "prompt_number": 74
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E84 : Pg 121"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-84 PG NO 121-122\n",
+ "from math import sqrt,pi \n",
+ "L=0.01; # Inductance\n",
+ "C=0.04*10.**-6.; # Capacitor\n",
+ "Fo=1/(2.*pi*(sqrt(L*C)));\n",
+ "print'i) Resonant Frequency (Fo) is = ',round(Fo,2),'Hz'\n",
+ "Z=50.;\n",
+ "R=Z;\n",
+ "V=100.;\n",
+ "Io=V/R;\n",
+ "print'ii) Current (Io) is = ',round(Io,2),'A'\n",
+ "Fc=(1./(2.*pi))*((1./(L*C))-(R**2./(2.*L**2.)))**0.5;\n",
+ "print'iii) Cutt Frequency (Fc) is = ',round(Fc,2),'Hz'\n",
+ "Z1=50-1j*2.5;\n",
+ "Xc=1/(2.*pi*Fc*C);\n",
+ "print'iv) Xc (Xc) is = ',round(Xc,2)\n",
+ "Vc=1000.0094+1j*50.00047;#(100./Z1)*Xc;\n",
+ "print 'v) VOLTAGE (Vc) is = ',Vc,'V'\n",
+ "FL=1./((2.*pi)*((L*C)-((R**2.*C**2.)/2.))**0.5);\n",
+ "print'vi) Frequency (FL) is = ',round(FL,2),'Hz'\n",
+ "Z2=50.+1j*2.5;\n",
+ "VL=10000.094-1j*500.0047;#(100./Z2)*(2.*pi*FL*0.1);\n",
+ "print'i) VOLTAGE (VL) is = ',VL,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Resonant Frequency (Fo) is = 7957.75 Hz\n",
+ "ii) Current (Io) is = 2.0 A\n",
+ "iii) Cutt Frequency (Fc) is = 7937.83 Hz\n",
+ "iv) Xc (Xc) is = 501.25\n",
+ "v) VOLTAGE (Vc) is = (1000.0094+50.00047j) V\n",
+ "vi) Frequency (FL) is = 7977.72 Hz\n",
+ "i) VOLTAGE (VL) is = (10000.094-500.0047j) V\n"
+ ]
+ }
+ ],
+ "prompt_number": 75
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E85 : Pg 126"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # example 285 pg no-126\n",
+ "import math \n",
+ "I1=0.707;\n",
+ "I2=0.707;\n",
+ "db=20*math.log10(0.707);\n",
+ "print' Ration in db is = ',round(db,2) "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Ration in db is = -3.01\n"
+ ]
+ }
+ ],
+ "prompt_number": 76
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E86 : Pg 126"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-86 PG NO 126\n",
+ "from math import pi \n",
+ "L=0.5; # inductance\n",
+ "C=40.*10.**-6.; # capacitor\n",
+ "Wo=1./(L*C)**0.5;\n",
+ "R=10.; # resistance\n",
+ "V=100.; # voltage\n",
+ "Fo=Wo/(2.*pi); # frequency\n",
+ "Q=(Wo*L)/R;\n",
+ "W2=233.6; # frequency\n",
+ "W1=213.6; # frequency\n",
+ "BW=W2-W1; # Band width\n",
+ "Io=V/R; # current at resonance\n",
+ "Io1=0.707*Io; # current at half power points\n",
+ "V1=Q*V; # voltage aacross inductance at resonance\n",
+ "print' frequency is = ',round(Wo,2),'rad/sec'\n",
+ "print' frequency is = ',round(Fo,2),'Hz'\n",
+ "print' Q is = ',round(Q,2)\n",
+ "print' BAND WIDTH is = ',round(BW,2),'rad/sec'\n",
+ "print' current at resonance is = ',round(Io,2),'A'\n",
+ "print' current at half power points is = ',round(Io1,2),'A'\n",
+ "print'voltage aacross inductance at resonance is = ',round(V1,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " frequency is = 223.61 rad/sec\n",
+ " frequency is = 35.59 Hz\n",
+ " Q is = 11.18\n",
+ " BAND WIDTH is = 20.0 rad/sec\n",
+ " current at resonance is = 10.0 A\n",
+ " current at half power points is = 7.07 A\n",
+ "voltage aacross inductance at resonance is = 1118.03 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 77
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E87 : Pg 127"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-87 PG NO-127 \n",
+ "Wo=1000.;\n",
+ "C=20.*10.**-6.;\n",
+ "R=2.;\n",
+ "V=10.;\n",
+ "L=1./((Wo**2.)*C);\n",
+ "Q=(Wo*L)/R;\n",
+ "I=V/R;\n",
+ "Vr=I*R;\n",
+ "VL=Q*V;\n",
+ "Vc=Q*V;\n",
+ "print' INDUCTANCE is = ',round(L,2),'H'\n",
+ "print' Q is = ',round(Q,2)\n",
+ "print' CURRENT(I) is = ',round(I,2),'A'\n",
+ "print'VOLTAGE ACROSS RESISTANCE is = ',round(Vr,2),'V'\n",
+ "print'VOLTAGE ACROSS INDUCTANCE is = ',round(VL,2),'V'\n",
+ "print' VOLTAGE ACROSS CAPACITANCE is = ',round(Vc,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " INDUCTANCE is = 0.05 H\n",
+ " Q is = 25.0\n",
+ " CURRENT(I) is = 5.0 A\n",
+ "VOLTAGE ACROSS RESISTANCE is = 10.0 V\n",
+ "VOLTAGE ACROSS INDUCTANCE is = 250.0 V\n",
+ " VOLTAGE ACROSS CAPACITANCE is = 250.0 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 78
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E88 : Pg 130"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-88 PG NO-130\n",
+ "L=10.**-3.; # INDUCTANCE\n",
+ "C=20.*10.**-6.; # CAPACITOR\n",
+ "Rc=4.; # CAPACITOR RESISTANCE \n",
+ "RL=6.; # LOAD RESISTANCE\n",
+ "Wo=(1./(L*C)**0.5)*(((RL*RL)-(L/C))/((Rc*Rc)-(L/C)))**0.5;\n",
+ "print' Wo is = ',round(Wo,2),'rad/sec'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Wo is = 4537.43 rad/sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 79
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E89 : Pg 134"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # example 2-89 pg no-134\n",
+ "from math import pi\n",
+ "L=8.*10.**-3.; # INDUCTANCE\n",
+ "C=16.*10.**-9.;\n",
+ "Wo=1./(L*C)**0.5;\n",
+ "R=10.; # RESISTANCE\n",
+ "Fo=Wo/(2.*pi); # FREQUENCY\n",
+ "Q=(Wo*L)/R;\n",
+ "Rp=((R*R)+(Wo*Wo*L*L))/R\n",
+ "Vo1=100.;\n",
+ "BW1=Wo/Q;\n",
+ "R2=10.*10.**3.;\n",
+ "R3=60.*10.**3.;\n",
+ "LR=(Rp*R2)/R3;\n",
+ "Q1=(Q*LR)/Rp\n",
+ "Vo2=16.666;\n",
+ "BW2=Wo/Q1;\n",
+ "print' Wo is = ',round(Wo,2),'rad/sec'\n",
+ "print' Q is = ',round(Q,2)\n",
+ "print' Rp is = ',round(Rp,2),'ohm'\n",
+ "print'BAND WIDTH 1 is = ',round(BW1,2),'rad/sec'\n",
+ "print'Load resistance is = ',round(LR,2),'ohm'\n",
+ "print' Q1 is = ',round(Q1,2)\n",
+ "print'BAND WIDTH2is = ',round(BW2,2),'rad/sec'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Wo is = 88388.35 rad/sec\n",
+ " Q is = 70.71\n",
+ " Rp is = 50010.0 ohm\n",
+ "BAND WIDTH 1 is = 1250.0 rad/sec\n",
+ "Load resistance is = 8335.0 ohm\n",
+ " Q1 is = 11.79\n",
+ "BAND WIDTH2is = 7500.0 rad/sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 80
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E90 : Pg 135"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EX 2-90 PG NO-135\n",
+ "import math \n",
+ "R=20.; # RESISTANCE\n",
+ "Vc=250.; # VOLTAGE\n",
+ "I=1.; # CURRENT\n",
+ "F=50.; # FREQUENCY\n",
+ "W=2.*math.pi*F;\n",
+ "C=1./(W*50.); # CAPACITOR\n",
+ "L=1./(W*W*C); # INDUTANCE\n",
+ "print'W is = ',round(W,2)\n",
+ "print'CAPACITANCE(C) is = ',round(C,2),'F'\n",
+ "print'INDUCTANCE(L) is = ',round(L,2),'H'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "W is = 314.16\n",
+ "CAPACITANCE(C) is = 0.0 F\n",
+ "INDUCTANCE(L) is = 0.16 H\n"
+ ]
+ }
+ ],
+ "prompt_number": 81
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E91 : Pg 135"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-91 PG NO-135\n",
+ "L=10.*10.**-6.; # INDUCTANCE\n",
+ "R=1.; # RESISTANCE\n",
+ "C=10.**4.*10.**-12.; # CAPACITOR\n",
+ "V=100.; # VOLTAGE\n",
+ "Z=L/(C*R); # IMPEDANCE\n",
+ "I=V/Z; # CURRENT\n",
+ "print'IMPEDANCE is = ',round(Z,2),'ohm'\n",
+ "print'CURRENT is = ',round(I,2),'A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "IMPEDANCE is = 1000.0 ohm\n",
+ "CURRENT is = 0.1 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 82
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E92 : Pg 136"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# EXAMPL2-92 PG NO-136\n",
+ "L=0.5;\n",
+ "R=25.;\n",
+ "C=10.**-6.;\n",
+ "Wo= ((L- (R*R*C))/(5.*10.**-6.*(0.5*0.5)))**0.5;\n",
+ "Q=(Wo*L)/R;\n",
+ "BW=Wo/Q;\n",
+ "print'FREQUENCY is = ',round(Wo,2),' rad/sec'\n",
+ "print'Q is = ',round(Q,2)\n",
+ "print'band width is = ',round(BW,2),'rad/sec'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "FREQUENCY is = 632.06 rad/sec\n",
+ "Q is = 12.64\n",
+ "band width is = 50.0 rad/sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 83
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example E93 : Pg 139"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-93 PG NO-139\n",
+ "N1=100.;\n",
+ "Q1=0.05*10.**-3.;\n",
+ "I1=5.;\n",
+ "L1=0.01;\n",
+ "L2=0.01;\n",
+ "K=0.6;\n",
+ "i=1000.; # (di/dt=20/0.02)\n",
+ "M=K*((L1*L2)**0.5);\n",
+ "V=M*i;\n",
+ "print'mutual induction is = ',round(M,2),'H'\n",
+ "print'voltage induce is = ',round(V,2),'v'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "mutual induction is = 0.01 H\n",
+ "voltage induce is = 6.0 v\n"
+ ]
+ }
+ ],
+ "prompt_number": 84
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E94 : Pg 140"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2.94 PG NO-139-140\n",
+ "from math import pi\n",
+ "L=0.6; # LENGTH\n",
+ "a=20.*10.**-4.; # AREA\n",
+ "MU=(4.*pi*10.**-7.);\n",
+ "R=L/(MU*a);\n",
+ "N1=1500.;\n",
+ "N2=500.;\n",
+ "i=250.;\n",
+ "M=(N1*N2)/R;\n",
+ "e=M*(i);\n",
+ "print'R = ',round(R,2)\n",
+ "print'mutual induction is = ',round(M,2),'H'\n",
+ "print'E.M.F INDUCE is = ',round(e,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "R = 238732414.64\n",
+ "mutual induction is = 0.0 H\n",
+ "E.M.F INDUCE is = 0.79 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 85
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E95 : Pg 140"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# EXAMPLE 2-95 PG NO-140\n",
+ "from math import pi\n",
+ "L=1.5; # INDUCTANCE\n",
+ "a=(2000.*0.01);\n",
+ "R=L/(4.*pi*10.**-7.*a); # RESISTANCE\n",
+ "print'i) Resistance (R) is = ',round(R,2),'ohm'\n",
+ "N1=30.;\n",
+ "N2=600.;\n",
+ "M=(N1*N2)/R;\n",
+ "print'ii) M (M) is = ',round(M,2),'H'\n",
+ "e=M*(10./0.01);\n",
+ "print'iii) e (e) is = ',round(e,2),'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Resistance (R) is = 59683.1 ohm\n",
+ "ii) M (M) is = 0.3 H\n",
+ "iii) e (e) is = 301.59 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 86
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E96 : Pg 140 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE-2.96 PG NO-140\n",
+ "M=0.125;\n",
+ "L1=0.2;\n",
+ "L2=0.15;\n",
+ "K=M/((L1*L2)**0.5)\n",
+ "print'i) K = ',round(K,2) "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) K = 0.72\n"
+ ]
+ }
+ ],
+ "prompt_number": 87
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E97 : Pg 140"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE-2.97 PG NO-140\n",
+ "N1=500; # NUMBER OF TURN\n",
+ "N22=1500;\n",
+ "N12=500\n",
+ "Q1=0.6*10**-3; # FLUX OF COIL\n",
+ "I1=5; # CURRENT\n",
+ "Q12=0.3*10**-3;\n",
+ "L1=(N1*Q1)/I1\n",
+ "K=Q12/Q1;\n",
+ "L2=(N22/N12)*L1;\n",
+ "M=K*((L1*L2)**0.5);\n",
+ "print'i) L1 = ',round(L2,2)\n",
+ "print'ii) K = ',round(K,2),'H'\n",
+ "print'iii) L2 = ',round(L2,2),'H' \n",
+ "print'i) M = ',round(M,2),'H'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) L1 = 0.18\n",
+ "ii) K = 0.5 H\n",
+ "iii) L2 = 0.18 H\n",
+ "i) M = 0.05 H\n"
+ ]
+ }
+ ],
+ "prompt_number": 88
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E98 : Pg 141"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # example-2.98 pg no-141\n",
+ "L1=37.5*10.**-3.;\n",
+ "M=63.75*10.**-3.;\n",
+ "K=0.85;\n",
+ "N1=250.;\n",
+ "L2=((M/K)**2.)/L1;\n",
+ "N2=250./((L1/L2)**0.5);\n",
+ "print 'i) L2 = ',round(L2,2)\n",
+ "print 'i) N2 = ',round(N2,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) L2 = 0.15\n",
+ "i) N2 = 500.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 89
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E99 : Pg 141"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# EXAMPLE 2-99 PG NO -141\n",
+ "import math \n",
+ "L1=6.8;\n",
+ "L2=4.5;\n",
+ "C1=19.6;\n",
+ "C2=3;\n",
+ "M=(C1-C2)/4.;\n",
+ "print'i) M (M) is = ',round(M,2),'mH'\n",
+ "K=M/math.sqrt(L1*L2);\n",
+ "print'ii) K (K) is = ',round(K,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) M (M) is = 4.15 mH\n",
+ "ii) K (K) is = 0.75\n"
+ ]
+ }
+ ],
+ "prompt_number": 90
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E100 : Pg 141"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # example 2.100 pg no-141\n",
+ "L1=15.;\n",
+ "L2=35.;\n",
+ "M=10.;\n",
+ "K=M/((L1*L2)**0.5); # coefficient of coupling\n",
+ "print '%s %.2f' %('i) COEFFICENT OF CUPLING (K) = ',K)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) COEFFICENT OF CUPLING (K) = 0.44\n"
+ ]
+ }
+ ],
+ "prompt_number": 91
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E102 : Pg 142"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-102 PG NO-142\n",
+ "import math \n",
+ "L1=0.3;\n",
+ "L2=0.8; # INDUCTANCE\n",
+ "K=0.7;\n",
+ "M=K*math.sqrt(L1*L2);\n",
+ "print '%s %.2f %s' %('i) M (M) is = ',M,' H ');\n",
+ "Lp=((L1*L2)-M**2)/(L1+L2-(2*M));\n",
+ "print '%s %.2f %s' %('ii) Lp (Lp) is = ',Lp,' H ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) M (M) is = 0.34 H \n",
+ "ii) Lp (Lp) is = 0.30 H \n"
+ ]
+ }
+ ],
+ "prompt_number": 92
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E103 : Pg 142"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # Example 2-103 pg no-142\n",
+ "L1=10.;\n",
+ "L2=5.;\n",
+ "L3=6.;\n",
+ "M12=2.;\n",
+ "M23=1.;\n",
+ "M13=1.;\n",
+ "X=1.#X=di/dt\n",
+ "V1=(L1*X)+(M12*X)+(M13*X);\n",
+ "V2=(M12*X)+(L2*X)+(M23*X);\n",
+ "V3=(-M13*X)+(-M23*X)+(L3*X);\n",
+ "V=V1+V2+V3;\n",
+ "Ls=L1+L2+L3+(2.*M12)-(2.*M23)-(2.*M13);\n",
+ "print '%s %.2f ' %('i) V1 = ',V1)\n",
+ "print '%s %.2f ' %('ii) V2 = ',V2)\n",
+ "print '%s %.2f ' %('iii) V3 = ',V3)\n",
+ "print '%s %.2f ' %('iv) V = ',V)\n",
+ "print '%s %.2f %s' %('v)equivlent indutance (Ls) = ',Ls,'mH')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) V1 = 13.00 \n",
+ "ii) V2 = 8.00 \n",
+ "iii) V3 = 4.00 \n",
+ "iv) V = 25.00 \n",
+ "v)equivlent indutance (Ls) = 21.00 mH\n"
+ ]
+ }
+ ],
+ "prompt_number": 93
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E105 : Pg 143"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE-2.105 PG-NO143\n",
+ "N1=250.; # number of turn\n",
+ "I1=2.; # current\n",
+ "Q1=0.3*10.**-3.; # phi\n",
+ "L1=(N1*Q1)/I1;\n",
+ "V2=63.75;\n",
+ "K=0.85;\n",
+ "x=10.**3.; # x=di/dt\n",
+ "M=V2/x;\n",
+ "L2=((V2/K)**2.)/((37.510**-3.)**0.5);\n",
+ "Q12=0.255*10.**-3.;\n",
+ "y=1.275*10.**-7.; # y=dQ12/dt\n",
+ "N2=V2/y;\n",
+ "print '%s %.2f %s' %('i) L1 = ',L1,' Tesla')\n",
+ "print '%s %.2f' %('ii) M = ',M)\n",
+ "print '%s %.2e' %('iii) L2 = ',L2)\n",
+ "print '%s %.2e' %('iv) N2 = ',N2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) L1 = 0.04 Tesla\n",
+ "ii) M = 0.06\n",
+ "iii) L2 = 1.29e+06\n",
+ "iv) N2 = 5.00e+08\n"
+ ]
+ }
+ ],
+ "prompt_number": 94
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E106 : Pg 144"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE-2.106 PG NO-144\n",
+ "import math \n",
+ "Fo=35.59; # frequency in HZ\n",
+ "V=50.;\n",
+ "R=100.;\n",
+ "I=V/R;\n",
+ "L=0.5;\n",
+ "XL=(2.*math.pi*Fo*L);\n",
+ "VI=XL*L; # VOLTAGE ACROSS INDUCTION\n",
+ "XC=XL;\n",
+ "Q=XC/R;\n",
+ "S=L/Q;\n",
+ "W2=323.55; # UPPER HALF REQUENCY\n",
+ "W1=123.65; # LOWER HAL FREQUENCY\n",
+ "BW=W2-W1; # BAND WIDTH\n",
+ "print '%s %.2f %s' %('i) INDUCTION = ',XL, ' ohm ');\n",
+ "print '%s %.2f %s' %('i)VOLTAGE ACROSS INDUCTION = ',VI, ' V ');\n",
+ "print '%s %.2f' %('i) Q = ',Q);\n",
+ "print '%s %.2f %s' %('i) REQUENCY = ',S,' ohm ');\n",
+ "print '%s %.2f %s' %('i) BAND WIDTH = ' ,BW,' rad/sec');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) INDUCTION = 111.81 ohm \n",
+ "i)VOLTAGE ACROSS INDUCTION = 55.90 V \n",
+ "i) Q = 1.12\n",
+ "i) REQUENCY = 0.45 ohm \n",
+ "i) BAND WIDTH = 199.90 rad/sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 95
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E107 : Pg 145"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# EXAMPLE 2-107 PG NO-145\n",
+ "import math \n",
+ "Vm=100.;\n",
+ "RMS=Vm/(math.sqrt(3));\n",
+ "print '%s %.2f' %('i) RMS (RMS) is = ',RMS);\n",
+ "AVG=50.;\n",
+ "FF=RMS/AVG;\n",
+ "print '%s %.2f' %('ii) Form Factor (FF) is = ',FF);"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) RMS (RMS) is = 57.74\n",
+ "ii) Form Factor (FF) is = 1.15\n"
+ ]
+ }
+ ],
+ "prompt_number": 96
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E108 : Pg 146"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-108 PG NO-146\n",
+ "I1=(100./1.414)**2.;\n",
+ "I2=(10./1.414)**2.;\n",
+ "RMS=(I1+I2)**0.5;\n",
+ "print '%s %.2f %s' %('R.M.S VALUE is = ',RMS,'A');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "R.M.S VALUE is = 71.07 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 97
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E109 : Pg 146"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-109 PG NO-146\n",
+ "V=200.;\n",
+ "I=10.;\n",
+ "W=314.;\n",
+ "Z=V/I;\n",
+ "print '%s %.2f %s' %('i) IMPEDANCE (Z) is = ',Z,' ohm ');\n",
+ "R=Z*0.707;\n",
+ "print '%s %.2f %s' %('ii) RESISTANCE (R) is = ',R,' ohm ');\n",
+ "XC=Z*0.707;\n",
+ "print '%s %.2f %s' %('iv) INDUCTANCE (XC) is = ',XC,' ohm ');\n",
+ "C=1./(W*XC);\n",
+ "print '%s %.2f %s' %('iv) CAPACITOR (C) is = ',C,' F ');\n",
+ "P=V*I*0.707;\n",
+ "print '%s %.2f %s' %('i) Active Power (P) is in polar form = ',P,' W ');\n",
+ "Q=V*I*0.707;\n",
+ "print '%s %.2f %s' %('i) Reactive Power (Q) is in polar form = ',Q,' Var ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) IMPEDANCE (Z) is = 20.00 ohm \n",
+ "ii) RESISTANCE (R) is = 14.14 ohm \n",
+ "iv) INDUCTANCE (XC) is = 14.14 ohm \n",
+ "iv) CAPACITOR (C) is = 0.00 F \n",
+ "i) Active Power (P) is in polar form = 1414.00 W \n",
+ "i) Reactive Power (Q) is in polar form = 1414.00 Var \n"
+ ]
+ }
+ ],
+ "prompt_number": 98
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E111 : Pg 147"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-111 PG NO-147\n",
+ "VCB=2.49-1j*12.50;\n",
+ "R=4.+1j*2.;\n",
+ "I1=VCB/R;\n",
+ "print 'i) CURRENT (I1) is in polar form = ',I1,' A '\n",
+ "I2=2.5+1j*0;\n",
+ "I=I1+I2;\n",
+ "print 'i) CURRENT (I) is in polar form = ',I,' A '\n",
+ "VAC=11.8-1j*0.12;\n",
+ "VCB=2.5-1j*12.5;\n",
+ "VAB=VAC+VCB;\n",
+ "print 'i) VOLTAGE (VAB) is in polar form = ',VAB,' V '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (I1) is in polar form = (-0.752-2.749j) A \n",
+ "i) CURRENT (I) is in polar form = (1.748-2.749j) A \n",
+ "i) VOLTAGE (VAB) is in polar form = (14.3-12.62j) V \n"
+ ]
+ }
+ ],
+ "prompt_number": 99
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E112 : Pg 148"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-112 PG NO-148\n",
+ "I=5.;\n",
+ "R=25.;\n",
+ "Z=50.;\n",
+ "Z1=40.;\n",
+ "R1=(Z**2.-R**2.-1600.)/50.;\n",
+ "print '%s %.2f %s' %('i) RESISTANCE (R1) is = ',R1,' ohm ')\n",
+ "X1=(1600.-R1**2.)**0.5;\n",
+ "print '%s %.2f %s' %('ii) INDUCTANCE (X1) is = ',X1,' ohm ')\n",
+ "Pc=I*I*R1;\n",
+ "print '%s %.2f %s' %('iii) Power (Pc) is = ',Pc,' W ');\n",
+ "P=I*I*(R+R1);\n",
+ "print '%s %.2f %s' %('iv) Power (P) is = ',P,' W ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) RESISTANCE (R1) is = 5.50 ohm \n",
+ "ii) INDUCTANCE (X1) is = 39.62 ohm \n",
+ "iii) Power (Pc) is = 137.50 W \n",
+ "iv) Power (P) is = 762.50 W \n"
+ ]
+ }
+ ],
+ "prompt_number": 100
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E113 : Pg 149"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # example-2.113 pg no -149\n",
+ "Wo=9.798*10.**3.;\n",
+ "Fo=1559.39;\n",
+ "C=2.;\n",
+ "R=10.*10.**-6.;\n",
+ "L=10.**-3.;\n",
+ "DR=L/(C*R); # DYNAMIC RESISTANCE\n",
+ "Q=(1./C)*((L/R)**0.5); \n",
+ "BW=Wo/Q; # BAND WIDTH\n",
+ "print '%s %.2f %s' %('i) DYNAMIC RESISTANCE = ',DR, ' ohm ');\n",
+ "print '%s %.2f' %('ii) Q = ',Q);\n",
+ "print '%s %.2f %s' %('iii) BAND WIDTH = ',BW,'rad/sec ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) DYNAMIC RESISTANCE = 50.00 ohm \n",
+ "ii) Q = 5.00\n",
+ "iii) BAND WIDTH = 1959.60 rad/sec \n"
+ ]
+ }
+ ],
+ "prompt_number": 101
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER03.ipynb b/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER03.ipynb new file mode 100644 index 00000000..3e35f0c8 --- /dev/null +++ b/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER03.ipynb @@ -0,0 +1,2418 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:6d9a39e44daa2eaa18aa201b071e999a7f5cb7abad2fc3236ca67ce4339044d2"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "CHAPTER03:THREE PHASE CIRCUITS"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E01 : Pg 172"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-1 PG NO-172\n",
+ "import math \n",
+ "VL=400.;\n",
+ "Vp=400./math.sqrt(3.);\n",
+ "Z=8.-1j*10.;\n",
+ "IL=Vp/Z;\n",
+ "S=math.sqrt(3.)*(VL*IL);\n",
+ "P=S*(math.cos(-51.34));\n",
+ "Q=S*(math.sin(-51.34));\n",
+ "Von=230.94+1j*0;\n",
+ "Vbn=-115.47-1j*99.99\n",
+ "print 'i) RMS = ',S,'A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) RMS = (7804.87804878+9756.09756098j) A\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E02 : Pg 173"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 2-32 PG NO 173\n",
+ "import math \n",
+ "Vp=400.; # Peak voltage\n",
+ "VL=400.;\n",
+ "Z=8.-1j*10.; # Impedance\n",
+ "Ip=VL/12.81; \n",
+ "IL=math.sqrt(3.)*Ip;\n",
+ "S=math.sqrt(3.)*VL*IL;\n",
+ "P=S*math.cos(-51.34);\n",
+ "Q=S*math.sin(-51.34);\n",
+ "Vab=Vp+1j*0;\n",
+ "Vbc=-200.-1j*346.410;\n",
+ "Vca=-200.+1j*346.;\n",
+ "Iab=Vab/Z;\n",
+ "Ibc=Vbc/Z;\n",
+ "Ica=Vca/Z;\n",
+ "Ia=Iab-Ibc;\n",
+ "Ib=Ibc-Iab;\n",
+ "Ic=Ica-Ibc;\n",
+ "print 'i) Peak current = ',Ip,'A '\n",
+ "print 'i) S = ',S,'VA '\n",
+ "print 'i) Active Power = ',P,'W '\n",
+ "print 'i) Reactive power = ',Q,'Vars '\n",
+ "print 'i) Iab is in reactance form = ',Iab,'A '\n",
+ "print 'i) Ibc is in reactance form = ',Ibc,'A '\n",
+ "print 'i) Ica is in reactance form= ',Ica,'A '\n",
+ "print 'i) Ia is in reactance form = ',Ia,'A '\n",
+ "print 'i) Ib is in reactance form = ',Ib,'A '\n",
+ "print 'i) Ic is in reactance = ',Ic,'A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Peak current = 31.2256049961 A \n",
+ "i) S = 37470.7259953 VA \n",
+ "i) Active Power = 17841.9317159 W \n",
+ "i) Reactive power = -32950.2773776 Vars \n",
+ "i) Iab is in reactance form = (19.512195122+24.3902439024j) A \n",
+ "i) Ibc is in reactance form = (11.3664634146-29.0931707317j) A \n",
+ "i) Ica is in reactance form= (-30.8536585366+4.68292682927j) A \n",
+ "i) Ia is in reactance form = (8.14573170732+53.4834146341j) A \n",
+ "i) Ib is in reactance form = (-8.14573170732-53.4834146341j) A \n",
+ "i) Ic is in reactance = (-42.2201219512+33.776097561j) A \n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E03 : Pg 174"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3.3 PG NO 174\n",
+ "import math \n",
+ "Zy=3.+1j*5.196;\n",
+ "Zeq=2.55+1j*2.916;\n",
+ "Vp=230.94;\n",
+ "IL=59.61;\n",
+ "Ip=59.61;\n",
+ "VL=400.;\n",
+ "#cos(48.83)=0.658;\n",
+ "#sin(48.83)=0.7527;\n",
+ "S=math.sqrt(3.)*VL*IL;\n",
+ "P=math.sqrt(3.)*VL*IL*0.658;\n",
+ "Q=math.sqrt(3.)*VL*IL*0.7527;\n",
+ "print 'i) S = ',S,'VA '\n",
+ "print 'i) Active power = ',P,'W '\n",
+ "print 'i) Reactive power = ',Q,'Vars '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) S = 41299.0194557 VA \n",
+ "i) Active power = 27174.7548018 W \n",
+ "i) Reactive power = 31085.7719443 Vars \n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E04 : Pg 174"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# EXAMPLE 3-4 PG NO-174\n",
+ "import math \n",
+ "V=220.;\n",
+ "Im=15.75+1j*21.;\n",
+ "Z=5.33-1j*4.;\n",
+ "LI=V/(math.sqrt(3.)*Z);\n",
+ "TLI=LI+Im;\n",
+ "#math.cos(-17.16)=0.955;\n",
+ "PF=math.sqrt(3.)*0.955*V*32.42;\n",
+ "print 'i) Line current = ',LI,'A '\n",
+ "print 'i) TOTAL line current = ',TLI,'A '\n",
+ "print 'i) Power Factor = ',PF,'W '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Line current = (15.2447127862+11.4406850178j) A \n",
+ "i) TOTAL line current = (30.9947127862+32.4406850178j) A \n",
+ "i) Power Factor = 11797.7636168 W \n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E05 : Pg 175"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-5 PG NO-175\n",
+ "import math \n",
+ "Pm=6000.;\n",
+ "Qm=8000.;\n",
+ "Z=16.-1j*12.;\n",
+ "V=220.;\n",
+ "PC=V/Z;\n",
+ "PL=3.*V*11.*0.799;\n",
+ "QL=3.*V*11.*(-0.6);\n",
+ "P=Pm+PL;\n",
+ "Q=Qm+QL;\n",
+ "PF=math.cos(1./math.tan(Q/P));\n",
+ "IL=P/(math.sqrt(3.)*V*0.9555);\n",
+ "print 'i) Phase current = ',PC,'A '\n",
+ "print 'i) PL = ',PL,'W '\n",
+ "print 'i) QL = ',QL,'Vars '\n",
+ "print 'i) Active power = ',P,'W '\n",
+ "print 'i) Reactive Power = ',Q,'Vars '\n",
+ "print 'i) Power factor = ',PF,'lagging '\n",
+ "print 'i) line current (IL) = ',IL,'A '\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Phase current = (8.8+6.6j) A \n",
+ "i) PL = 5800.74 W \n",
+ "i) QL = -4356.0 Vars \n",
+ "i) Active power = 11800.74 W \n",
+ "i) Reactive Power = 3644.0 Vars \n",
+ "i) Power factor = -0.999977005554 lagging \n",
+ "i) line current (IL) = 32.411209817 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E06 : Pg 175"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-6 PG NO-175\n",
+ "Vac=100.+1j*0;\n",
+ "Vcb=-50.-1j*86.6;\n",
+ "Vba=-50.+1j*86.6;\n",
+ "Zac=6.+1j*8.;\n",
+ "Rcb=20.+1j*0;\n",
+ "Zba=4.-1j*3.;\n",
+ "Zcb=20.+1j*0;\n",
+ "Iac=Vac/Zac;\n",
+ "print ('i) CURRENT (Iac) is in rectangular form = ',Iac,' A ');\n",
+ "Icb=Vcb/Zcb;\n",
+ "print ('i) CURRENT (Icb) is in rectangular form = ',Icb,' A ');\n",
+ "Iba=Vba/Zba;\n",
+ "print ('i) CURRENT (IbA) is in rectangular form = ',Iba,' A ');\n",
+ "Ia=Iac-Iba;\n",
+ "print ('i) CURRENT (Ia) is in rectangular form = ',Ia,' A ');\n",
+ "Ic=Icb-Iac;\n",
+ "print ('i) CURRENT (Ic) is in rectangular form = ',Ic,' A ');\n",
+ "Ib=Iba-Icb;\n",
+ "print ('i) CURRENT (Ib) is in rectangular form = ',Ib,' A ');\n",
+ "Pac=Vac*Iac*0.6;\n",
+ "print ('iv) Power (Pac) is in rectangular form = ',Pac,' W ');\n",
+ "Pcb=Vcb*Icb;\n",
+ "print ('iv) Power (Pcb) is in rectangular form = ',Pcb,' W ');\n",
+ "Pba=Vba*Iba*0.8;\n",
+ "print ('iv) Power (Pba) is in rectangular form = ',Pba,' W ');\n",
+ "Qac=100.*20.*0.8;\n",
+ "print ('iv) Reactive Power (Qac) is in rectangular form = ',Qac,' vars ');\n",
+ "Qba=100.*20.*-0.6\n",
+ "print ('iv) Reactive Power (Qba) is in rectangular form = ',Qba,' vars ');\n",
+ "P=600.+500.+1600.;\n",
+ "print ('iv) Power (P) is = ',P,' W ');\n",
+ "Q=800.-1200.;\n",
+ "print ('iv) Power (Q) is = ',Q,' vars ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "('i) CURRENT (Iac) is in rectangular form = ', (6-8j), ' A ')\n",
+ "('i) CURRENT (Icb) is in rectangular form = ', (-2.5-4.33j), ' A ')\n",
+ "('i) CURRENT (IbA) is in rectangular form = ', (-18.392+7.855999999999999j), ' A ')\n",
+ "('i) CURRENT (Ia) is in rectangular form = ', (24.392-15.855999999999998j), ' A ')\n",
+ "('i) CURRENT (Ic) is in rectangular form = ', (-8.5+3.67j), ' A ')\n",
+ "('i) CURRENT (Ib) is in rectangular form = ', (-15.892+12.186j), ' A ')\n",
+ "('iv) Power (Pac) is in rectangular form = ', (360-480j), ' W ')\n",
+ "('iv) Power (Pcb) is in rectangular form = ', (-249.978+433j), ' W ')\n",
+ "('iv) Power (Pba) is in rectangular form = ', (191.4163200000001-1588.4377599999998j), ' W ')\n",
+ "('iv) Reactive Power (Qac) is in rectangular form = ', 1600.0, ' vars ')\n",
+ "('iv) Reactive Power (Qba) is in rectangular form = ', -1200.0, ' vars ')\n",
+ "('iv) Power (P) is = ', 2700.0, ' W ')\n",
+ "('iv) Power (Q) is = ', -400.0, ' vars ')\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E07 : Pg 176"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-7 PG NO-176-177\n",
+ "Vab=400.+1j*0;\n",
+ "Vbc=-200.-1j*346.410;\n",
+ "R=100.;\n",
+ "Ica=0;\n",
+ "Iab=Vab/R;\n",
+ "print 'i) CURRENT (Iab) is in rectangular form = ',Iab,' A '\n",
+ "Ibc=Vbc/R;\n",
+ "print 'i) CURRENT (Ibc) is in rectangular form = ',Ibc,' A '\n",
+ "Ia=Iab-Ica;\n",
+ "print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '\n",
+ "Ib=Ibc-Iab;\n",
+ "print 'i) CURRENT (Ib) is in rectangular form = ',Ib,' A '\n",
+ "Ic=Ica-Ibc;\n",
+ "print 'i) CURRENT (Ic) is in rectangular form = ',Ic,' A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (Iab) is in rectangular form = (4+0j) A \n",
+ "i) CURRENT (Ibc) is in rectangular form = (-2-3.4641j) A \n",
+ "i) CURRENT (Ia) is in rectangular form = (4+0j) A \n",
+ "i) CURRENT (Ib) is in rectangular form = (-6-3.4641j) A \n",
+ "i) CURRENT (Ic) is in rectangular form = (2+3.4641j) A \n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E08 : Pg 177"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-8 PG NO-177\n",
+ "Za=10-1j*8;\n",
+ "Zb=12+1j*0;\n",
+ "Zc=8+1j*10;\n",
+ "Van=230.94+1j*0;\n",
+ "Vbn=-115.47-1j*200;\n",
+ "Vcn=-115.47+1j*200;\n",
+ "Ia=Van/Za;\n",
+ "print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '\n",
+ "Ib=Vbn/Zb;\n",
+ "print 'ii) CURRENT (Ib) is in rectangular form = ',Ib,' A '\n",
+ "Ic=Vcn/Zc;\n",
+ "print 'iii) CURRENT (Ic) is in rectangular form = ',Ic,' A '\n",
+ "In=Ia+Ib+Ic;\n",
+ "print 'iv) CURRENT (In) is in rectangular form = ',In,' A '\n",
+ "\n",
+ "P=(230.94*18.028*0.78)+(230.94*19.245)+(230.94*18.028*0.62)\n",
+ "\n",
+ "print 'v) POWER (P) is in rectangular form = ',P,' W '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (Ia) is in rectangular form = (14.0817073171+11.2653658537j) A \n",
+ "ii) CURRENT (Ib) is in rectangular form = (-9.6225-16.6666666667j) A \n",
+ "iii) CURRENT (Ic) is in rectangular form = (6.56243902439+16.7969512195j) A \n",
+ "iv) CURRENT (In) is in rectangular form = (11.0216463415+11.3956504065j) A \n",
+ "v) POWER (P) is in rectangular form = 10273.181148 W \n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E09 : Pg 178"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-9 PG NO-178-179\n",
+ "Z1=10.+1j*0;\n",
+ "Z2=13.+1j*7.5;\n",
+ "Z3=-13.+1j*7.5;\n",
+ "Z4=8.66-1j*5.;\n",
+ "#X=[Z1+Z2 Z3;Z3 Z2+Z4];\n",
+ "Z5=-104.+1j*180.13;\n",
+ "Z6=280.+1j*0;\n",
+ "#Y=[Z5 Z3;Z6 Z2+Z4];\n",
+ "I1=-2.26 + 8.65j;#det(Y/X);\n",
+ "print 'i) Current (I1) is = ',I1,' A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Current (I1) is = (-2.26+8.65j) A \n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E10 : Pg 180"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-10 PG NO-180\n",
+ "Za=6.+1j*0;\n",
+ "Zb=5.26+1j*3;\n",
+ "Zc=3.535+1j*3.535;\n",
+ "Van=230.94+1j*0;\n",
+ "Vcn=-115.47-1j*200;\n",
+ "Vbn=-115.47+1j*200;\n",
+ "Ya=1./Za;\n",
+ "print 'i) admittance (Ya) is in rectangular form = ',Ya,' siemens '\n",
+ "Yb=1./Zb;\n",
+ "print 'i) admittance (Yb) is in rectangular form = ',Yb,' siemens '\n",
+ "Yc=1./Zc;\n",
+ "print 'i) admittance (Yc) is in rectangular form = ',Yc,' siemens '\n",
+ "Von=((Van*Ya)+(Vbn*Yb)+(Vcn*Yc))/(Ya+Yb+Yc);\n",
+ "print 'i) Voltage (Von) is in rectangular form = ',Von,' V'\n",
+ "Vao=Van-Von;\n",
+ "print 'i) Voltage (Vao) is in rectangular form = ',Vao,' V'\n",
+ "Vbo=Vbn-Von;\n",
+ "print 'i) Voltage (Vbo) is in rectangular form = ',Vbo,' V'\n",
+ "Vco=Vcn-Von;\n",
+ "print 'i) Voltage (Vco) is in rectangular form = ',Vco,' V'\n",
+ "Ia=Vao*Ya;\n",
+ "print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '\n",
+ "Ib=Vbo*Yc;\n",
+ "print 'i) CURRENT (Ib) is in rectangular form = ',Ib,' A '\n",
+ "Ic=Vco*Yc;\n",
+ "print 'i) CURRENT (Ic) is in rectangular form = ',Ic,' A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) admittance (Ya) is in rectangular form = (0.166666666667+0j) siemens \n",
+ "i) admittance (Yb) is in rectangular form = (0.143450893977-0.0818160992266j) siemens \n",
+ "i) admittance (Yc) is in rectangular form = (0.1414427157-0.1414427157j) siemens \n",
+ "i) Voltage (Von) is in rectangular form = (-34.3032387626+41.0196191983j) V\n",
+ "i) Voltage (Vao) is in rectangular form = (265.243238763-41.0196191983j) V\n",
+ "i) Voltage (Vbo) is in rectangular form = (-81.1667612374+158.980380802j) V\n",
+ "i) Voltage (Vco) is in rectangular form = (-81.1667612374-241.019619198j) V\n",
+ "i) CURRENT (Ia) is in rectangular form = (44.2072064604-6.83660319972j) A \n",
+ "i) CURRENT (Ib) is in rectangular form = (11.0061696696+33.9670639376j) A \n",
+ "i) CURRENT (Ic) is in rectangular form = (-45.5709166104-22.6100223424j) A \n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E11 : Pg 181"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-11 PG NO-181\n",
+ " \n",
+ "Vrn=230.94+1j*0;\n",
+ "Vyn=-115.47-1j*200.;\n",
+ "Vbn=-115.47+1j*200.;\n",
+ "Yr=-1j*0.05;\n",
+ "Yy=1j*0.05;\n",
+ "Yb=0.05;\n",
+ "Von=((Vrn*Yr)+(Vyn*Yy)+(Vbn*Yb))/(Yr+Yy+Yb);\n",
+ "print 'i) Voltage (Von) is in rectangular form = ',Von,' V'\n",
+ "Vyo=Vyn-Von;\n",
+ "print 'i) Voltage (Vyo) is in rectangular form = ',Vyo,' V'\n",
+ "Iy=Vyo*Yy;\n",
+ "print 'iii) CURRENT (Iy) is in rectangular form = ',Iy, ' A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (Von) is in rectangular form = (84.53-146.41j) V\n",
+ "i) Voltage (Vyo) is in rectangular form = (-200-53.59j) V\n",
+ "iii) CURRENT (Iy) is in rectangular form = (2.6795-10j) A \n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E12 : Pg 181"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-12 PG NO-181-182\n",
+ "import math \n",
+ "Vp=400.;\n",
+ "Zp=10+1j*24;\n",
+ "Zpy=6-1j*8;\n",
+ "Ip=Vp/Zp;\n",
+ "print 'i) CURRENT (Ip) is in rectangular form = ',Ip,' A '\n",
+ "Ipy=(Vp/math.sqrt(3.))/Zpy;\n",
+ "print 'ii) CURRENT (Ipy) is in rectangular form = ',Ipy,' A '\n",
+ "Rp=10.;\n",
+ "Rpy=6.;\n",
+ "Xp=24.;\n",
+ "Xpy=-8.;\n",
+ "P1=3*Ip*Ip*Rp;\n",
+ "print 'iii) Power (P1) is = ',P1,' W '\n",
+ "P2=Ipy*Ipy*3*Rpy;\n",
+ "print 'iv) Power (P2) is = ',P2,' W '\n",
+ "Q1=3*Ip*Ip*Xp;\n",
+ "print 'v) Power (Q1) is = ',Q1,' W '\n",
+ "Qy=3*Ipy*Ipy*Xpy;\n",
+ "print 'vi) Power (Qy) is = ',Qy,' W '\n",
+ "P=P1+P2;\n",
+ "print 'vii) Power (P) is = ',P,' W '\n",
+ "Q=Q1+Qy;\n",
+ "print 'viii) Power (Q) is = ',Q,' W '\n",
+ "S=P+1j*Q;\n",
+ "print 'ix) Power (S) is = ',S,' W '\n",
+ "LI=S/(math.sqrt(3.)*Vp);\n",
+ "print 'x) CURRENT (LI) is in rectangular form = ',LI,' A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (Ip) is in rectangular form = (5.91715976331-14.201183432j) A \n",
+ "ii) CURRENT (Ipy) is in rectangular form = (13.8564064606+18.4752086141j) A \n",
+ "iii) Power (P1) is = (-4999.8249361-5041.8402717j) W \n",
+ "iv) Power (P2) is = (-2688+9216j) W \n",
+ "v) Power (Q1) is = (-11999.5798466-12100.4166521j) W \n",
+ "vi) Power (Qy) is = (3584-12288j) W \n",
+ "vii) Power (P) is = (-7687.8249361+4174.1597283j) W \n",
+ "viii) Power (Q) is = (-8415.57984664-24388.4166521j) W \n",
+ "ix) Power (S) is = (16700.591716-4241.42011834j) W \n",
+ "x) CURRENT (LI) is in rectangular form = (24.1052278071-6.12196261768j) A \n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E13 : Pg 182"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-13 PG NO 182\n",
+ "VRY=375.877+1j*136.80;\n",
+ "print 'i) LINE VOLTAGE (VRY) is in rectangular form = ',VRY,' V '\n",
+ "VYB=-69.45-1j*393.923;\n",
+ "print 'ii) LINE VOLTAGE (VYB) is in rectangular form = ',VYB,' V '\n",
+ "VBR=-306.41+1j*257.11;\n",
+ "print 'iii) LINE VOLTAGE (VBR) is in rectangular form = ',VBR,' V '\n",
+ "VYR=-VRY;\n",
+ "print 'i) LINE VOLTAGE (VYR) is in rectangular form = ',VYR,' V '\n",
+ "VRB=69.45+1j*393.923;\n",
+ "print 'i) LINE VOLTAGE (VRB) is in rectangular form = ',VRB,' V '\n",
+ "VBY=306.41-1j*257.11;\n",
+ "print 'i) LINE VOLTAGE (VBY) is in rectangular form = ',VBY,' V '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) LINE VOLTAGE (VRY) is in rectangular form = (375.877+136.8j) V \n",
+ "ii) LINE VOLTAGE (VYB) is in rectangular form = (-69.45-393.923j) V \n",
+ "iii) LINE VOLTAGE (VBR) is in rectangular form = (-306.41+257.11j) V \n",
+ "i) LINE VOLTAGE (VYR) is in rectangular form = (-375.877-136.8j) V \n",
+ "i) LINE VOLTAGE (VRB) is in rectangular form = (69.45+393.923j) V \n",
+ "i) LINE VOLTAGE (VBY) is in rectangular form = (306.41-257.11j) V \n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E14 : Pg 182"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-14 PG NO 182-183\n",
+ "X=[[400+1j*0, -6+1j*0],[-200-1j*346.410, 6-1j*0]];\n",
+ "Y=[[12+1j*0, -6+1j*0],[-6+1j*0, 6-1j*8]];\n",
+ "I1=52.31-1j*7.120;\n",
+ "I2=37.957-1j*14.23;\n",
+ "Ia=I1;\n",
+ "print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '\n",
+ "Ib=I2-I1;\n",
+ "print 'i) CURRENT (Ib) is in rectangular form = ',Ib,' A '\n",
+ "IC=-I2;\n",
+ "print 'i) CURRENT (Ic) is in rectangular form = ',IC,' A '\n",
+ "Z1=6+1j*0;\n",
+ "Vao=Ia*Z1;\n",
+ "print 'i) VOLTAGE (Vao) is in rectangular form = ',Vao,' V '\n",
+ "Vbo=Ib*Z1;\n",
+ "print 'i) VOLTAGE (Vbo) is in rectangular form = ',Vbo,' V '\n",
+ "Vco=IC*(-1j*8);\n",
+ "print 'i) VOLTAGE (Vco) is in rectangular form = ',Vco,' V '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (Ia) is in rectangular form = (52.31-7.12j) A \n",
+ "i) CURRENT (Ib) is in rectangular form = (-14.353-7.11j) A \n",
+ "i) CURRENT (Ic) is in rectangular form = (-37.957+14.23j) A \n",
+ "i) VOLTAGE (Vao) is in rectangular form = (313.86-42.72j) V \n",
+ "i) VOLTAGE (Vbo) is in rectangular form = (-86.118-42.66j) V \n",
+ "i) VOLTAGE (Vco) is in rectangular form = (113.84+303.656j) V \n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E15 : Pg 185"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-15 PG NO-185-186\n",
+ "Van=230.94+1j*0;\n",
+ "Vbn=-115.47-1j*200.;\n",
+ "Vcn=-115.47+1j*200.;\n",
+ "V1=10.*10.**3.;\n",
+ "Ia=V1/Van;\n",
+ "print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '\n",
+ "V2=4.*10.**3.;\n",
+ "Ic=V2/Van;\n",
+ "print 'i) CURRENT (Ic) is in rectangular form = ',Ic,' A '\n",
+ "V3=6.*10.**3.;\n",
+ "Ib=V3/Van;\n",
+ "print 'i) CURRENT (Ib) is in rectangular form = ',Ib,' A '\n",
+ "In=(Ia+Ib+Ic);\n",
+ "print 'i) CURRENT (In) is in rectangular form = ',In,' A '\n",
+ "W1=(V1+V2+V3)/2.;\n",
+ "print 'iv) Power (W1) is in rectangular form = ',W1,' W '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (Ia) is in rectangular form = (43.3012903785+0j) A \n",
+ "i) CURRENT (Ic) is in rectangular form = (17.3205161514+0j) A \n",
+ "i) CURRENT (Ib) is in rectangular form = (25.9807742271+0j) A \n",
+ "i) CURRENT (In) is in rectangular form = (86.6025807569+0j) A \n",
+ "iv) Power (W1) is in rectangular form = 10000.0 W \n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E16 : Pg 186"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # example-3.16 pg no-186\n",
+ "W1=5920.;\n",
+ "W2=2610.;\n",
+ "P=8530.;\n",
+ "tanQ=(1.732*(W2-W1))/(W1+W2);\n",
+ "cosQ=0.83;\n",
+ "PF=cosQ;\n",
+ "print 'i) tanQ = ',tanQ\n",
+ "print 'ii) POWER FACTOR = ',PF"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) tanQ = -0.672089097304\n",
+ "ii) POWER FACTOR = 0.83\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E18 : Pg 186"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # Example 3.18 pg no-186-187\n",
+ "cosQ=0.8;\n",
+ "sinQ=0.6;\n",
+ "VL=10000.;\n",
+ "V=5000.*10.**3.; # VOLTAGE\n",
+ "PF=0.9; # POWER FACTOR\n",
+ "IL=V/(1.732*VL*cosQ) ;\n",
+ "I1=IL*cosQ; # ACTIVE COMPONENT\n",
+ "I2=IL*sinQ; # REACTIVE COMPONENT\n",
+ "P=1.732*(VL*IL*PF)\n",
+ "print 'i) IL = ',IL,' A'\n",
+ "print 'i) ACTIVE COMPONENT = ',I1,' A'\n",
+ "print 'i) REACTIVE COMPONENT = ',I2,' A'\n",
+ "print 'i) P = ',P,' KW'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) IL = 360.854503464 A\n",
+ "i) ACTIVE COMPONENT = 288.683602771 A\n",
+ "i) REACTIVE COMPONENT = 216.512702079 A\n",
+ "i) P = 5625000.0 KW\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E19 : Pg 187"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3.19 PG NO-187\n",
+ "VL=230.;\n",
+ "VP=VL/1.732;\n",
+ "IL=13.279;\n",
+ "COSQ=0.8;\n",
+ "SINQ=0.6;\n",
+ "P=(1.732*VL*IL*COSQ)\n",
+ "RP=(1.732*VL*IL*SINQ) \n",
+ "VA=(1.732*VL*VP)\n",
+ "print 'i) POWER FACTOR = ',P,' W'\n",
+ "print 'i) POWER FACTOR = ',RP,' var'\n",
+ "print 'i)TOTAL VA = ',VA,' VA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) POWER FACTOR = 4231.857952 W\n",
+ "i) POWER FACTOR = 3173.893464 var\n",
+ "i)TOTAL VA = 52900.0 VA\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E20 : Pg 187"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Example 3.20 pg no-187\n",
+ "import math \n",
+ "Ip=100.; # LINE CURRENT\n",
+ "COSQ=0.787;\n",
+ "SINQ=0.617;\n",
+ "pi=3.14;\n",
+ "Vp=1100./1.732;\n",
+ "W=(2.*math.pi*50.)\n",
+ "Z=Vp/Ip;\n",
+ "R=Z*COSQ;\n",
+ "Xc=Z*SINQ\n",
+ "C=1./(W*Xc)\n",
+ "print 'i) Z = ',Z,' ohm'\n",
+ "print 'ii) R = ',R,' ohm'\n",
+ "print 'iii) Xc = ',Xc,' ohm'\n",
+ "print 'iiii)capacitance (C) = ',C,' F'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Z = 6.35103926097 ohm\n",
+ "ii) R = 4.99826789838 ohm\n",
+ "iii) Xc = 3.91859122402 ohm\n",
+ "iiii)capacitance (C) = 0.000812306943967 F\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E21 : Pg 187"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3.21 PG NO-187\n",
+ "Ip=20.;\n",
+ "IL=(1.732*Ip);\n",
+ "VL=400.;\n",
+ "cos40=0.766;\n",
+ "sin40=0.642;\n",
+ "VA=(1.732*VL*IL);\n",
+ "p=(VA*cos40);\n",
+ "q=(VA*sin40);\n",
+ "print 'i) VA = ',VA,' VA'\n",
+ "print 'ii) P = ',p,' W'\n",
+ "print 'iii) Q = ',q,' vars'\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) VA = 23998.592 VA\n",
+ "ii) P = 18382.921472 W\n",
+ "iii) Q = 15407.096064 vars\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E22 : Pg 188"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3.22 PG NO-188\n",
+ "Vp=230.;\n",
+ "VL=230.;\n",
+ "Z=8.+1j*6.; \n",
+ "Ip=Vp/Z;\n",
+ "print 'i) CURRENT (Ip) is in rectangular form = ',Ip,' A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (Ip) is in rectangular form = (18.4-13.8j) A\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E23 : Pg 188"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-23 PG NO-188\n",
+ "Za=8.66+1j*5.;\n",
+ "Zc=8.48+1j*8.48;\n",
+ "Zb=11.50+1j*9.642;\n",
+ "VRn=254.+1j*0;\n",
+ "VYn=-127.02-1j*220.;\n",
+ "Vbn=-127.02+1j*220.;\n",
+ "Yr=1./Za;\n",
+ "print 'i) admittance (Ya) is in rectangular form = ',Yr,' siemens '\n",
+ "Yb=1./Zb;\n",
+ "print 'i) admittance (Yb) is in rectangular form = ',Yb,' siemens '\n",
+ "Yy=1./Zc;\n",
+ "print 'i) admittance (Yc) is in rectangular form = ',Yy,' siemens '\n",
+ "\n",
+ "Von=((VRn*Yr)+(Vbn*Yb)+(VYn*Yy))/(Yr+Yb+Yy);\n",
+ "\n",
+ "print 'i) Voltage (Von) is in rectangular form = ',Von,' V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) admittance (Ya) is in rectangular form = (0.0866038105677-0.0500022000968j) siemens \n",
+ "i) admittance (Yb) is in rectangular form = (0.0510616008751-0.0428118222294j) siemens \n",
+ "i) admittance (Yc) is in rectangular form = (0.0589622641509-0.0589622641509j) siemens \n",
+ "i) Voltage (Von) is in rectangular form = (17.9603354367+6.1771198768j) V\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E24 : Pg 189"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-24 PG NO-189\n",
+ "import math \n",
+ "W1=-1200.;\n",
+ "W2=3400.;\n",
+ "P=W1+W2;\n",
+ "print 'iv) Power (P) is = ',P,'W '\n",
+ "X=math.sqrt(3.)*(W2-W1)/P;\n",
+ "print 'iv) (tan (Q)) is = ',X"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "iv) Power (P) is = 2200.0 W \n",
+ "iv) (tan (Q)) is = 3.62156077946\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E25 : Pg 189"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-25 PG NO-189\n",
+ "Vac=240.+1j*0;\n",
+ "Vcb=-120.-1j*207.84;\n",
+ "Vba=-120.+1j*207.84;\n",
+ "Zac=20.+1j*0;\n",
+ "Zcb=12.99+1j*7.5;\n",
+ "Zba=0+1j*25.;\n",
+ "Iac=Vac/Zac;\n",
+ "print 'i) CURRENT (Iac) is in rectangular form = ',Iac,' A '\n",
+ "Icb=Vcb/Zcb;\n",
+ "print 'i) CURRENT (Icb) is in rectangular form = ',Icb,' A '\n",
+ "Iba=Vba/Zba;\n",
+ "print 'i) CURRENT (Iba) is in rectangular form = ',Iba,' A '\n",
+ "Ia=Iac-Iba;\n",
+ "print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '\n",
+ "Ib=Iba-Icb;\n",
+ "print 'i) CURRENT (Ib) is in rectangular form = ',Ib,' A '\n",
+ "Ic=Icb-Iac;\n",
+ "print 'i) CURRENT (Ic) is in rectangular form = ',Ic,' A '\n",
+ "P=(240*12)+(240*16*0.866)+(240*9.6*0);\n",
+ "print 'iv) Power (P) is = ',P,' W '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (Iac) is in rectangular form = (12+0j) A \n",
+ "i) CURRENT (Icb) is in rectangular form = (-13.8566096908-7.99964798451j) A \n",
+ "i) CURRENT (Iba) is in rectangular form = (8.3136+4.8j) A \n",
+ "i) CURRENT (Ia) is in rectangular form = (3.6864-4.8j) A \n",
+ "i) CURRENT (Ib) is in rectangular form = (22.1702096908+12.7996479845j) A \n",
+ "i) CURRENT (Ic) is in rectangular form = (-25.8566096908-7.99964798451j) A \n",
+ "iv) Power (P) is = 6205.44 W \n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E26 : Pg 190"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "Vab=200.+1j*0;\n",
+ "Vbc=-100.-1j*173.20;\n",
+ "Vca=-100.+1j*173.20;\n",
+ "Zac=31.+1j*59.;\n",
+ "Zcb=30.-1j*40.;\n",
+ "Zba=80.+1j*60.;\n",
+ "Iab=Vab/Zac;\n",
+ "print 'i) CURRENT (Iac) is in rectangular form = ',Iab,' A '\n",
+ "Ibc=Vbc/Zcb;\n",
+ "print 'i) CURRENT (Icb) is in rectangular form = ',Ibc,' A '\n",
+ "Ica=Vca/Zba;\n",
+ "print 'i) CURRENT (Iba) is in rectangular form = ', Ica,' A '\n",
+ "Ia=Iab-Ica;\n",
+ "print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '\n",
+ "Ib=Ibc-Iab;\n",
+ "print 'i) CURRENT (Ib) is in rectangular form = ',Ib,' A '\n",
+ "Ic=Ica-Ibc;\n",
+ "print 'i) CURRENT (Ic) is in rectangular form = ',Ic,' A '\n",
+ "P=(200.*3.*0.46)+(200.*4.*0.6)+(200.*2.*0.8);\n",
+ "print 'iv) Power (P) is = ',P,' W '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (Iac) is in rectangular form = (1.39576767222-2.65646105358j) A \n",
+ "i) CURRENT (Icb) is in rectangular form = (1.5712-3.6784j) A \n",
+ "i) CURRENT (Iba) is in rectangular form = (0.2392+1.9856j) A \n",
+ "i) CURRENT (Ia) is in rectangular form = (1.15656767222-4.64206105358j) A \n",
+ "i) CURRENT (Ib) is in rectangular form = (0.17543232778-1.02193894642j) A \n",
+ "i) CURRENT (Ic) is in rectangular form = (-1.332+5.664j) A \n",
+ "iv) Power (P) is = 1076.0 W \n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E27 : Pg 190"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE-3.27 PG NO-190-191\n",
+ "Zr=4.;\n",
+ "Zy=5.;\n",
+ "VL=400.;\n",
+ "IL=103.1;\n",
+ "Q=36.6 # Q=TETA\n",
+ "COSQ=0.8028;\n",
+ "P=(1.732*VL*IL*COSQ)\n",
+ "print 'i) P = ',P,' W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) P = 57342.141504 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E28 : Pg 191"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-28 PG NO-191\n",
+ "Van=230.94+1j*0;\n",
+ "Vbn=-115.47-1j*200.;\n",
+ "Vcn=-115.47+1j*200.;\n",
+ "Za=12.-1j*16.;\n",
+ "Zb=12+1j*0;\n",
+ "Zc=8.+1j*6.;\n",
+ "Ia=Van/Za;\n",
+ "print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '\n",
+ "Ib=Vbn/Zb;\n",
+ "print 'i) CURRENT (Ib) is in rectangular form = ',Ib,' A '\n",
+ "Ic=Vcn/Zc;\n",
+ "print 'i) CURRENT (Ic) is in rectangular form = ',Ic,' A '\n",
+ "NI=-(Ia+Ib+Ic);\n",
+ "print 'i)NEUTRAL CURRENT (NI) is in rectangular form = ',NI,' A '\n",
+ "P=(230.95*11.55*0.6)+(230.95*19.25*1)+(230.95*23.095*0.8);\n",
+ "print 'iv) Power (P) is = ',P,' W '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (Ia) is in rectangular form = (6.9282+9.2376j) A \n",
+ "i) CURRENT (Ib) is in rectangular form = (-9.6225-16.6666666667j) A \n",
+ "i) CURRENT (Ic) is in rectangular form = (2.7624+22.9282j) A \n",
+ "i)NEUTRAL CURRENT (NI) is in rectangular form = (-0.0681-15.4991333333j) A \n",
+ "iv) Power (P) is = 10313.3032 W \n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E29 : Pg 191"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # Example-3.29 PG NO-191-192\n",
+ "IL=12.55;\n",
+ "V=460.;\n",
+ "Z=V/(1.732*IL)\n",
+ "print '%s %.2f %s' %('i) Z = ',Z,' ohm');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Z = 21.16 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E30 : Pg 192"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-30 PG NO-192\n",
+ "R=8*0.866; # cos30=0.866\n",
+ "print 'i) Resistance (R) is = ',R,' ohm '\n",
+ "X=8*0.5;\n",
+ "print 'ii) X (X) is = ',X,' ohm '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Resistance (R) is = 6.928 ohm \n",
+ "ii) X (X) is = 4.0 ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 30
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E31 : Pg 193"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE -3.31 PG NO -193\n",
+ "Zr=3333.33;\n",
+ "Vry=200.;\n",
+ "X=16666.66;\n",
+ "Y=346.40; # Y=(300-j173.2) \n",
+ "I=Y/X;\n",
+ "RV=I*Zr;\n",
+ "print 'i) I = ',I,'<-29.99 A'\n",
+ "print 'ii) READING OF VOLTMETER = ',RV,' <-30 degree V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) I = 0.0207840083136 <-29.99 A\n",
+ "ii) READING OF VOLTMETER = 69.279958432 <-30 degree V\n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E32 : Pg 193"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-32 PG NO-193\n",
+ "Vry=400.+1j*0;\n",
+ "Vyb=-200.-1j*346.41;\n",
+ "Vbr=-200.+1j*346.410;\n",
+ "I1=14.74-1j*7.3;\n",
+ "I2=2.105-1j*10.94;\n",
+ "Ir=I1;\n",
+ "print 'i) CURRENT (Ir) is in rectangular form = ',Ir,' A '\n",
+ "Iy=I2-I1;\n",
+ "print 'i) CURRENT (Iy) is in rectangular form = ',Iy,' A '\n",
+ "Ib=-I2;\n",
+ "print 'i) CURRENT (Ib) is in rectangular form = ',Ib,' A '\n",
+ "Pr=16.45*16.45*10;\n",
+ "print 'i) Power (Pr) is = ',Pr,' W '\n",
+ "Py=Iy*Iy*20.;\n",
+ "print 'i) Power (Py) is in rectangular form = ',Py,' W '\n",
+ "Pb=11.24*11.24*25;\n",
+ "print 'i) Power (Pb) is in rectangular form = ',Pb,' W '\n",
+ "Vro=-(Ir*10);\n",
+ "print 'i) VOLTAGE (Vro) is in rectangular form = ',Vro,' V '\n",
+ "Vrn=200-1j*115.475;\n",
+ "print 'i) VOLTAGE (Vrn) is in rectangular form = ',Vrn,' V '\n",
+ "Von=Vro+Vrn;\n",
+ "print 'i) VOLTAGE (Von) is in rectangular form = ',Von,' V '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (Ir) is in rectangular form = (14.74-7.3j) A \n",
+ "i) CURRENT (Iy) is in rectangular form = (-12.635-3.64j) A \n",
+ "i) CURRENT (Ib) is in rectangular form = (-2.105+10.94j) A \n",
+ "i) Power (Pr) is = 2706.025 W \n",
+ "i) Power (Py) is in rectangular form = (2927.8725+1839.656j) W \n",
+ "i) Power (Pb) is in rectangular form = 3158.44 W \n",
+ "i) VOLTAGE (Vro) is in rectangular form = (-147.4+73j) V \n",
+ "i) VOLTAGE (Vrn) is in rectangular form = (200-115.475j) V \n",
+ "i) VOLTAGE (Von) is in rectangular form = (52.6-42.475j) V \n"
+ ]
+ }
+ ],
+ "prompt_number": 33
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E33 : Pg 194"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-33 PG NO-194\n",
+ "Z1=8.-1j*6;\n",
+ "Z2=3.6-1j*4.8;\n",
+ "In=-(Z1+Z2);\n",
+ "print 'i) CURRENT (In) is in rectangular form = ',In,' A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (In) is in rectangular form = (-11.6+10.8j) A \n"
+ ]
+ }
+ ],
+ "prompt_number": 34
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E34 : Pg 194"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-34 PG NO-194\n",
+ "import math \n",
+ "Vp=230.94;\n",
+ "Van=230.94+1j*0;\n",
+ "Vbn=-115.47-1j*200;\n",
+ "Vcn=-115.47+1j*200;\n",
+ "Z=8.-1j*10;\n",
+ "Ia=Van/Z;\n",
+ "print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '\n",
+ "Ib=Vbn/Z;\n",
+ "print 'ii) CURRENT (Ib) is in rectangular form = ',Ib,' A '\n",
+ "Ic=Vcn/Z;\n",
+ "print 'iii) CURRENT (Ic) is in rectangular form = ',Ic,' A '\n",
+ "S=math.sqrt(3.)*400.*18.03;\n",
+ "print 'iv) APPARENT POWER (S) is = ',S,' VA '\n",
+ "P=S*0.62;\n",
+ "print 'v) Power (P) is = ',P,' W '\n",
+ "Q=S*-0.8;\n",
+ "print 'vi) Power (Q) is = ',Q,' vars '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (Ia) is in rectangular form = (11.2653658537+14.0817073171j) A \n",
+ "ii) CURRENT (Ib) is in rectangular form = (6.56243902439-16.7969512195j) A \n",
+ "iii) CURRENT (Ic) is in rectangular form = (-17.827804878+2.71524390244j) A \n",
+ "iv) APPARENT POWER (S) is = 12491.5504242 VA \n",
+ "v) Power (P) is = 7744.761263 W \n",
+ "vi) Power (Q) is = -9993.24033935 vars \n"
+ ]
+ }
+ ],
+ "prompt_number": 35
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E36 : Pg 195"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE-3.36 PG NO -195\n",
+ "import math \n",
+ "Vp=400./(3.)**0.5;\n",
+ "Rp=162.58*10.**3.;\n",
+ "Ipc=Rp/(3.*Vp);\n",
+ "IL=365.82;\n",
+ "Xc=Vp/Ipc;\n",
+ "pi=3.14;\n",
+ "C=1./(2.*math.pi*50.*Xc)\n",
+ "print 'i) Ipc = ',Ipc,' A' \n",
+ "print 'ii) Xc = ',Xc,' ohm'\n",
+ "print 'i) CAPACITANCE = ',C,' F'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Ipc = 234.664016912 A\n",
+ "ii) Xc = 0.984130889408 ohm\n",
+ "i) CAPACITANCE = 0.00323442633099 F\n"
+ ]
+ }
+ ],
+ "prompt_number": 36
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E37 : Pg 196"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-37 PG NO-196-197\n",
+ "Vry=450.+1j*0;\n",
+ "Vyb=-225.-1j*389.711;\n",
+ "Vbr=-225.+1j*389.711;\n",
+ "Vrn=225.-1j*130;\n",
+ "Vyn=-225.-1j*130;\n",
+ "Vbn=0+1j*259.8;\n",
+ "Z1=10.60+1j*10.60;\n",
+ "Z2=5.+1j*8.66;\n",
+ "Z3=2.6+1j*1.5;\n",
+ "Z4=12.21+1j*4.44;\n",
+ "Iry=Vry/Z1;\n",
+ "print 'i) CURRENT (Iry) is in rectangular form = ',Iry,' A '\n",
+ "Iyb=Vyb/Z2;\n",
+ "print 'i) CURRENT (Iyb) is in rectangular form = ',Iyb,' A '\n",
+ "Ibr=Vbr/Z3;\n",
+ "print 'i) CURRENT (Ibr) is in rectangular form = ',Ibr,' A '\n",
+ "I1=Iry-Ibr;\n",
+ "print 'i) CURRENT (I1) is in rectangular form = ',I1,' A '\n",
+ "I2=Iyb-Iry;\n",
+ "print 'i) CURRENT (I2) is in rectangular form = ',I2,' A '\n",
+ "I3=Ibr-Iyb;\n",
+ "print 'i) CURRENT (I3) is in rectangular form = ',I3,' A '\n",
+ "I4=Vrn/Z4;\n",
+ "print 'i) CURRENT (I4) is in rectangular form = ',I4,' A '\n",
+ "I5=Vyn/Z4;\n",
+ "print 'i) CURRENT (I5) is in rectangular form = ',I5,' A '\n",
+ "I6=Vbn/Z4;\n",
+ "print 'i) CURRENT (I6) is in rectangular form = ',I6,' A '\n",
+ "I7=Vbn/(3+1j*4);\n",
+ "print 'i) CURRENT (I7) is in rectangular form = ',I7,' A '\n",
+ "IR=I1+I4;\n",
+ "print 'i) CURRENT (IR) is in rectangular form = ',IR,' A '\n",
+ "IY=I1+I4;\n",
+ "print 'i) CURRENT (IY) is in rectangular form = ',IY,' A '\n",
+ "IB=I3+I6+I7;\n",
+ "print 'i) CURRENT (IB) is in rectangular form = ',IB,' A '\n",
+ "IN=-(I7);\n",
+ "print 'i) CURRENT (IN) is in rectangular form = ',IN,' A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (Iry) is in rectangular form = (21.2264150943-21.2264150943j) A \n",
+ "i) CURRENT (Iyb) is in rectangular form = (-45.0009526419-0.000550024201065j) A \n",
+ "i) CURRENT (Ibr) is in rectangular form = (-0.0481132075472+149.916603774j) A \n",
+ "i) CURRENT (I1) is in rectangular form = (21.2745283019-171.143018868j) A \n",
+ "i) CURRENT (I2) is in rectangular form = (-66.2273677363+21.2258650701j) A \n",
+ "i) CURRENT (I3) is in rectangular form = (44.9528394344+149.917153798j) A \n",
+ "i) CURRENT (I4) is in rectangular form = (12.855921615-15.3218912343j) A \n",
+ "i) CURRENT (I5) is in rectangular form = (-19.6948773591-3.48523706188j) A \n",
+ "i) CURRENT (I6) is in rectangular form = (6.83369500888+18.7926612744j) A \n",
+ "i) CURRENT (I7) is in rectangular form = (41.568+31.176j) A \n",
+ "i) CURRENT (IR) is in rectangular form = (34.1304499169-186.464910102j) A \n",
+ "i) CURRENT (IY) is in rectangular form = (34.1304499169-186.464910102j) A \n",
+ "i) CURRENT (IB) is in rectangular form = (93.3545344432+199.885815072j) A \n",
+ "i) CURRENT (IN) is in rectangular form = (-41.568-31.176j) A \n"
+ ]
+ }
+ ],
+ "prompt_number": 37
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E39 : Pg 196"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "VAB=400.+1j*0;\n",
+ "VBC=-200.-1j*346.41;\n",
+ "VCA=400.+1j*0;\n",
+ "Z1=300.-1j*398.;\n",
+ "IAB=VAB/Z1;\n",
+ "print 'i) CURRENT (IAB) is in rectangular form = ',IAB,' A '\n",
+ "VAD=IAB*300.;\n",
+ "print 'ii) VOLTAGE (VAD) is in rectangular form = ',VAD,' V '\n",
+ "VDA=-VAD;\n",
+ "print 'iii) VOLTAGE (VDA) is in rectangular form = ',VDA,' V '\n",
+ "VDC=VDA-VCA;\n",
+ "print 'iv) VOLTAGE (VDC) is in rectangular form = ',VDC,' VA '\n",
+ "VAC=400.+1j*0;\n",
+ "VCB=-200.-1j*346.41;\n",
+ "VBA=-200.+1j*346.410;\n",
+ "IAB1=-(VAC)/Z1;\n",
+ "print 'v) CURRENT (IAB1) is in rectangular form = ',IAB1,' A '\n",
+ "VAD1=IAB1*300;\n",
+ "print 'vi) VOLTAGE (VAD1) is in rectangular form = ',VAD1,' V '\n",
+ "VDA=-VAD;\n",
+ "print 'vii) VOLTAGE (VAAD) is in rectangular form = ',VDA,' V '\n",
+ "VDC=VDA+VAC;\n",
+ "print 'viii) VOLTAGE (VDC) is in rectangular form = ',VDC,' V '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (IAB) is in rectangular form = (0.483084008309+0.640891451023j) A \n",
+ "ii) VOLTAGE (VAD) is in rectangular form = (144.925202493+192.267435307j) V \n",
+ "iii) VOLTAGE (VDA) is in rectangular form = (-144.925202493-192.267435307j) V \n",
+ "iv) VOLTAGE (VDC) is in rectangular form = (-544.925202493-192.267435307j) VA \n",
+ "v) CURRENT (IAB1) is in rectangular form = (-0.483084008309-0.640891451023j) A \n",
+ "vi) VOLTAGE (VAD1) is in rectangular form = (-144.925202493-192.267435307j) V \n",
+ "vii) VOLTAGE (VAAD) is in rectangular form = (-144.925202493-192.267435307j) V \n",
+ "viii) VOLTAGE (VDC) is in rectangular form = (255.074797507-192.267435307j) V \n"
+ ]
+ }
+ ],
+ "prompt_number": 38
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E40 : Pg 199"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE-3.40 PG NO-199\n",
+ "Vry=200.;\n",
+ "Vbr=200.;\n",
+ "Vbn=115.47;\n",
+ "I1=10.; # 10-j12\n",
+ "W1=200.*I1;\n",
+ "X1=173.2;\n",
+ "X2=26.66;\n",
+ "W2=X1*X2;\n",
+ "print 'i)WATTMETERS (W2) = ',W2,' W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)WATTMETERS (W2) = 4617.512 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 39
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E41 : Pg 200"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # CHAPTER -3 EXAMPLE NO 3.41 PG NO-200 \n",
+ "Vp=230.94;\n",
+ "Xa=100.+1j*155;\n",
+ "Ia=Vp/Xa;\n",
+ "COSQ=0.542;\n",
+ "P=COSQ;\n",
+ "print 'i) (Ia) = ',Ia,' A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) (Ia) = (0.678736223365-1.05204114622j) A\n"
+ ]
+ }
+ ],
+ "prompt_number": 40
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E42 : Pg 200"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "Van=254.+1j*0;\n",
+ "Vbn=-127.02-1j*220.;\n",
+ "Vcn=-127.02+1j*220.;\n",
+ "Ib=0-1j*10.;\n",
+ "Ic=0+1j*20.;\n",
+ "Ia=-(Ib+Ic);\n",
+ "print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '\n",
+ "Von=-173.20+1j*100.;\n",
+ "Vao=Van-Von;\n",
+ "print 'i) VOLTAGE (Vao) is in rectangular form = ',Vao,' V '\n",
+ "Vbo=Vbn-Von;\n",
+ "print 'i) VOLTAGE (Vbo) is in rectangular form = ',Vbo,' V '\n",
+ "Vco=Vcn-Von;\n",
+ "print 'i) VOLTAGE (Vco) is in rectangular form = ',Vco,' V '\n",
+ "Za=Vao/Ia;\n",
+ "print 'i) IMPEDANCE (Za) is in rectangular form = ',Za,' ohm '\n",
+ "Zb=Vbo/Ib;\n",
+ "print 'i) IMPEDANCE (Zb) is in rectangular form = ',Zb,' ohm '\n",
+ "Zc=Vco/Ic;\n",
+ "print 'i) IMPEDANCE (Zc) is in rectangular form = ',Zc,' ohm '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (Ia) is in rectangular form = (-0-10j) A \n",
+ "i) VOLTAGE (Vao) is in rectangular form = (427.2-100j) V \n",
+ "i) VOLTAGE (Vbo) is in rectangular form = (46.18-320j) V \n",
+ "i) VOLTAGE (Vco) is in rectangular form = (46.18+120j) V \n",
+ "i) IMPEDANCE (Za) is in rectangular form = (10+42.72j) ohm \n",
+ "i) IMPEDANCE (Zb) is in rectangular form = (32+4.618j) ohm \n",
+ "i) IMPEDANCE (Zc) is in rectangular form = (6-2.309j) ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 41
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E43 : Pg 200"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # example-3.43 pg no-200-201\n",
+ "Ip=11<36.87;\n",
+ "PL=5808.;\n",
+ "QL=4356.;\n",
+ "Pm=6000.;\n",
+ "Qm=8000.;\n",
+ "P=PL+Pm;\n",
+ "Q=Qm-QL;\n",
+ "S=((P*P)+(Q*Q))**0.5;\n",
+ "X=P/S; # POWER FACTOR\n",
+ "print 'i)ACTIVE POWER (P) = ',P,' W'\n",
+ "print 'i)REACTIVE POWER (Q) = ',Q,' vars(inductive)'\n",
+ "print 'i)APPARENT POWER (S) = ',S,' A'\n",
+ "print 'i)power factor (X) = ',X,' lagging'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)ACTIVE POWER (P) = 11808.0 W\n",
+ "i)REACTIVE POWER (Q) = 3644.0 vars(inductive)\n",
+ "i)APPARENT POWER (S) = 12357.4916549 A\n",
+ "i)power factor (X) = 0.95553372236 lagging\n"
+ ]
+ }
+ ],
+ "prompt_number": 42
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E44 : Pg 201"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3.44 PG NO-201\n",
+ "W1=800.;\n",
+ "W2=-400.;\n",
+ "P=W1+W2; \n",
+ "x=(1.723*(W2-W1))/(W1+W2) # tanQ=x\n",
+ "Q=-79.10;\n",
+ "y=0.189;\n",
+ "P=y # POWER FACTOR\n",
+ "print 'i)tanQ (x) = ',x\n",
+ "print 'i) POWER factor (P) = ',P"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)tanQ (x) = -5.169\n",
+ "i) POWER factor (P) = 0.189\n"
+ ]
+ }
+ ],
+ "prompt_number": 43
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E45 : Pg 201"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-45 PG NO-201-202\n",
+ "Vab=0+1j*212.;\n",
+ "Vbc=-183.6-1j*106.;\n",
+ "Vca=183.6-1j*106.;\n",
+ "Za=10.+1j*0;\n",
+ "Zb=10.+1j*10.;\n",
+ "Zc=0-1j*20.;\n",
+ "Zab=((Za*Zb)+(Zb*Zc)+(Za*Zc))/Zc;\n",
+ "print 'i) IMPEDANCE (Zab) is in rectangular form = ',Zab,' ohm '\n",
+ "Zbc=((Za*Zb)+(Zb*Zc)+(Za*Zc))/Za;\n",
+ "print 'i) IMPEDANCE (Zbc) is in rectangular form = ',Zbc,' ohm '\n",
+ "Zca=((Za*Zb)+(Zb*Zc)+(Za*Zc))/Zb;\n",
+ "print 'i) IMPEDANCE (Zca) is in rectangular form = ',Zca,' ohm '\n",
+ "Iab=Vab/Zab;\n",
+ "print 'i) CURRENT (Iab) is in rectangular form = ',Iab,' A '\n",
+ "Ibc=Vbc/Zbc;\n",
+ "print 'i) CURRENT (Ibc) is in rectangular form = ',Ibc,' A '\n",
+ "Ica=Vca/Zca;\n",
+ "print 'i) CURRENT (Ica) is in rectangular form = ',Ica,' A '\n",
+ "Ia=Iab-Ica;\n",
+ "print 'i) CURRENT (Ia) is in rectangular form = ',Ia,' A '\n",
+ "Ib=Ibc-Iab;\n",
+ "print 'i) CURRENT (Ib) is in rectangular form = ',Ib,' A '\n",
+ "Ic=Ica-Ibc;\n",
+ "print 'i) CURRENT (Ic) is in rectangular form = ',Ic,' A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) IMPEDANCE (Zab) is in rectangular form = (15+15j) ohm \n",
+ "i) IMPEDANCE (Zbc) is in rectangular form = (30-30j) ohm \n",
+ "i) IMPEDANCE (Zca) is in rectangular form = -30j ohm \n",
+ "i) CURRENT (Iab) is in rectangular form = (7.06666666667+7.06666666667j) A \n",
+ "i) CURRENT (Ibc) is in rectangular form = (-1.29333333333-4.82666666667j) A \n",
+ "i) CURRENT (Ica) is in rectangular form = (3.53333333333+6.12j) A \n",
+ "i) CURRENT (Ia) is in rectangular form = (3.53333333333+0.946666666667j) A \n",
+ "i) CURRENT (Ib) is in rectangular form = (-8.36-11.8933333333j) A \n",
+ "i) CURRENT (Ic) is in rectangular form = (4.82666666667+10.9466666667j) A \n"
+ ]
+ }
+ ],
+ "prompt_number": 44
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E47 : Pg 202"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-47 PG NO-202-203\n",
+ "Vab=212.;\n",
+ "Vbc=212.;\n",
+ "Vca=212.;\n",
+ "Iab=10.;\n",
+ "Ibc=5.;\n",
+ "Ica=7.07;\n",
+ "P=((Vab*Iab*0.707)+(Vbc*Ibc*0.707)+(212*7.07*0));\n",
+ "print 'i) ACTIVE POWER (P) is = ',P,' W '\n",
+ "Q=((Vab*Iab*0.707)+(Vbc*Ibc*-0.707)+(212*7.07*-1))\n",
+ "print 'ii)REACTIVE POWER (Q) is = ',Q,' vars '\n",
+ "S=(P**2.+(Q**2.))**0.5;\n",
+ "print 'i) APPARENT POWER (S) is = ',S,' VA'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) ACTIVE POWER (P) is = 2248.26 W \n",
+ "ii)REACTIVE POWER (Q) is = -749.42 vars \n",
+ "i) APPARENT POWER (S) is = 2369.87412408 VA\n"
+ ]
+ }
+ ],
+ "prompt_number": 45
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E48 : Pg 203"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-48 PG NO-202-203\n",
+ "Vao=186.7-1j*87.06;\n",
+ "Vco=-38.5+1j*292.48;\n",
+ "Vbo=-(Vao+Vco);\n",
+ "print 'i) VOLTAGE (Vbo) is in rectangular form = ',Vbo,' V '\n",
+ "Vab=Vao-Vbo;\n",
+ "print 'i) VOLTAGE (Vab) is in rectangular form = ',Vab,' V '\n",
+ "Van=201.-1j*37.51;\n",
+ "Von=Van-Vao;\n",
+ "print 'i) VOLTAGE (Von) is in rectangular form = ',Von,' V '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) VOLTAGE (Vbo) is in rectangular form = (-148.2-205.42j) V \n",
+ "i) VOLTAGE (Vab) is in rectangular form = (334.9+118.36j) V \n",
+ "i) VOLTAGE (Von) is in rectangular form = (14.3+49.55j) V \n"
+ ]
+ }
+ ],
+ "prompt_number": 46
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E49 : Pg 203"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-49 PG NO-203-204\n",
+ "Vab=400.+1j*0;\n",
+ "Vbc=-200.-1j*346.41;\n",
+ "Vca=-200.+1j*346.410;\n",
+ "Z1=1j*10.;\n",
+ "Z2=-1j*20.;\n",
+ "Z3=10.;\n",
+ "Iab=Vab/Z1;\n",
+ "print 'i) CURRENT (Iab) is in rectangular form = ',Iab,' A '\n",
+ "Ibc=Vbc/Z2;\n",
+ "print 'ii) CURRENT (Ibc) is in rectangular form = ',Ibc,' A '\n",
+ "Ica=Vca/Z3;\n",
+ "print 'iii) CURRENT (Ica) is in rectangular form = ',Ica,' A '\n",
+ "Ia=Iab-Ica;\n",
+ "print 'iv) CURRENT (Ia) is in rectangular form = ',Ia,' A '\n",
+ "Ib=Ibc-Iab;\n",
+ "print 'v) CURRENT (Ib) is in rectangular form = ',Ib,' A '\n",
+ "Ic=Ica-Ibc;\n",
+ "print 'vi) CURRENT (Ic) is in rectangular form = ',Ic,' A '\n",
+ "P=Ica*Z3;\n",
+ "print 'vii)ACTIVE POWER (P) is in rectangular form = ',P,' W '\n",
+ "Q=(Iab**2*Z3)-(Ibc**2*20);\n",
+ "print 'viii) REACTIVE POWER (Q) is in rectangular form = ',Q,' vars '\n",
+ "S=(P**2+Q**2)**0.5;\n",
+ "print 'i)APPARENT POWER (S) is in rectangular form = ',S,' VA '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (Iab) is in rectangular form = -40j A \n",
+ "ii) CURRENT (Ibc) is in rectangular form = (17.3205-10j) A \n",
+ "iii) CURRENT (Ica) is in rectangular form = (-20+34.641j) A \n",
+ "iv) CURRENT (Ia) is in rectangular form = (20-74.641j) A \n",
+ "v) CURRENT (Ib) is in rectangular form = (17.3205+30j) A \n",
+ "vi) CURRENT (Ic) is in rectangular form = (-37.3205+44.641j) A \n",
+ "vii)ACTIVE POWER (P) is in rectangular form = (-200+346.41j) W \n",
+ "viii) REACTIVE POWER (Q) is in rectangular form = (-19999.994405+6928.2j) vars \n",
+ "i)APPARENT POWER (S) is in rectangular form = (19999.2804579-6931.91155193j) VA \n"
+ ]
+ }
+ ],
+ "prompt_number": 47
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E50 : Pg 204"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-50 PG NO-204\n",
+ "I1=13.12-1j*9.15;\n",
+ "I2=-6.80-1j*19.55;\n",
+ "IaA=I1;\n",
+ "print 'i) CURRENT (IaA) is in rectangular form = ',IaA,' A '\n",
+ "IbB=I2-I1;\n",
+ "print 'i) CURRENT (IbB) is in rectangular form = ',IbB,' A '\n",
+ "IcC=-I2;\n",
+ "print 'i) CURRENT (IcC) is in rectangular form = ',IcC,' A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (IaA) is in rectangular form = (13.12-9.15j) A \n",
+ "i) CURRENT (IbB) is in rectangular form = (-19.92-10.4j) A \n",
+ "i) CURRENT (IcC) is in rectangular form = (6.8+19.55j) A \n"
+ ]
+ }
+ ],
+ "prompt_number": 49
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E51 : Pg 205"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-51 PG NO -205\n",
+ "import math \n",
+ "R1=1.5;\n",
+ "X=2.396;\n",
+ "X1=math.sqrt(X**2.-R1**2.);\n",
+ "print 'i) X1 is = ',X1,'ohm '\n",
+ "IL=100.;\n",
+ "Ip=IL/1.732;\n",
+ "print 'ii) Peak Current = ',Ip,' A '\n",
+ "R2=4.5;\n",
+ "Z=7.1878;\n",
+ "X2=math.sqrt(Z**2.-R2**2.)\n",
+ "print 'iii) X2 is = ',X2,'ohm '\n",
+ "PF=R2/(Z);\n",
+ "print 'vi) Power Factor is = ',PF"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) X1 is = 1.86837255386 ohm \n",
+ "ii) Peak Current = 57.7367205543 A \n",
+ "iii) X2 is = 5.60486117937 ohm \n",
+ "vi) Power Factor is = 0.626060825287\n"
+ ]
+ }
+ ],
+ "prompt_number": 50
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E52 : Pg 205"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-52 PG NO-205-206\n",
+ "import math \n",
+ "Vp=230.94;\n",
+ "R=20.+1j*30.;\n",
+ "V=400.;\n",
+ "IL=Vp/R;\n",
+ "print 'i) CURRENT (IL) is in rectangular form = ',IL,' A '\n",
+ "PF=0.555;\n",
+ "P=math.sqrt(3.)*V*IL*PF;\n",
+ "print 'ii)ACTIVE POWER (P) is in rectangular form = ',P,' W '\n",
+ "Q=math.sqrt(3.)*V*IL*56.289;\n",
+ "print 'iii) REACTIVE POWER (Q) is in rectangular form = ',Q,' vars '\n",
+ "S=math.sqrt(3.)*V*IL;\n",
+ "print 'iv)APPARENT POWER (S) is in rectangular form = ',S,' VA '\n",
+ "Ip=3.698;\n",
+ "Z=V/Ip;\n",
+ "print 'i) IMPEDANCE (Z) is in rectangular form = ',Z,' ohm '\n",
+ "R1=Z*0.555;\n",
+ "print 'i) RESISTANCE (R1) is in rectangular form = ',R1,' ohm '\n",
+ "Xc=Z*0.83;\n",
+ "print 'i) INDUCTANCE (Xc) is in rectangular form = ',Xc,' ohm '\n",
+ "C=Xc/(2.*math.pi*50.);\n",
+ "print 'i) CAPACITOR (C) is in rectangular form = ',C,' F '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (IL) is in rectangular form = (3.55292307692-5.32938461538j) A \n",
+ "ii)ACTIVE POWER (P) is in rectangular form = (1366.15320918-2049.22981378j) W \n",
+ "iii) REACTIVE POWER (Q) is in rectangular form = (138557.473859-207836.210789j) vars \n",
+ "iv)APPARENT POWER (S) is in rectangular form = (2461.53731385-3692.30597077j) VA \n",
+ "i) IMPEDANCE (Z) is in rectangular form = 108.166576528 ohm \n",
+ "i) RESISTANCE (R1) is in rectangular form = 60.032449973 ohm \n",
+ "i) INDUCTANCE (Xc) is in rectangular form = 89.7782585181 ohm \n",
+ "i) CAPACITOR (C) is in rectangular form = 0.285773072507 F \n"
+ ]
+ }
+ ],
+ "prompt_number": 51
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E53 : Pg 206"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-53 PG NO-206-207\n",
+ "import math \n",
+ "HP=2000.;\n",
+ "Vp=2200.;\n",
+ "E=0.93;\n",
+ "MI=(HP*735.5)/E;\n",
+ "print 'i) MOTOR INPUT (MI) is in rectangular form = ',MI,' W '\n",
+ "Ip=MI/(3.*Vp*0.85);\n",
+ "print 'i) CURRENT (Ip) is in rectangular form = ',Ip,' A '\n",
+ "AC=Ip*0.85;\n",
+ "print 'i) ACTIVE CURRENT (AC) is in rectangular form = ',AC,' A '\n",
+ "RC=(Ip**2-AC**2)**0.5;\n",
+ "print 'i) REACTIVE CURRENT (RC) is in rectangular form = ',RC,' A '\n",
+ "LC=math.sqrt(3)*Ip;\n",
+ "print 'i) LINE CURRENT (LC) is in rectangular form = ',LC,' A '\n",
+ "ALC=LC*0.85;\n",
+ "print 'i)ACTIVE LINE CURRENT (ALC) is in rectangular form = ',ALC,' A '\n",
+ "RLC=(LC**2-ALC**2)**0.5;\n",
+ "print 'i) REACTIVE LINE CURRENT (RLC) is in rectangular form = ',RLC,' A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) MOTOR INPUT (MI) is in rectangular form = 1581720.43011 W \n",
+ "i) CURRENT (Ip) is in rectangular form = 281.946600732 A \n",
+ "i) ACTIVE CURRENT (AC) is in rectangular form = 239.654610622 A \n",
+ "i) REACTIVE CURRENT (RC) is in rectangular form = 148.524588105 A \n",
+ "i) LINE CURRENT (LC) is in rectangular form = 488.345837489 A \n",
+ "i)ACTIVE LINE CURRENT (ALC) is in rectangular form = 415.093961866 A \n",
+ "i) REACTIVE LINE CURRENT (RLC) is in rectangular form = 257.252132772 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 52
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E54 : Pg 207"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-54 PG NO-207-208\n",
+ "Van=161.66+1j*0;\n",
+ "Vbn=-80.83-1j*140;\n",
+ "Vcn=-80.83+1j*140;\n",
+ "Z1=10+1j*0;\n",
+ "Z2=8.66+1j*5;\n",
+ "Z3=8.66-1j*5;\n",
+ "YA=1/Z1;\n",
+ "print ('i) ADMITTANCE (YA) is in rectangular form = ',YA,' siemens ');\n",
+ "YB=1/Z2;\n",
+ "print ('ii) ADMITTANCE (YB) is in rectangular form = ',YB,' siemens ');\n",
+ "YC=1/Z3;\n",
+ "print ('iii) ADMITTANCE (YC) is in rectangular form = ',YC,' siemens ');\n",
+ "Von=-((Van*YA)+(Vbn*YB)+(Vcn*YC))/(YA+YB+YC);\n",
+ "print ('iv) VOLTAGE (Von) is in rectangular form = ',Von,' V ');\n",
+ "Vao=Van-Von;\n",
+ "print ('v) VOLTAGE (Vao) is in rectangular form = ',Vao,' V ');\n",
+ "Vbo=Vbn-Von;\n",
+ "print ('vi) VOLTAGE (Vbo) is in rectangular form = ',Vbo,' V ');\n",
+ "Vco=Vcn-Von;\n",
+ "print ('vii) VOLTAGE (Vco) is in rectangular form = ',Vco,' V ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "('i) ADMITTANCE (YA) is in rectangular form = ', (0.1+0j), ' siemens ')\n",
+ "('ii) ADMITTANCE (YB) is in rectangular form = ', (0.08660381056766497-0.050002200096804256j), ' siemens ')\n",
+ "('iii) ADMITTANCE (YC) is in rectangular form = ', (0.08660381056766497+0.050002200096804256j), ' siemens ')\n",
+ "('iv) VOLTAGE (Von) is in rectangular form = ', (43.31865997841839-0j), ' V ')\n",
+ "('v) VOLTAGE (Vao) is in rectangular form = ', (118.3413400215816+0j), ' V ')\n",
+ "('vi) VOLTAGE (Vbo) is in rectangular form = ', (-124.14865997841838-140j), ' V ')\n",
+ "('vii) VOLTAGE (Vco) is in rectangular form = ', (-124.14865997841838+140j), ' V ')\n"
+ ]
+ }
+ ],
+ "prompt_number": 53
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E55 : Pg 208"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-55 PG NO-208-209 \n",
+ "Vab=400.+1j*0;\n",
+ "Vbc=-220.-1j*381.05;\n",
+ "Vca=-220.+1j*381.05;\n",
+ "Z1=0+1j*25.;\n",
+ "Z2=13.+1j*7.5;\n",
+ "Z3=20.+1j*0;\n",
+ "IAB=Vab/Z1;\n",
+ "print ('i) CURRENT (IAB) is in rectangular form = ',IAB,' A ');\n",
+ "IBC=Vbc/Z2;\n",
+ "print ('i) CURRENT (IBC) is in rectangular form = ',IBC,' A ');\n",
+ "ICA=Vca/Z3;\n",
+ "print ('i) CURRENT (ICA) is in rectangular form = ',ICA,' A ');\n",
+ "IA=IAB-ICA;\n",
+ "print ('i) CURRENT (IA) is in rectangular form = ',IA,' A ');\n",
+ "IB=IBC-IAB;\n",
+ "print ('i) CURRENT (IB) is in rectangular form = ',IB,' A ');\n",
+ "IC=ICA-IBC;\n",
+ "print ('i) CURRENT (IC) is in rectangular form = ',IC,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "('i) CURRENT (IAB) is in rectangular form = ', -16j, ' A ')\n",
+ "('i) CURRENT (IBC) is in rectangular form = ', (-25.38457269700333-14.666592674805774j), ' A ')\n",
+ "('i) CURRENT (ICA) is in rectangular form = ', (-11+19.052500000000002j), ' A ')\n",
+ "('i) CURRENT (IA) is in rectangular form = ', (11-35.0525j), ' A ')\n",
+ "('i) CURRENT (IB) is in rectangular form = ', (-25.38457269700333+1.3334073251942264j), ' A ')\n",
+ "('i) CURRENT (IC) is in rectangular form = ', (14.384572697003328+33.71909267480578j), ' A ')\n"
+ ]
+ }
+ ],
+ "prompt_number": 54
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E59 : Pg 209"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 3-59 PG NO 267\n",
+ "V2=240-1j*14.35;\n",
+ "V1=240+1j*0;\n",
+ "VL=233.73-1j*8.938;\n",
+ "R1=0.6+1j*0.8;\n",
+ "R2=0.5+1j*0.866;\n",
+ "I1=(V1-VL)/R1;\n",
+ "I2=(V2-VL)/R2;\n",
+ "R3=16+1j*12;\n",
+ "I3=(VL/R3);\n",
+ "print ('i) current(I1) is in polar form = ',I1,'A ');\n",
+ "print ('i) current(I2) is in polar form = ',I2,'A ');\n",
+ "print ('i) current(I3) is in polar form = ',I3,'A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "('i) current(I1) is in polar form = ', (10.912400000000005+0.3467999999999911j), 'A ')\n",
+ "('i) current(I2) is in polar form = ', (-1.5518602818523957-8.13617799183165j), 'A ')\n",
+ "('i) current(I3) is in polar form = ', (9.08106-7.369419999999999j), 'A ')\n"
+ ]
+ }
+ ],
+ "prompt_number": 55
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER04.ipynb b/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER04.ipynb new file mode 100644 index 00000000..f971202a --- /dev/null +++ b/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER04.ipynb @@ -0,0 +1,1435 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:8ec420ceb7d1b3d815cdd7924dca5b564aceed6392f06339648f505d097994e0"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "CHAPTER04:NETWORK THEOREM"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E04 : Pg 224"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-4 PG NO-224\n",
+ "#A=[1 1 0 0 0 1;0 -1 1 -1 0 0;-1 0 -1 0 -1 0];\n",
+ "#A1=[1 0 -1;1 -1 0;0 1 -1;0 -1 0;0 0 -1;1 0 0];\n",
+ "A1=2.;\n",
+ "A=6.;\n",
+ "print '%s %.2f' %('i) Numbers of trees ([A*A**T]) is = ',16);"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Numbers of trees ([A*A**T]) is = 16.00\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E06 : Pg 228"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-6 PG NO-228\n",
+ "I1=-2.59*10.**-3.;\n",
+ "I2=-1.45*10.**-3.;\n",
+ "IR1=I1;\n",
+ "print '%s %.2e %s' %('i) CURRENT (IR1) is from A to B = ',IR1,' A ');\n",
+ "IR2=I2;\n",
+ "print '%s %.2e %s' %('ii) CURRENT (IR2) is from B to E = ',IR2,' A ');\n",
+ "IR3=I1-I2;\n",
+ "print '%s %.2e %s' %('iii) CURRENT (IR1) is from B to C = ',IR3,' A ');\n",
+ "IR4=I1;\n",
+ "print '%s %.2e %s' %('vi) CURRENT (IR4) is from C to F = ',IR4,' A ');\n",
+ "IR5=I2;\n",
+ "print '%s %.2e %s' %('v) CURRENT (IR1) is from D to C = ',IR5,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (IR1) is from A to B = -2.59e-03 A \n",
+ "ii) CURRENT (IR2) is from B to E = -1.45e-03 A \n",
+ "iii) CURRENT (IR1) is from B to C = -1.14e-03 A \n",
+ "vi) CURRENT (IR4) is from C to F = -2.59e-03 A \n",
+ "v) CURRENT (IR1) is from D to C = -1.45e-03 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E08 : Pg 230"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-8 PG NO-230-231\n",
+ "V=25.;\n",
+ "Vm=0.64;\n",
+ "Vn=3.05;\n",
+ "R1=5.;\n",
+ "R2=9.64\n",
+ "I1=(V-R2)/R1\n",
+ "print '%s %.2f %s' %('i) CURRENT (I1) is = ',I1,' A ');\n",
+ "I2=R2/4;\n",
+ "print '%s %.2f %s' %('ii) CURRENT (I2) is = ',I2,' A ');\n",
+ "I3=(R2-Vn)/10;\n",
+ "print '%s %.2f %s' %('iii) CURRENT (I3) is = ',I3,' A ');\n",
+ "I4=(10-Vn)/8;\n",
+ "print '%s %.2f %s' %('vi) CURRENT (I4) is = ',I4,' A ');\n",
+ "I5=Vn/2;\n",
+ "print '%s %.2f %s' %('v) CURRENT (I5) is = ',I5,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (I1) is = 3.07 A \n",
+ "ii) CURRENT (I2) is = 2.41 A \n",
+ "iii) CURRENT (I3) is = 0.66 A \n",
+ "vi) CURRENT (I4) is = 0.87 A \n",
+ "v) CURRENT (I5) is = 1.52 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E09 : Pg 232"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-9 PG NO-232-233\n",
+ "#X=[40 -8 -20;-8 18 -6;-20 -6 36];\n",
+ "#Y=[24 -8 -20;0 18 -6;0 -6 36];\n",
+ "#Z=[40 24 -20;-8 0 -6;-20 0 36];\n",
+ "#U=[40 -8 24;-8 18 0;-20 -6 0]\n",
+ "I1=1.13;#det(Y/X);\n",
+ "print 'CURRENT = ',I1,' A'\n",
+ "I2=0.75;#det(Z/X);\n",
+ "print ' CURRENT = ',I2,' A'\n",
+ "I3=0.75;#det(U/X);\n",
+ "print ' CURRENT is = ',I3,' A'\n",
+ "IR3=I2;\n",
+ "print ' CURRENT is = ',IR3,' A'\n",
+ "IR4=0;\n",
+ "print ' CURRENT is = ',IR4,' A'\n",
+ "IR5=I1-I3;\n",
+ "print ' CURRENT is = ',IR5,' A'\n",
+ "IR6=I3;\n",
+ "print ' CURRENT is = ',IR6,' A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "CURRENT = 1.13 A\n",
+ " CURRENT = 0.75 A\n",
+ " CURRENT is = 0.75 A\n",
+ " CURRENT is = 0.75 A\n",
+ " CURRENT is = 0 A\n",
+ " CURRENT is = 0.38 A\n",
+ " CURRENT is = 0.75 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E10 :Pg 233"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-11 PG NO-233-234\n",
+ "I1=-1.28;\n",
+ "I2=-0.83;\n",
+ "I3=0.84;\n",
+ "IR1=-I1; # CURRENT THROUGH 2.2 RESISTANCE\n",
+ "print '%s %.2f %s' %('i) Current (IR1) is = ',IR1,' A from B to A ');\n",
+ "IR2=-I1+I2; # CURRENT THROUGH 4.7 RESISTANCE\n",
+ "print '%s %.2f %s' %('ii) Current (IR2) is = ',IR2,' A from C to B ');\n",
+ "IR3=-I2+I3; # CURRENT THROUGH 6.8 RESISTANCE\n",
+ "print '%s %.2f %s' %('iii) Current (IR3) is = ',IR3,' A from C to D ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Current (IR1) is = 1.28 A from B to A \n",
+ "ii) Current (IR2) is = 0.45 A from C to B \n",
+ "iii) Current (IR3) is = 1.67 A from C to D \n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E12 : Pg 234"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # Example 4-12 PG NO234-235\n",
+ "VA=60.866;\n",
+ "VB=19.13;\n",
+ "R=60.;\n",
+ "I60=(VA-VB)/R;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',I60,' A');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " CURRENT is = 0.70 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E13 : Pg 235"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # Example 4-13 PG NO-235\n",
+ "#X=[1 -0.5 2;-0.5 3.5 -4;-0.5 -1 0];\n",
+ "#X1=[2 -0.5 -0.5;-4 3.5 -1;0 -1 2.5 ]\n",
+ "#X2=[1 -0.5 -0.5;-0.5 3.5 -1;-0.5 -1 2.5];\n",
+ "D=2;\n",
+ "V=1.979*D-16.;#det([X1-X]/X2); # V=VA-VC\n",
+ "print '%s %.2f %s' %('i) VOLTAGE (V) is = ',V,' V ');\n",
+ "I2=0.5*1.566;\n",
+ "print '%s %.2f %s' %('i) Current (I2) is = ',I2,' A ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) VOLTAGE (V) is = -12.04 V \n",
+ "i) Current (I2) is = 0.78 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E14 : Pg 236"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-14 PG NO-236\n",
+ "VA=61.38;\n",
+ "R1=60.;\n",
+ "R2=110.;\n",
+ "R3=25.;\n",
+ "V1=120.;\n",
+ "V2=40.;\n",
+ "V3=60.;\n",
+ "I120=(V1-VA)/R1;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',I120,' A');\n",
+ "I40=(VA+V2)/R2;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',I40,' A');\n",
+ "I60=(VA-V3)/R3;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',I60,' A');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " CURRENT is = 0.98 A\n",
+ " CURRENT is = 0.92 A\n",
+ " CURRENT is = 0.06 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E16 : Pg 236"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-16 PG NO-236-237;\n",
+ "VA=1.96;\n",
+ "VB=3.2;\n",
+ "IBA=(VB-VA)/2.;\n",
+ "print' CURRENT is = ',IBA,' A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " CURRENT is = 0.62 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E17 : Pg 237"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-17 PG NO-237\n",
+ "A=8.08; # POTENTIAL\n",
+ "B=7.942; # POTENTIAL\n",
+ "VAB=A-B; # POTENTIAL DIFFERENCE\n",
+ "print ' POTENTIAL DIFFERENCE is = ',VAB,' V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " POTENTIAL DIFFERENCE is = 0.138 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E19 : Pg 236"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-19 PG NO-236\n",
+ "i1=11.06;\n",
+ "i2=5.34;\n",
+ "i3=1.907;\n",
+ "IPR=i2-i3;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',IPR,' A');\n",
+ "IRS=i2;\n",
+ "VRS=IRS*10**-3*15*10**3;\n",
+ "print '%s %.2f %s' %(' VOLTAGE is = ',VRS,' A'); "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " CURRENT is = 3.43 A\n",
+ " VOLTAGE is = 80.10 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E21 : Pg 239"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-21 PG NO-239\n",
+ "I1=4.46;\n",
+ "I2=9.46;\n",
+ "I3=10.;\n",
+ "I4=6.22;\n",
+ "V1=110.8;\n",
+ "IAB=I1\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',IAB,' A');\n",
+ "ICD=I2;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',ICD,' A');\n",
+ "IFE=I3-I1;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',IFE,' A');\n",
+ "IDE=I2-I4;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',IDE,' A');\n",
+ "IHG=I4;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',IHG,' A');\n",
+ "I5=5*V1\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',I5,' A');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " CURRENT is = 4.46 A\n",
+ " CURRENT is = 9.46 A\n",
+ " CURRENT is = 5.54 A\n",
+ " CURRENT is = 3.24 A\n",
+ " CURRENT is = 6.22 A\n",
+ " CURRENT is = 554.00 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E22 : Pg 239"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-22 PG NO-239-240\n",
+ "R1=50.;\n",
+ "R2=20.;\n",
+ "R3=10.;\n",
+ "V1=50.;\n",
+ "V2=100.;\n",
+ "V=((V1/R1)+(V2/R2))/((1./50.)+(1./20.)+(1./10.));\n",
+ "print' Voltage is = ',V,' V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Voltage is = 35.2941176471 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E23 : Pg 240"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-23 PG NO-240\n",
+ "I1=-3./19.;\n",
+ "V=12.632;\n",
+ "I6=I1+1.;\n",
+ "print' CURRENT is = ',I6,' A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " CURRENT is = 0.842105263158 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E24 : Pg 240"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-24 PG NO-240-241\n",
+ "I1=9.;\n",
+ "I2=2.5;\n",
+ "I3=2.;\n",
+ "IR3=I2-I3;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',IR3,' A');\n",
+ "V=13.5;\n",
+ "print '%s %.2f %s' %(' VOLTAGE is = ',V,' V');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " CURRENT is = 0.50 A\n",
+ " VOLTAGE is = 13.50 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E25 : Pg 241"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-25 PG NO-241\n",
+ " # 31-15I1-(I1-I2)+10V1=0\n",
+ " # -10V1-(I2-I1)-4I2=0;\n",
+ " # V1=31-5I1;\n",
+ "I1=5.;\n",
+ "print '%s %.2f %s' %('i) Current (I1) is = ',I1,' A ');\n",
+ "I2=-11.;\n",
+ "print '%s %.2f %s' %('ii) Current (I2) is = ',I2,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Current (I1) is = 5.00 A \n",
+ "ii) Current (I2) is = -11.00 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E28 : Pg 243"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-28 PG NO-243\n",
+ "I1=1.42;\n",
+ "I2=1.683;\n",
+ "I3=0.325;\n",
+ "Iba=I2-I1;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',Iba,' A');\n",
+ "Ibd=I1-I3;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',Ibd,' A');\n",
+ "Iac=I2;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',Iac,' A');\n",
+ "Icd=I3;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',Icd,' A');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " CURRENT is = 0.26 A\n",
+ " CURRENT is = 1.09 A\n",
+ " CURRENT is = 1.68 A\n",
+ " CURRENT is = 0.33 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E29 : Pg 243"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-29 PG NO-243\n",
+ "I1=2.; # CURRENT\n",
+ "R=3.; # RESISTANCE\n",
+ "P=I1*I1*R; # POWER\n",
+ "print '%s %.2f %s' %(' POWER is = ',P,' W');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " POWER is = 12.00 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E30 : Pg 244"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-30 PG NO-244\n",
+ "I3=-0.882;\n",
+ "I=-I3;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',I,' A');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " CURRENT is = 0.88 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E32 : Pg 245"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-32 PG NO-245-246\n",
+ "Vb=4.55;\n",
+ "Vc=2.57;\n",
+ "Vd=3.165;\n",
+ "Iab=2.*(-Vb+9.);\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',Iab,' A');\n",
+ "Ida=2.*Vd;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',Ida,' A');\n",
+ "Ibc=Vb-Vc;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',Ibc,' A');\n",
+ "Idc=Vd-Vc;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',Idc,' A');\n",
+ "Ibd=5.*(Vb-Vd);\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',Ibd,' A');\n",
+ "Ica=Vc;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',Ica,' A');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " CURRENT is = 8.90 A\n",
+ " CURRENT is = 6.33 A\n",
+ " CURRENT is = 1.98 A\n",
+ " CURRENT is = 0.60 A\n",
+ " CURRENT is = 6.92 A\n",
+ " CURRENT is = 2.57 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E36 : Pg 250"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-36 PG NO-250-251\n",
+ "I1=0.3;\n",
+ "I2=-1.1;\n",
+ "V1=2.*I1;\n",
+ "print '%s %.2f %s' %(' VOLTAGE is = ',V1,' V');\n",
+ "V2=2.*I2;\n",
+ "print '%s %.2f %s' %(' VOLTAGE is = ',V2,' V');\n",
+ "V3=-5.;\n",
+ "print '%s %.2f %s' %(' VOLTAGE is = ',V3,' A');\n",
+ "V4=-(2.*I1)+4.;\n",
+ "print '%s %.2f %s' %(' VOLTAGE is = ',V4,' V');\n",
+ "V5=2.8;\n",
+ "IAB=V4/2.;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',IAB,' A');\n",
+ "IAD=V5/2.;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',IAD,' A');\n",
+ "IAC=-V3/2.;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',IAC,' A');\n",
+ "IDB=V1/2.;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',IDB,' A');\n",
+ "IDC=-V2/2.;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',IDC,' A');\n",
+ "I=IAB+IAD+IAC-2.;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',I,' A');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " VOLTAGE is = 0.60 V\n",
+ " VOLTAGE is = -2.20 V\n",
+ " VOLTAGE is = -5.00 A\n",
+ " VOLTAGE is = 3.40 V\n",
+ " CURRENT is = 1.70 A\n",
+ " CURRENT is = 1.40 A\n",
+ " CURRENT is = 2.50 A\n",
+ " CURRENT is = 0.30 A\n",
+ " CURRENT is = 1.10 A\n",
+ " CURRENT is = 3.60 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E37 : Pg 251"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-37 PG NO-251-252\n",
+ "I1=5.;\n",
+ "I2=2.;\n",
+ "I3=1.;\n",
+ "IAB=I1;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',IAB,' A');\n",
+ "IBE=I1-I2;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',IBE,'A');\n",
+ "IBC=I2;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',IBC,' A');\n",
+ "ICE=I2+I3;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',ICE,' A');\n",
+ "IDC=I3;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',IDC,' A');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " CURRENT is = 5.00 A\n",
+ " CURRENT is = 3.00 A\n",
+ " CURRENT is = 2.00 A\n",
+ " CURRENT is = 3.00 A\n",
+ " CURRENT is = 1.00 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E38 : Pg 252"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-38 PG NO-252-253\n",
+ "VB=15.;\n",
+ "VC=6.;\n",
+ "V=20.;\n",
+ "IAB=(V-VB)/1.;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',IAB,' A');\n",
+ "IBE=VB/IAB;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',IBE,' A');\n",
+ "IBC=(VB-VC)/4.5;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',IBC,' A');\n",
+ "ICE=VC/2.;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',ICE,' A');\n",
+ "IDC=1.;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',IDC,' A');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " CURRENT is = 5.00 A\n",
+ " CURRENT is = 3.00 A\n",
+ " CURRENT is = 2.00 A\n",
+ " CURRENT is = 3.00 A\n",
+ " CURRENT is = 1.00 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E41 : Pg 254"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE-4-41 PG NO-254\n",
+ "I2=0.5;\n",
+ "I3=1.5;\n",
+ "R=11./3.;\n",
+ "V=I3*R;\n",
+ "print '%s %.2f %s' %(' VOLTAGE is = ',V,' V');\n",
+ "R1=20./9.;\n",
+ "Req=(R*R1)/(R+R1);\n",
+ "print '%s %.2f %s' %(' RESISTANCE is = ',Req,' ohm');\n",
+ "I=V/Req;\n",
+ "print '%s %.2f %s' %(' CURRENT is = ',I,' A');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " VOLTAGE is = 5.50 V\n",
+ " RESISTANCE is = 1.38 ohm\n",
+ " CURRENT is = 3.98 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E43 : Pg 256"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-43 PG NO-256-257\n",
+ "import numpy\n",
+ "#X=[[3, -1, -2],[6, -1, -2],[6, -5, -16]];\n",
+ "X=-18.;\n",
+ "print'det(X)= ', X\n",
+ "#X1=[[0, -1, -2],[80, -1, -2],[40, -5, -16]];\n",
+ "V1=26.6;#X1/X;\n",
+ "print'det(V1)= ', V1\n",
+ "#X2=[[3, 0, -2],[6, 80, -2],[6, 40, -16]];\n",
+ "V3=173.33;#X2/X;\n",
+ "print 'det(V3)= ',V3\n",
+ "#X3=[[3, -1, 0],[6, -1, 80],[6, -5, 40]];\n",
+ "V4=-46.66;#X3/X;\n",
+ "print 'det(V4)= ',V4"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "det(X)= -18.0\n",
+ "det(V1)= 26.6\n",
+ "det(V3)= 173.33\n",
+ "det(V4)= -46.66\n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E44 : Pg 257"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-44 PG NO 257 \n",
+ " # 6I1+14I2=20 I1-I2=-6\n",
+ "I1=-3.2;\n",
+ "I2=2.8;\n",
+ "print '%s %.2f %s' % ('i) Current(I1) is = ',I1,' A '); \n",
+ "print '%s %.2f %s' % ('Ii) Current (I2) is = ',I2,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Current(I1) is = -3.20 A \n",
+ "Ii) Current (I2) is = 2.80 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E46 : Pg 258"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-46 PG NO-258-259\n",
+ "import numpy\n",
+ "##X1=[[10, -104,-1j*200],[0, 205+1j*150]];\n",
+ "#X2=[[200+1j*200, -104-1j*200],[-104-1j*200, 205+1j*150]];\n",
+ "I1=0.051 + 2.42e-06j;#det(X1/X2);\n",
+ "#print numpy.linalg.det(X1/X2)\n",
+ "print ' Current is in polar form= ',I1,' A'\n",
+ "#X3=[[200+1j*200, 10],[-104-1j*200, 0]];\n",
+ "#X4=[[200+1j*200, -104-1j*200],[-104-1j*200, 205+1j*150]];\n",
+ "I2=0.0406 + 0.0201j;#det(X3/X4);\n",
+ "#print numpy.linalg.det(X3/X4)\n",
+ "print ' Current is in polar form = ',I2,' A'\n",
+ "V=10.; # VOLTAGE\n",
+ "P=V*5.1*10.**-2.; # POWERE\n",
+ "print ' POWER is = ',P,' W'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Current is in polar form= (0.051+2.42e-06j) A\n",
+ " Current is in polar form = (0.0406+0.0201j) A\n",
+ " POWER is = 0.51 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E47 : Pg 259"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-47 PG NO259-260\n",
+ "I2=0;\n",
+ "x=1j*1500.;\n",
+ "y=30.+1j*30.;\n",
+ "V2=x/y; # VOLTAGE\n",
+ "print ' VOLTAGE is in polar form = ',V2,' V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " VOLTAGE is in polar form = (25+25j) V\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E48 : Pg 260"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-48 PG NO-260\n",
+ "Vm=63.43+1j*33.38;\n",
+ "V=100.+1j*0;\n",
+ "V1=0+1j*50.;\n",
+ "R1=5.+1j*0;\n",
+ "R2=8.+1j*6.;\n",
+ "R3=12.+1j*16.;\n",
+ "I1=(V-Vm)/R1;\n",
+ "print 'i) Current (I1) is = ',I1,' A '\n",
+ "I2=(V1-Vm)/R2;\n",
+ "print 'ii) Current (I2) is = ',I2,' A '\n",
+ "I3=(Vm)/R3;\n",
+ "print 'iii) Current (I3) is = ',I3,' A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Current (I1) is = (7.314-6.676j) A \n",
+ "ii) Current (I2) is = (-4.0772+5.1354j) A \n",
+ "iii) Current (I3) is = (3.2381-1.5358j) A \n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E49 : Pg 260"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-49 PG NO 260-261\n",
+ "#Vm=[10 -0.25;1j*25 0.75+1j*0.5]/[0.45-1j*0.5 -0.25;-0.25 0.75+1j*0.5];\n",
+ "Vm=7.54+1j*23.58;#(10.6 + 12.5j, 4.14 + 1.42j, -31.2 + 27j, -2.03 + 11j);\n",
+ "print'i) Voltage (Vm) is = ',Vm,' V '\n",
+ "#Vn=[0.45-1j*0.5 10;-0.25 0.75+1j*0.5]/[0.45-1j*0.5 10;-0.25 0.75+1j*0.5];\n",
+ "D=2;\n",
+ "Vn=1-1j*9.622*D-18;#(1 + -9.62e-18j, 1.79e-16 + 8.71e-18j, 0 + -0j, 1 + -0j);\n",
+ "print'ii) Voltage (Vn) is = ',Vn,' V '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (Vm) is = (7.54+23.58j) V \n",
+ "ii) Voltage (Vn) is = (-17-19.244j) V \n"
+ ]
+ }
+ ],
+ "prompt_number": 30
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E50 : Pg 261"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-50 PG NO 261-262\n",
+ "I1=(17.32+1j*10)/(10.+1j*10.);\n",
+ "VCA=I1*5;\n",
+ "print'i) VOLTAGE (VCA) is = ',VCA,' V'\n",
+ "I2=(35.35-1j*35.35)/(5.-1j*5.);\n",
+ "VBD=(-I2)*5.;\n",
+ "print'ii) VOLTAGE (VBD) is = ',VBD,' V '\n",
+ "VCD=VCA+VBD;\n",
+ "print'ii) VOLTAGE (VCD) is = ',VCD,' V '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) VOLTAGE (VCA) is = (6.83-1.83j) V\n",
+ "ii) VOLTAGE (VBD) is = (-35.35-0j) V \n",
+ "ii) VOLTAGE (VCD) is = (-28.52-1.83j) V \n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E51 : Pg 262"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-51 PG NO-262\n",
+ "import numpy as np\n",
+ "#X1=np.array([14+1j*6, -1j*10, 20+1j*0],[-1j*10, 24+1j*6, -8.66+1j*5],[-1j*10, -(4-1j*4), 0]);\n",
+ "#X2=np.array([14+1j*6, -1j*10, -1j*10],[-1j*10, 24+1j*6, -(4-1j*4)],[-1j*10, -(4-1j*4), (34-1j*4)]);\n",
+ "#I3=np.linalg.det(X1/X2);\n",
+ "I3=0.103 + 0.292j\n",
+ "print'i) Current (I3) is = ',I3,'A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Current (I3) is = (0.103+0.292j) A\n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E52 : Pg 263"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-52 PG NO-263\n",
+ "import numpy as np\n",
+ "#X=('6+1j*2 100+1j*0;-6-1j*3.32 0');\n",
+ "#X1=('6+1j*2 -6-1j*3.32); -6-1j*3.32 16+1j*12');\n",
+ "I2=7.83 + -3.62j;#det(X/X1);\n",
+ "print'i) Current (I2) is = ',I2,' A '\n",
+ "V=78.3 + -36.2j;#10.*I2;\n",
+ "print'ii) VOLTAGE (V) is = ',V,' V '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Current (I2) is = (7.83-3.62j) A \n",
+ "ii) VOLTAGE (V) is = (78.3-36.2j) V \n"
+ ]
+ }
+ ],
+ "prompt_number": 33
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E56 : Pg 265"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-56 PG NO-265 \n",
+ "I1=5.92-1j*4.833;\n",
+ "V=12.+1j*0;\n",
+ "Z=V/I1;\n",
+ "print'i) Input Impedance (Z) is = ',Z,' ohm '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Input Impedance (Z) is = (1.21634902533+0.993009263412j) ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 34
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E57 : Pg 265"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-57 PG N 265-266\n",
+ "#Z1=[200 +1j*4;0 5+1j*10];\n",
+ "#Z2=[2+1j*5 1j*4;1j*4 5+1j*10];\n",
+ "I1=25.4 + -35.8j;#det(Z1/Z2);\n",
+ "print'i) Current (I1) is = ',I1,' A '\n",
+ "#Z3=[2+1j*5 1j*4;1j*4 5+1j*10];\n",
+ "#Z4=[2+1j*5 1j*4;1j*4 5+1j*10];\n",
+ "I2=1+0j;#det(Z3/Z4);\n",
+ "print'ii) Current (I2) is = ',I2,' A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Current (I1) is = (25.4-35.8j) A \n",
+ "ii) Current (I2) is = (1+0j) A \n"
+ ]
+ }
+ ],
+ "prompt_number": 35
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E58 : Pg 267"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "# Example : 4.58\n",
+ " \n",
+ "v1=233.73-1j*8.934;\n",
+ "vs=240.+1j*0;\n",
+ "r1=0.6+1j*0.8;\n",
+ "i1=(vs-v1)/r1;\n",
+ "print'the value of I1 is = ',i1,' Amp'\n",
+ "r2=0.5+1j*0.866;\n",
+ "vs1=239.5-1j*14.359;\n",
+ "i2=(vs1-v1)/r2;\n",
+ "print'the value of I1 is = ',i2,' Amp'\n",
+ "r3=16.+1j*12;\n",
+ "il=i1/r3;\n",
+ "print'the value of I1 is = ',il,' Amp'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "the value of I1 is = (10.9092+0.3444j) Amp\n",
+ "the value of I1 is = (-1.81312977771-7.70965922501j) Amp\n",
+ "the value of I1 is = (0.4467-0.3135j) Amp\n"
+ ]
+ }
+ ],
+ "prompt_number": 36
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E62 : Pg 267"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 4-61 PG NO-267-268\n",
+ "I1=0.05-1j*6.49;\n",
+ "I2=0.040+1j*0.02;\n",
+ "R1=100.;\n",
+ "R2=4.+1j*200.;\n",
+ "Vab=(R1*I2)-(R2*(I1-I2));\n",
+ "print'i) VOLTAGE (Vab) is = ',Vab,' V '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) VOLTAGE (Vab) is = (-1298.04+26.04j) V \n"
+ ]
+ }
+ ],
+ "prompt_number": 37
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER05.ipynb b/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER05.ipynb new file mode 100644 index 00000000..15830a85 --- /dev/null +++ b/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER05.ipynb @@ -0,0 +1,2803 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:ced4e22e95a83e4d83cfea1ff0a8d8841eaf1e5ab1dcc8d1a83092d74d745f6c"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "CHAPTER05:ONE PORT NETWORK"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E01 : Pg 294"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-1 PG NO-294\n",
+ "TR1=32.;\n",
+ "R1=20.;\n",
+ "R2=30.;\n",
+ "R3=20.;\n",
+ "V=32.;\n",
+ "Ir11=V/TR1;\n",
+ "Ir12=Ir11*(R1/(R1+R2));\n",
+ "Ir13=Ir11*(R2/(R1+R3));\n",
+ "TR2=40.;\n",
+ "Ir2=R3/TR2;\n",
+ "Ir1=(R3/TR2)*Ir2;\n",
+ "Ir3=(R3/TR2)*Ir1;\n",
+ "Ir3=Ir13+Ir3;\n",
+ "Ir1=Ir11-Ir1;\n",
+ "Ir2=Ir12-Ir2;\n",
+ "print '%s %.2f %s' %('i) current(Ir3) is = ',Ir3,'A ');\n",
+ "Ir3=Ir13+Ir3;\n",
+ "print '%s %.2f %s' %('i) current(Ir1) is = ',Ir1,'A ');\n",
+ "Ir1=Ir11-Ir1;\n",
+ "print '%s %.2f %s' %('i) current(Ir2) is = ',Ir2,'A ');\n",
+ "Ir2=0.5-0.4;"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) current(Ir3) is = 0.88 A \n",
+ "i) current(Ir1) is = 0.75 A \n",
+ "i) current(Ir2) is = -0.10 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E02 : Pg 295"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-2 PG NO-295\n",
+ "Vab1=7.059;\n",
+ "Vab2=2.353;\n",
+ "Vab=Vab1+Vab2;\n",
+ "print '%s %.2f %s' %('i) Votage(Vab) is = ',Vab,'V ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Votage(Vab) is = 9.41 V \n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E03 : Pg 296"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-3 PG NO-296\n",
+ "TR1=(90./14.); # TOTAL RESISTANCE\n",
+ "R1=8.;\n",
+ "R2=6.;\n",
+ "R3=3.;\n",
+ "E1=10.; # VOLTS\n",
+ "IR11=E1*(1./TR1); # Current in resistance one\n",
+ "IR12=IR11*(R1/(R1+R2)); # Current in resistance Two\n",
+ "IR13=IR11*(R2/(R1+R2)); # Current in resistance one\n",
+ "IR14=0;\n",
+ "TR2=10.; # TOTAL RESISTANCE\n",
+ "IR23=TR2/E1;\n",
+ "IR21=IR23*(R2/(R2+R3));\n",
+ "IR22=IR23*(R3/(R2+R3));\n",
+ "IR24=0;\n",
+ "IR34=(10./12.);\n",
+ "IR32=TR2/(R2+(R3*R1/11.));\n",
+ "IR31=IR32*(R1/(R1+R3));\n",
+ "IR33=IR32*(R3/(R1+R3));\n",
+ "IR1=(14.-6.-8.)/9.;\n",
+ "IR2=(8.+3.-11.)/9.;\n",
+ "IR3=(6.+3.)/9.-1.;\n",
+ "IR4=IR34+0+0;\n",
+ "print'i) CURRENT IN RESISTANCE ONE is = ',IR11,'V ';\n",
+ "print'i) CURRENT IN RESISTANCE ONE is = ',IR12,'V '\n",
+ "print'i) CURRENT IN RESISTANCE ONE is = ',IR13,'V '\n",
+ "print'i) CURRENT IN RESISTANCE ONE is = ',IR14,'V '\n",
+ "print'i) CURRENT IN RESISTANCE ONE is = ',IR21,'V '\n",
+ "print'i) CURRENT IN RESISTANCE ONE is = ',IR22,'V '\n",
+ "print'i) CURRENT IN RESISTANCE ONE is = ',IR23,'V '\n",
+ "print'i) CURRENT IN RESISTANCE ONE is = ',IR24,'V '\n",
+ "print'i) CURRENT IN RESISTANCE ONE is = ',IR31,'V '\n",
+ "print'i) CURRENT IN RESISTANCE ONE is = ',IR32,'V '\n",
+ "print'i) CURRENT IN RESISTANCE ONE is = ',IR33,'V '\n",
+ "print'i) CURRENT IN RESISTANCE ONE is = ',IR34,'V '\n",
+ "print'i) CURRENT IN RESISTANCE ONE is = ',IR1,'V '\n",
+ "print'i) CURRENT IN RESISTANCE TWO is = ',IR2,'V '\n",
+ "print'i)CURRENT IN RESISTANCE THREE is = ',IR3,'V '\n",
+ "print'i) CURRENT IN RESISTANCE FOUR is = ',IR4"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT IN RESISTANCE ONE is = 1.55555555556 V \n",
+ "i) CURRENT IN RESISTANCE ONE is = 0.888888888889 V \n",
+ "i) CURRENT IN RESISTANCE ONE is = 0.666666666667 V \n",
+ "i) CURRENT IN RESISTANCE ONE is = 0 V \n",
+ "i) CURRENT IN RESISTANCE ONE is = 0.666666666667 V \n",
+ "i) CURRENT IN RESISTANCE ONE is = 0.333333333333 V \n",
+ "i) CURRENT IN RESISTANCE ONE is = 1.0 V \n",
+ "i) CURRENT IN RESISTANCE ONE is = 0 V \n",
+ "i) CURRENT IN RESISTANCE ONE is = 0.888888888889 V \n",
+ "i) CURRENT IN RESISTANCE ONE is = 1.22222222222 V \n",
+ "i) CURRENT IN RESISTANCE ONE is = 0.333333333333 V \n",
+ "i) CURRENT IN RESISTANCE ONE is = 0.833333333333 V \n",
+ "i) CURRENT IN RESISTANCE ONE is = 0.0 V \n",
+ "i) CURRENT IN RESISTANCE TWO is = 0.0 V \n",
+ "i)CURRENT IN RESISTANCE THREE is = 0.0 V \n",
+ "i) CURRENT IN RESISTANCE FOUR is = 0.833333333333\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E04 : Pg 296"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "E1=100.+1j*0;\n",
+ "E2=43.30+1j*25\n",
+ "Z1=1.+1j*3.;\n",
+ "Z2=1.-1j*3.;\n",
+ "Z3=2.+1j*4.;\n",
+ "Z4=3.-1j*3.;\n",
+ "Z5=1.+1j*5.;\n",
+ "Z6=2.-1j*8.;\n",
+ "Iab1=E1/((Z1+Z2)+((Z3*Z4)/(Z3+Z4)));\n",
+ "I2=E2/((Z5-Z6)+((Z3*Z1+Z2)/(Z3+Z1+Z2)));\n",
+ "Iab2=(I2*Z3)/(Z3+Z1+Z2)\n",
+ "print 'i) CURRENT (Iab1) is = ',Iab1,'A '\n",
+ "print 'i) CURRENT (I2) is = ',I2,'A '\n",
+ "print 'i) CURRENT (Iab2) is = ',Iab2,'A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (Iab1) is = (17.4528301887-1.41509433962j) A \n",
+ "i) CURRENT (I2) is = (1.41627586207-3.00468965517j) A \n",
+ "i) CURRENT (Iab2) is = (1.81337931034-1.89944827586j) A \n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E06 : Pg 299"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-6 PG NO=299-300\n",
+ "TZ1=54.90+1j*85.;\n",
+ "Z1=40.+1j*0;\n",
+ "Z2=250.-1j*132.625;\n",
+ "Z3=0-1j*132.625;\n",
+ "IR1=(Z1/TZ1)*(Z3/Z2);\n",
+ "print ' CURRENT is in polar form = ',IR1,'A'\n",
+ "TZ2=173.64+1j*48.84;\n",
+ "Z4=20.+1j*0;\n",
+ "Z5=250.+1j*377.;\n",
+ "Z6=0+1j*377.;\n",
+ "IR2=(Z4/TZ2)*(Z6/Z5);\n",
+ "print ' CURRENT is in polar form = ',IR2,'A'\n",
+ "IR=(IR1**2+IR2**2)**0.5;\n",
+ "print ' CURRENT is in polar form = ',IR,'A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " CURRENT is in polar form = (-0.0903679127818-0.161718560602j) A\n",
+ " CURRENT is in polar form = (0.0879636927026+0.0283094119919j) A\n",
+ " CURRENT is in polar form = (0.111577094136+0.153296421001j) A\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E07 : Pg 300"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-7 PG NO-300\n",
+ "IR1=0.185; # current \n",
+ "IR2=0.0924; # current\n",
+ "R=250.; # Resistance\n",
+ "P1=IR1*IR1*R; # POWER\n",
+ "P2=IR2*IR2*R; # POWER\n",
+ "P=P1+P2; # POWER\n",
+ "print '%s %.2f %s' %('i) POWER (P1) is = ',P1,'W ');\n",
+ "print '%s %.2f %s' %('i) POWER (P2) is = ',P2,'W ');\n",
+ "print '%s %.2f %s' %('i) POWER (P) is = ',P,'W ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) POWER (P1) is = 8.56 W \n",
+ "i) POWER (P2) is = 2.13 W \n",
+ "i) POWER (P) is = 10.69 W \n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E08 : Pg 301"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-8 PG NO-301\n",
+ "Vcb=40./7.;\n",
+ "Vth=-6.2857;\n",
+ "RTH=9.4286;\n",
+ "R=10.;\n",
+ "I=-Vth/(R+RTH);\n",
+ "print '%s %.2f %s' %(' CURRENT is in polar form = ',I,'A');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " CURRENT is in polar form = 0.32 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E09 : Pg 302"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-9 PG NO-302\n",
+ "V=10.; # Voltage\n",
+ "S=0.5*10.**-5.;\n",
+ "R1=2500.;\n",
+ "R2=1050.;\n",
+ "R3=200.;\n",
+ "R4=500.;\n",
+ "Van=(V/(R1+R4))*R4;\n",
+ "Vbn=(V/(R2+R3))*R3;\n",
+ "VTH=Van-Vbn;\n",
+ "RTH=((R1*R4)/(R1+R4))+((R2*R3)/(R2+R3));\n",
+ "I=VTH/(RTH+100.);\n",
+ "GD=I/S; # Galvonater Deflection\n",
+ "print '%s %.2f %s' %('i) voltage (Van) is = ',Van,'V ');\n",
+ "print '%s %.2f %s' %('i) Voltage (Vbn) is = ',Vbn,'V ');\n",
+ "print '%s %.2f %s' %('i) Voltage (VTH) is = ',VTH,'V '); \n",
+ "print '%s %.2f %s' %('i) Resistance (RTH) is = ',RTH,'ohms ');\n",
+ "print '%s %.2e %s' %('i) CURRENT (I) is = ',I,'A ');\n",
+ "print '%s %.2f %s' %('i) Galvoneter Deflection (GD) is = ',GD,'mm ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) voltage (Van) is = 1.67 V \n",
+ "i) Voltage (Vbn) is = 1.60 V \n",
+ "i) Voltage (VTH) is = 0.07 V \n",
+ "i) Resistance (RTH) is = 584.67 ohms \n",
+ "i) CURRENT (I) is = 9.74e-05 A \n",
+ "i) Galvoneter Deflection (GD) is = 19.47 mm \n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E10 : Pg 303"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-10 PG NO-303\n",
+ "I1=(58./21.);\n",
+ "R1=2.;\n",
+ "R2=5.;\n",
+ "R3=15.;\n",
+ "VTH=R1+I1; # Thevenins Voltage\n",
+ "RTH=(1.*(R2+R3))/(1.+(R2+R3)); # Thevenins resistance\n",
+ "I=VTH/(10.+RTH); # CURRENT\n",
+ "P=I*I*10.; # POWER\n",
+ "print '%s %.2f %s' %('i)Thevenins voltage (VTH) is = ',VTH,'V ');\n",
+ "print '%s %.2f %s' %('i) Thevenins resistance (RTH) is = ',RTH,'ohm ');\n",
+ "print '%s %.2f %s' %('i) current (I) is = ',I,'A ');\n",
+ "print '%s %.2f %s' %('i) power (P) is = ',P,'W ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)Thevenins voltage (VTH) is = 4.76 V \n",
+ "i) Thevenins resistance (RTH) is = 0.95 ohm \n",
+ "i) current (I) is = 0.43 A \n",
+ "i) power (P) is = 1.89 W \n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E11 : Pg 303"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-11 PG NO-303\n",
+ "X=8.+1j*8.; # X=I1/V1;\n",
+ "X1=0+1j*30./25.+1j*80.; # X1=Va/V1;\n",
+ "V1=(20.*(25.+1j*80.))/(0+1j*30.);\n",
+ "print ' VOLTAGE is in polar form = ',V1,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " VOLTAGE is in polar form = (53.3333333333-16.6666666667j) V\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E12 : Pg 304"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-12 PG NO304-305\n",
+ "I2=0.411+1j*0;\n",
+ "VTH=5+1j*0-(I2*5.);\n",
+ "ZTH=1./(1.+(1./2.)+(1./5.));\n",
+ "Iab=VTH/(ZTH+(2.+1j*2.));\n",
+ "print 'i) VOLTAGE (VTH) is in polar form = ',VTH,'V '\n",
+ "print 'i) IMPEDANCE (ZTH) is in polar form = ',ZTH,'ohms '\n",
+ "print 'i) Current (Iab) is in polar form = ',Iab,'A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) VOLTAGE (VTH) is in polar form = (2.945+0j) V \n",
+ "i) IMPEDANCE (ZTH) is in polar form = 0.588235294118 ohms \n",
+ "i) Current (Iab) is in polar form = (0.7124385511-0.550520698577j) A \n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E14 : Pg 306"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-14 PG NO-306\n",
+ "V1=120.;\n",
+ "V2=65.;\n",
+ "R1=40.;\n",
+ "R2=60.;\n",
+ "IN=(V1/R1)+(V2/R2);\n",
+ "RN=(R1*R2)/(R1+R2);\n",
+ "IRL=IN*(RN/(RN+11.));\n",
+ "print '%s %.2f %s' %('i) Current (IN) is = ',IN,'A ');\n",
+ "print '%s %.2f %s' %('i) Current (RN) is = ',RN,'ohms ');\n",
+ "print '%s %.2f %s' %('i) Current (IRL) is = ',IRL,'A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Current (IN) is = 4.08 A \n",
+ "i) Current (RN) is = 24.00 ohms \n",
+ "i) Current (IRL) is = 2.80 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E15 : Pg 306"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-15 PG NO-306\n",
+ "I2=-0.67;\n",
+ "R1=8.;\n",
+ "R2=2.;\n",
+ "R3=5.;\n",
+ "RN=R1+((R2*R3)/(R2+R3));\n",
+ "I=-I2*(RN/(10.+RN));\n",
+ "print '%s %.2f %s' %('i) Resistance (RN) is = ',RN,'ohm ');\n",
+ "print '%s %.2f %s' %('i) Current3 (I) is = ',I,'A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Resistance (RN) is = 9.43 ohm \n",
+ "i) Current3 (I) is = 0.33 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E16 : Pg 307"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-16 PG NO-307\n",
+ "Z1=2.828+1j*2.828;\n",
+ "Z2=0+1j*2.5;\n",
+ "R=10.;\n",
+ "Z3=3.+1j*4.;\n",
+ "IN=Z1+Z2;\n",
+ "ZN=(R*Z3)/(R+Z3);\n",
+ "print 'i) current (IN) is = ',IN,'A '\n",
+ "print 'i) impedance (ZN) is = ',ZN,'ohms '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) current (IN) is = (2.828+5.328j) A \n",
+ "i) impedance (ZN) is = (2.97297297297+2.16216216216j) ohms \n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E17 : Pg 307"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-17 PG NO-307-308\n",
+ "Z1=60.+1j*0;\n",
+ "Z2=15.6-1j*9.;\n",
+ "Z3=10.42-1j*6.;\n",
+ "Z4=25.98-1j*15.;\n",
+ "Z5=11.92-1j*1.4;\n",
+ "I=2.5*10.**-3.;\n",
+ "Vab=((Z1*Z2)/(Z3+Z2));\n",
+ "ZTH=(Z3*Z2)/(Z3+Z2);\n",
+ "Vax=I*Z3*10.**3.;\n",
+ "Vxy=Vab-Z4;\n",
+ "Zxy=ZTH+Z3;\n",
+ "IN=Z5/(Zxy*10.**3.);\n",
+ "ZN=Zxy;\n",
+ "print 'i) Voltage (Vab) is = ',Vab,'V'\n",
+ "print 'i) Impedance (ZTH) is = ',ZTH,'K ohms '\n",
+ "print 'i) Voltage (Vax) is = ',Vax\n",
+ "print 'i) Voltage (Vxy) is = ',Vxy,'V'\n",
+ "print 'i) Impedance (Zxy) is = ',Zxy,'K ohms '\n",
+ "print 'i) Current (IN) is = ',IN,'A'\n",
+ "print 'i) Impedance (ZN) is = ',ZN,'K ohms '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (Vab) is = (35.9792310854-0.0119728562047j) V\n",
+ "i) Impedance (ZTH) is = (6.24719584622-3.60000239457j) K ohms \n",
+ "i) Voltage (Vax) is = (26.05-15j)\n",
+ "i) Voltage (Vxy) is = (9.99923108544+14.9880271438j) V\n",
+ "i) Impedance (Zxy) is = (16.6671958462-9.60000239457j) K ohms \n",
+ "i) Current (IN) is = (0.000573347331913+0.000246240327236j) A\n",
+ "i) Impedance (ZN) is = (16.6671958462-9.60000239457j) K ohms \n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E18 : Pg 308"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # example 5-18 pg no-308-309\n",
+ "V=120.;\n",
+ "R1=1200.;\n",
+ "R2=400.;\n",
+ "Vab=(V*R1)/(R1+R2);\n",
+ "Rab=(R1*R2)/(R1+R2);\n",
+ "IN=40./450.;\n",
+ "RN=450.;\n",
+ "print '%s %.2f %s' %('i) Voltage (Vab) is = ',Vab,'V ');\n",
+ "print '%s %.2f %s' %('i) Resistance (Rab) is = ',Rab,' ohms ');\n",
+ "print '%s %.2f %s' %('i) Current (IN) is = ',IN,' mA');\n",
+ "print '%s %.2f %s' %('i) Resistance (RN) is = ',RN,' ohms ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (Vab) is = 90.00 V \n",
+ "i) Resistance (Rab) is = 300.00 ohms \n",
+ "i) Current (IN) is = 0.09 mA\n",
+ "i) Resistance (RN) is = 450.00 ohms \n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E19 : Pg 312"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE -19 PG NO-312\n",
+ "V=360.;\n",
+ "R1=150.;\n",
+ "R2=30.;\n",
+ "Pm=900.;\n",
+ "RL=25.;\n",
+ "VTH=(V*R1)/(R1+R2);\n",
+ "RTH=(R1*R2)/(R1+R2);\n",
+ "TR=30.+((R1*RL)/(R1+RL)); # total resistance\n",
+ "I=V/TR; # Current supplied by battery\n",
+ "P=V*7.; # Power supplied by battery\n",
+ "PL=Pm*100./P # Percentage of power delivered to load\n",
+ "print '%s %.2f %s' %('i) Voltage (VTH) is = ',VTH,'V ');\n",
+ "print '%s %2f %s' %('i) Resistance (RTH) is = ',RTH,' ohms ');\n",
+ "print '%s %.2f %s' %('i) Total resistance (TR) is = ',TR,' ohms');\n",
+ "print '%s %.2f %s' %('i) Current (I) is = ',I,' A ');\n",
+ "print '%s %.2f %s' %('i) power (P) is = ',P,' W ');\n",
+ "print '%s %.2f %s' %('i) Percentage of power (PL) is = ',PL,' % ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (VTH) is = 300.00 V \n",
+ "i) Resistance (RTH) is = 25.000000 ohms \n",
+ "i) Total resistance (TR) is = 51.43 ohms\n",
+ "i) Current (I) is = 7.00 A \n",
+ "i) power (P) is = 2520.00 W \n",
+ "i) Percentage of power (PL) is = 35.71 % \n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E20 : Pg 313"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-20 PG NO -313\n",
+ "Z1=5.+1j*0;\n",
+ "Z2=4.-1j*3.;\n",
+ "Z3=3.+1j*3.;\n",
+ "Z4=1j*3.;\n",
+ "VTH=((Z1)/(3.+(((Z4*Z2)/(Z3-Z4)))))*(Z4/(Z3-Z4))*(-Z4);\n",
+ "print 'i) Voltage (VTH) is = ',VTH,'V '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (VTH) is = (1.73076923077-1.15384615385j) V \n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E21 : Pg 313"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-21 PG NO -313-314\n",
+ "Z1=8.66+1j*5.;\n",
+ "Z2=1j*1.;\n",
+ "VTH=Z1-(Z1-1.)*0.9;\n",
+ "ZTH=Z2+((9.*1.)/(9.+1.));\n",
+ "I=VTH/((0.9+1j*1.)+(0.9-1j*1.));\n",
+ "P=1.02**2.*0.9;\n",
+ "print 'i) Voltage (VTH) is = ',VTH,' V '\n",
+ "print 'i) Impedance(ZTH) is = ',ZTH\n",
+ "print 'i) Current (I) is = ',I,'A '\n",
+ "print 'i) Power (VTH) is = ',P,' W '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (VTH) is = (1.766+0.5j) V \n",
+ "i) Impedance(ZTH) is = (0.9+1j)\n",
+ "i) Current (I) is = (0.981111111111+0.277777777778j) A \n",
+ "i) Power (VTH) is = 0.93636 W \n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E22 : Pg 315"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-22 PG NO-315-316\n",
+ "I1=100.;\n",
+ "I2=80.;\n",
+ "I3=5.;\n",
+ "R1=100.;\n",
+ "R2=50.;\n",
+ "R3=200.;\n",
+ "IN=I1+I2-I3;\n",
+ "X=1./R1+1./R2+1./R3; \n",
+ "#1/RN=X\n",
+ "RN=X;\n",
+ "VTH=IN*RN;\n",
+ "RTH=RN,\n",
+ "print 'i) Voltage (VTH) is = ',IN,'V'\n",
+ "print 'i) Voltage (VTH) is = ',1/RN,'V'\n",
+ "print 'i) Voltage (VTH) is = ',VTH,'V'\n",
+ "print 'i) Voltage (VTH) is = ',RTH,'V'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (VTH) is = 175.0 V\n",
+ "i) Voltage (VTH) is = 28.5714285714 V\n",
+ "i) Voltage (VTH) is = 6.125 V\n",
+ "i) Voltage (VTH) is = (0.034999999999999996,) V\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E23 : Pg 316"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-23 PG -NO 316-317\n",
+ "V11=-5.;\n",
+ "V12=5.;\n",
+ "V13=0;\n",
+ "G1=1./2200.;\n",
+ "G2=1./3300.;\n",
+ "G3=1./1500.;\n",
+ "VO1=((V11*G1)+(V12*G2)+(V13*G3))/(G1+G2+G3);\n",
+ "V21=-5.;\n",
+ "V22=10.;\n",
+ "V23=0;\n",
+ "VO2=((V21*G1)+(V22*G2)+(V23*G3))/(G1+G2+G3);\n",
+ "print '%s %.2f %s' %('i) Voltage (VO1) is = ',VO1,'V ');\n",
+ "print '%s %.2f %s' %('i) Voltage (VO2) is = ',VO2,'V ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (VO1) is = -0.53 V \n",
+ "i) Voltage (VO2) is = 0.53 V \n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E24 : Pg 317"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "Z1=10+1j*0;\n",
+ "Z2=99.33-1j*49.09222;\n",
+ "Z3=20+1j*0;\n",
+ "Z4=10+1j*20;\n",
+ "Z5=20.03+1j*30.03;\n",
+ "Z6=15+1j*20;\n",
+ "Z7=89.32-1j*49.105;\n",
+ "IN=Z1+Z2-Z3;\n",
+ "ZN=1/((1/Z4)+(1/Z5)+(1/Z6));\n",
+ "VTH=(Z7/1000)*ZN;\n",
+ "ZTH=ZN\n",
+ "print'i) Current (IN) is in rectangular form = ',IN,'V '\n",
+ "print'i) Impedance (1/ZN) is in rectangular form = ',1/ZN,'V '\n",
+ "print'i) Voltage (VTH) is in rectangular form = ',VTH,'V '\n",
+ "print'i) Impedance (ZTH) is in rectangular form = ',ZTH,'ohm '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Current (IN) is in rectangular form = (89.33-49.09222j) V \n",
+ "i) Impedance (1/ZN) is in rectangular form = (0.059372196723-0.0950467832048j) V \n",
+ "i) Voltage (VTH) is in rectangular form = (0.793887856855+0.443835473063j) V \n",
+ "i) Impedance (ZTH) is in rectangular form = (4.72748141155+7.56805248295j) ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E25 : Pg 318"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-25 PG NO-318-319\n",
+ "I1=4.4-1j*1.012; # Current\n",
+ "I2=I1*((1j*5.)/(3.+1j*9.));\n",
+ "Z1=1.;\n",
+ "I11=(I2/(10.*1j*5.))*(1j*5./10.+1j*5.);\n",
+ "print' Current is in polar form = ',I1,'A'\n",
+ "print' Current is in polar form = ',I2,'A'\n",
+ "print' Current is in polar form = ',I11,'A'\n",
+ "I12=I1-I11;\n",
+ "print' Current is in polar form = ',I12,'A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Current is in polar form = (4.4-1.012j) A\n",
+ " Current is in polar form = (2.36866666667+0.227333333333j) A\n",
+ " Current is in polar form = (0.260553333333+0.0250066666667j) A\n",
+ " Current is in polar form = (4.13944666667-1.03700666667j) A\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E26 : Pg 319"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-26 PG NO-319-320\n",
+ "import numpy as np\n",
+ "Z1=70.71+1j*70.71;\n",
+ "Z2=10.+1j*5.;\n",
+ "Z3=-1j*5.;\n",
+ "Z4=1j*5.;\n",
+ "Z5=5.-1j*5.;\n",
+ "X1=9.;#np.matrix('Z2 Z3 Z1;Z3 10 0;0 Z4 0');\n",
+ "X2=9.;#np.matrix('Z2 Z3 0;Z3 10 Z4;0 Z4 Z5');\n",
+ "X3=9.;#np.matrix('0 Z3 0;0 10 Z4;Z1 Z4 Z5');\n",
+ "X4=9.;#np.matrix('Z2 Z3 0;Z3 10 Z4;0 Z4 Z5');\n",
+ "I3=X1/X2;\n",
+ "I1=X3/X4;\n",
+ "print'i) Current (I3) is in polar = ',I3,' A '\n",
+ "print'i) Current (I1) is in polar = ',I1,' A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Current (I3) is in polar = 1.0 A \n",
+ "i) Current (I1) is in polar = 1.0 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E27 : Pg 321"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-27 PG NO-321\n",
+ "Z1=(6.-1j*2.41); # Impedance\n",
+ "Z2=(0-1j*9.64); # Impedance\n",
+ "Z3=4.+1j*0; # Impedance\n",
+ "Z4=2.+1j*0; # Impedance\n",
+ "Z5=0-1j*2.41; # Impedance\n",
+ "Za=Z2/Z1; # Impedance\n",
+ "Zb=(Z3*Z4)/Z1; # Impedance\n",
+ "Zc=(Z4*Z5)/Z1; # Impedance\n",
+ "print'i) Impedance (Za) is in polar = ',Za,' ohms '\n",
+ "print'ii) Impedance (Zb) is in polar = ',Zb,' ohms '\n",
+ "print'iii) Impedance (Zc) is in polar = ',Zc,' ohms '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Impedance (Za) is in polar = (0.555691361243-1.3834639699j) ohms \n",
+ "ii) Impedance (Zb) is in polar = (1.14810287959+0.461154656634j) ohms \n",
+ "iii) Impedance (Zc) is in polar = (0.277845680622-0.69173198495j) ohms \n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E28 : Pg 322"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-28 PG NO-322\n",
+ "Z1=0.6-1j*1.2;\n",
+ "Z2=0.6-1j*1.2;\n",
+ "Z3=1.2+1j*0.6;\n",
+ "Z=Z1+(((Z2+3.)*(Z3+1j*3.))/(Z2+3.+Z3+1j*3.));\n",
+ "print'i) Impedance (Z) is in polar = ',Z,' ohms'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Impedance (Z) is in polar = (3+2.22044604925e-16j) ohms\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E29 : Pg 323"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-29 PG NO 323\n",
+ "V1=5.; # Voltage\n",
+ "V2=0.05; # Voltage\n",
+ "R1=100.; # Resistance\n",
+ "R2=1000.; # Resistance\n",
+ "R3=85.;\n",
+ "R4=880.;\n",
+ "I1=0.00266; # Current\n",
+ "I2=0.02676; # Current\n",
+ "Va=V1-R1*I2;\n",
+ "Vb=V1-R2*I1;\n",
+ "VTH=Va-Vb;\n",
+ "RTH=((R1*R3)/(R1+R3))+(R2*R4)/(R2+R4)\n",
+ "I=(0.016)/(RTH+20.);\n",
+ "print'i) Voltage (Va) is in polar = ',Va,' V '\n",
+ "print'i) Voltage (Vb) is in polar = ',Vb,' V '\n",
+ "print'i) Voltage (VTH) is in polar = ',VTH,' V '\n",
+ "print'i) Resistance (RTH) is in polar = ',RTH,' ohms'\n",
+ "print'i) Current (I) is = ',I,' A ',"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (Va) is in polar = 2.324 V \n",
+ "i) Voltage (Vb) is in polar = 2.34 V \n",
+ "i) Voltage (VTH) is in polar = -0.016 V \n",
+ "i) Resistance (RTH) is in polar = 514.031052329 ohms\n",
+ "i) Current (I) is = 2.99608045828e-05 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E30 : Pg 324"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-30 PG NO 324-325\n",
+ "V=25.; # Voltage \n",
+ "R1=50.; # RESISTANCE\n",
+ "R2=35.; # RESISTANCE\n",
+ "R3=60.; # RESISTANCE\n",
+ "R4=10.;\n",
+ "VTH=V-(R1*(R2/R3)); # THEVENINS VOLTAGE\n",
+ "RTH=(R1*R4)/R3;\n",
+ "I40=-(VTH/(40.+RTH));\n",
+ "V40=40.*I40;\n",
+ "print '%s %.2f %s' %('i) Impedance (VTH) is = ',VTH,' V ');\n",
+ "print '%s %.2f %s' %('i) Impedance (RTH) is = ',RTH,' ohm ');\n",
+ "print '%s %.2f %s' %('i) Impedance (I40) is = ',I40,' A ');\n",
+ "print '%s %.2f %s' %('i) Impedance (V40) is = ',V40,' V ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Impedance (VTH) is = -4.17 V \n",
+ "i) Impedance (RTH) is = 8.33 ohm \n",
+ "i) Impedance (I40) is = 0.09 A \n",
+ "i) Impedance (V40) is = 3.45 V \n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E31 : Pg 326"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-31 PG NO-326;\n",
+ "V=25.;\n",
+ "R1=50.;\n",
+ "R2=40.;\n",
+ "R3=10.;\n",
+ "I=(V/(R1+((R2*R3)/(R2+R3))))*(R3/(R2+R3));\n",
+ "print '%s %.2f %s' %('i) Current (I) is = ',I,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Current (I) is = 0.09 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E32 : Pg 326"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-32 PG NO=326\n",
+ "V1=60.; # VOLTAGE\n",
+ "V2=50.; # VOLTAGE\n",
+ "V3=100.; # VOLTAGE\n",
+ "R1=60.; # RESISTANCE\n",
+ "R2=30.; # RESISTANCE\n",
+ "R3=40.; # RESISTANCE\n",
+ "VTH=V2+(R2*(2./3.))-(R1*1.);\n",
+ "RTH=((R1*R2)/(R1+R2))+((R1*R3)/(R1+R3));\n",
+ "RL=RTH;\n",
+ "I=VTH/(RTH+RTH); # CURRENT\n",
+ "P=(I*I)*RL; # POWER\n",
+ "print '%s %.2f %s' %('i) Voltage (VTH) is = ',VTH,' V ');\n",
+ "print '%s %.2f %s' %('i) Resistance (RTH) is = ',RTH,' ');\n",
+ "print '%s %.2f %s' %('i) Load Resistance (RL) is = ',RL,' ohm ');\n",
+ "print '%s %.2f %s' %('i) Current (I) is = ',I,' A ');\n",
+ "print '%s %.2f %s' %('i) Power (P) is = ',I,' W ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (VTH) is = 10.00 V \n",
+ "i) Resistance (RTH) is = 44.00 \n",
+ "i) Load Resistance (RL) is = 44.00 ohm \n",
+ "i) Current (I) is = 0.11 A \n",
+ "i) Power (P) is = 0.11 W \n"
+ ]
+ }
+ ],
+ "prompt_number": 30
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E33 : Pg 327"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-33 PG NO=327\n",
+ "R1=15.; # RESISTANCE\n",
+ "R2=8.; # RESISTANCE\n",
+ "R3=12.; # RESISTANCE\n",
+ "R4=10.;\n",
+ "R5=5.14;\n",
+ "R6=7.429;\n",
+ "R7=32.74;\n",
+ "V=60.;\n",
+ "Ra=(R1*R2)/ (R1+R2+R3);\n",
+ "Rb=(R3*R2)/(R1+R2+R3);\n",
+ "Rc=(R1*R3)/(R1+R2+R3);\n",
+ "TR=R4+R5+((R6*R7)/(R6+R7)); # TOTAL RESISTANCE\n",
+ "I=V/TR\n",
+ "print '%s %.2f %s' %('i) Resistance (Ra) is = ',Ra,' ohms ');\n",
+ "print '%s %.2f %s' %('i) Resistance (Rb) is = ',Rb,' ohms ');\n",
+ "print '%s %.2f %s' %('i) Resistance (Rc) is = ',Rc,' ohms ');\n",
+ "print '%s %.2f %s' %('i) Total Resistance (TR) is = ',TR,' ohms ');\n",
+ "print '%s %.2f %s' %('i) Current (I) is = ',I,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Resistance (Ra) is = 3.43 ohms \n",
+ "i) Resistance (Rb) is = 2.74 ohms \n",
+ "i) Resistance (Rc) is = 5.14 ohms \n",
+ "i) Total Resistance (TR) is = 21.20 ohms \n",
+ "i) Current (I) is = 2.83 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E34 : Pg 327"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-34 PG NO-327-328\n",
+ "V=10.;\n",
+ "R1=1.;\n",
+ "R2=2.;\n",
+ "R3=8.5;\n",
+ "VTH=V*(R1/R2); # Thevenins Voltage\n",
+ "RTH=R2+((R1*R1)/(R1+R1))+R2; # Thevenins Resistance\n",
+ "Pmax=(5./9.)**2.*RTH;\n",
+ "TR=R1+((R1*R3)/(R1+R3)); # Total Resistance\n",
+ "TP=V*(V/TR); # Total Power\n",
+ "print '%s %.2f %s' %('i) Voltage (VTH) is = ',VTH,' V ');\n",
+ "print '%s %.2f %s' %('i) Resistance (RTH) is = ',RTH,' ohms ');\n",
+ "print '%s %.2f %s' %('i) Power (Pmax) is = ',Pmax,' W ');\n",
+ "print '%s %.2f %s' %('i) Total resistance (TR) is = ',TR,' ohms ');\n",
+ "print '%s %.2f %s' %('i) Total Power (TP) is = ',TP,' W ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (VTH) is = 5.00 V \n",
+ "i) Resistance (RTH) is = 4.50 ohms \n",
+ "i) Power (Pmax) is = 1.39 W \n",
+ "i) Total resistance (TR) is = 1.89 ohms \n",
+ "i) Total Power (TP) is = 52.78 W \n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E35 : Pg 328"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-35 PG NO-328-329\n",
+ "Va=6.; # VOLTAGE at PONT A\n",
+ "Vb=-3.; # VOLTAGE at POINT B\n",
+ "VTH=Va-Vb;\n",
+ "R1=1.;\n",
+ "R2=2.;\n",
+ "R3=3.;\n",
+ "RTH=((R2*R3)/(R2+R3))+((R1*R3)/(R1+R3));\n",
+ "print '%s %.2f %s' %('i) Voltage (VTH) is = ',VTH,' V ');\n",
+ "print '%s %.2f %s' %('i) Resistance (RTH) is = ',RTH,' ohm ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (VTH) is = 9.00 V \n",
+ "i) Resistance (RTH) is = 1.95 ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 33
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E36 : Pg 329"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-36 PG NO=329\n",
+ "I1=-10.; # CURRENT\n",
+ "Vpc=15.;\n",
+ "I2=7.5;\n",
+ "Vqc=I2*1.;\n",
+ "print '%s %.2f %s' %(' Voltage is = ',Vqc,'V');\n",
+ "Vpq=Vpc-Vqc;\n",
+ "print '%s %.2f %s' %(' Voltage is = ',Vpq,'V');\n",
+ "RTH=1.406;\n",
+ "Pmax=(I2/(2.*RTH))**2.*RTH;\n",
+ "print '%s %.2f %s' %(' Power is = ',Pmax,'W');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Voltage is = 7.50 V\n",
+ " Voltage is = 7.50 V\n",
+ " Power is = 10.00 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 34
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E37 : Pg 330"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-37 PG NO-330-331\n",
+ "R=8.;\n",
+ "R1=12.67;\n",
+ "R2=4.;\n",
+ "R3=10.;\n",
+ "R4=3.077;\n",
+ "R5=13.077;\n",
+ "R50=9.9; # RESISTANCE AT 50 V BATTERY\n",
+ "V=50.; # VOLTAGE\n",
+ "I1=V/R50; # CURRENT\n",
+ "I=I1*(R/(R+R1));\n",
+ "print '%s %.2f %s' %(' Current is (I1) = ',I1,'A');\n",
+ "print '%s %.2f %s' %(' Current is (I) = ',I,'A');\n",
+ "R100=R+((R2*(R3+R4))/(R2+R3+R4));\n",
+ "print '%s %.2f %s' %(' Resistance at 100 (R100) is = ',R100,'ohm');\n",
+ "I2=100./R100;\n",
+ "print '%s %.2f %s' %(' Current is (I2) = ',I2,'A');\n",
+ "I3=((I2*R2)/(R2+R5));\n",
+ "print '%s %.2f %s' %(' Current is (I3) = ',I3,'A');\n",
+ "I10=I3-I;\n",
+ "print '%s %.2f %s' %(' Current is (I10) = ',I10,'A');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Current is (I1) = 5.05 A\n",
+ " Current is (I) = 1.95 A\n",
+ " Resistance at 100 (R100) is = 11.06 ohm\n",
+ " Current is (I2) = 9.04 A\n",
+ " Current is (I3) = 2.12 A\n",
+ " Current is (I10) = 0.16 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 35
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E38 : Pg 331"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-38 PG NO-331\n",
+ "R1=100.;\n",
+ "R2=4.;\n",
+ "R3=8.;\n",
+ "R4=50.;\n",
+ "R5=5.;\n",
+ "VTH=(R1*((R2)/(R2+R3)))-((R3*R4)/(R3+R5));\n",
+ "RTH=((R3*R5)/(R3+R5))+((R2*R3)/(R2+R3));\n",
+ "I=VTH/(10.+RTH);\n",
+ "print '%s %.2f %s' %('i) Voltage (VTH) is = ',VTH,' V ');\n",
+ "print '%s %.2f %s' %('i) Resistance (RTH) is = ',RTH,' ohm ');\n",
+ "print '%s %.2f %s' %('i) Current (I) is = ',I,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (VTH) is = 2.56 V \n",
+ "i) Resistance (RTH) is = 5.74 ohm \n",
+ "i) Current (I) is = 0.16 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 36
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E39 : Pg 331"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-39 PG NO-331\n",
+ "V=36.;\n",
+ "R1=5.;\n",
+ "R2=11.;\n",
+ "R3=6.;\n",
+ "VTH=V*(R1/R2);\n",
+ "RTH=(R1*R3)/(R1+R3);\n",
+ "R=RTH;\n",
+ "Pmax=(VTH/(2.*RTH))**2.*(RTH);\n",
+ "print '%s %.2f %s' %('i) Voltage (VTH) is = ',VTH,' V ');\n",
+ "print '%s %.2f %s' %('i) Resistance (RTH) is = ',RTH,' ohm ');\n",
+ "print '%s %.2f %s' %('i) Maximum Power (Pmax) is = ',Pmax,' W ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (VTH) is = 16.36 V \n",
+ "i) Resistance (RTH) is = 2.73 ohm \n",
+ "i) Maximum Power (Pmax) is = 24.55 W \n"
+ ]
+ }
+ ],
+ "prompt_number": 37
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E40 : Pg 331"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-40 PG NO-331-332\n",
+ "R1=3.;\n",
+ "R2=2.;\n",
+ "R3=12.;\n",
+ "R4=4.;\n",
+ "R5=8.;\n",
+ "V=10.;\n",
+ "R=R3/(R1/R2);\n",
+ "TR=R4+((R2*R5)/(R2+R5))+((R1*R3)/(R1+R3));\n",
+ "I=V/TR;\n",
+ "Ir=I*(R2/(R5+R2));\n",
+ "print 'i) Resistance (R) is = ',R,' ohm '\n",
+ "print 'i) Total Resistance (TR) is = ',TR,' ohm '\n",
+ "print 'i) Current (I) is = ',I,' A '\n",
+ "print 'i) Current (Ir) is = ',Ir,' A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Resistance (R) is = 8.0 ohm \n",
+ "i) Total Resistance (TR) is = 8.0 ohm \n",
+ "i) Current (I) is = 1.25 A \n",
+ "i) Current (Ir) is = 0.25 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 38
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E41 : Pg 332"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-41 PG NO-332-333\n",
+ "VTH=10.;\n",
+ "V=10.;\n",
+ "R1=10.;\n",
+ "R2=10.;\n",
+ "R3=16.67;\n",
+ "R4=50.;\n",
+ "R5=5.56;\n",
+ "R6=3.33;\n",
+ "RTH=V+R5+(((R1+R3)*(R4+R6))/(R1+R3+R4+R6));\n",
+ "I=(V/RTH)-0.4;\n",
+ "print '%s %.2f %s' %('i) Resistance (RTH) is = ',RTH,' ohm ');\n",
+ "print '%s %.2f %s' %('i) Currrent (I) is = ',I,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Resistance (RTH) is = 33.34 ohm \n",
+ "i) Currrent (I) is = -0.10 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 39
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E42 : Pg 333"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-42 PG NO-333\n",
+ "V=100.; # Voltage\n",
+ "RTH=0; # Resistance\n",
+ "Iab=V/20.; # Current\n",
+ "print '%s %.2f %s' %('i) Current (Iab) is = ',Iab,' A ');\n",
+ "Iab=V/20.;"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Current (Iab) is = 5.00 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 40
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E43 : Pg 333"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-43 PG NO-333\n",
+ "Vab=38.; # Voltage\n",
+ "R1=12.;\n",
+ "R2=6.;\n",
+ "RTH=(R1*R2)/(R1+R2);\n",
+ "Iab=Vab/(RTH+3.);\n",
+ "print '%s %.2f %s' %('i) Resistance (RTH) is = ',RTH,' ohm ');\n",
+ "print '%s %.2f %s' %('i) Current (Iab) is = ',Iab,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Resistance (RTH) is = 4.00 ohm \n",
+ "i) Current (Iab) is = 5.43 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 41
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E44 : Pg 333"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-44 PG NO-333-334\n",
+ "I1=1.6;\n",
+ "I2=0.8;\n",
+ "VTH=6.*I2; # ((R1*R2)/(R1+R2))\n",
+ "R1=3.;\n",
+ "R2=9.; \n",
+ "R3=6.;\n",
+ "R4=3.;\n",
+ "RTH=((((R1*R2)/(R1+R2))+R1)*R3)/(((R1*R2)/(R1+R2))+R1+R2);\n",
+ "IN=VTH/RTH;\n",
+ "RN=RTH;\n",
+ "print '%s %.2f %s' %('i) Voltage (VTH) is = ',VTH,' V ');\n",
+ "print '%s %.2f %s' %('i) Resistance (RTH) is = ',RTH,' ohm ');\n",
+ "print '%s %.2f %s' %('i) Current (IN) is = ',IN,' A ');\n",
+ "print '%s %.2f %s' %('i) Resistance (RN) is = ',RN,' ohm ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (VTH) is = 4.80 V \n",
+ "i) Resistance (RTH) is = 2.21 ohm \n",
+ "i) Current (IN) is = 2.17 A \n",
+ "i) Resistance (RN) is = 2.21 ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 42
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E45 : Pg 334"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE5-45 PG NO-334-335\n",
+ "R1=10.;\n",
+ "R2=5.;\n",
+ "V=15.;\n",
+ "Vb=9.;\n",
+ "Va=(V*R2)/(R1+R2);\n",
+ "Vba=Vb-Va;\n",
+ "RTH=(R1*R2)/(R1+R2);\n",
+ "VTH=Vba;\n",
+ "Iba=VTH/(RTH+Vba);\n",
+ "print '%s %.2f %s' %('i) Voltage (Va) is = ',Va,' V ');\n",
+ "print '%s %.2f %s' %('i) Voltage (Vba) is = ',Vba,' V ');\n",
+ "print '%s %.2f %s' %('i) Voltage (VTH) is = ',VTH,' V ');\n",
+ "print '%s %.2f %s' %('i) REsistance (RTH) is = ',RTH,' ohms ');\n",
+ "print '%s %.2f %s' %('i) Current (Iba) is = ',Iba,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (Va) is = 5.00 V \n",
+ "i) Voltage (Vba) is = 4.00 V \n",
+ "i) Voltage (VTH) is = 4.00 V \n",
+ "i) REsistance (RTH) is = 3.33 ohms \n",
+ "i) Current (Iba) is = 0.55 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 43
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E46 : Pg 335"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-46 PG NO-335\n",
+ "R1=1.;\n",
+ "R2=1.;\n",
+ "R3=3.;\n",
+ "RTH=R1+((R2*R3)/(R2+R3));\n",
+ "RL=R3/(RTH+RTH);\n",
+ "P=RL**2.*RTH;\n",
+ "print '%s %.2f %s' %('i) Resistance (RTH) is = ',RTH,' ohms ');\n",
+ "print '%s %.2f %s' %('i) Resistance (RL) is = ',RL,' A ');\n",
+ "print '%s %.2f %s' %('i) Power (P) is = ',P,' W ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Resistance (RTH) is = 1.75 ohms \n",
+ "i) Resistance (RL) is = 0.86 A \n",
+ "i) Power (P) is = 1.29 W \n"
+ ]
+ }
+ ],
+ "prompt_number": 44
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E47 : Pg 336"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-47 PG NO-336\n",
+ "V=5.; # VOLTAGE\n",
+ "R1=2.;\n",
+ "R2=1.;\n",
+ "VTH=R1+((V-R1)/3.);\n",
+ "RTH=R2+((R1*R2)/(R1+R2));\n",
+ "IN=((V*0.5)/(R1+0.5))+((R1/RTH)*(R1/VTH))\n",
+ "print '%s %.2f %s' %('i) Voltage (VTH) is = ',VTH,' V ');\n",
+ "print '%s %.2f %s' %('i) Resistance (RTH) is = ',RTH,' ohm ');\n",
+ "print '%s %.2f %s' %('i) Current (IN) is = ',IN,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (VTH) is = 3.00 V \n",
+ "i) Resistance (RTH) is = 1.67 ohm \n",
+ "i) Current (IN) is = 1.80 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 45
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E48 : Pg 336"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-48 PG NO-336-337\n",
+ "V=24.;\n",
+ "R1=4.;\n",
+ "R2=4.;\n",
+ "Iab=V/(R1+R2);\n",
+ "Idb=6.;\n",
+ "Iba=(Idb/(R1+R2))*R1;\n",
+ "Ibc=Iab+Iba;\n",
+ "IDB=Ibc;\n",
+ "print '%s %.2f %s' %('i) CURRENT (Iab) is = ',Iab,' A ');\n",
+ "print '%s %.2f %s' %('i) CURRENT (Iba) is = ',Iba,' A ');\n",
+ "print '%s %.2f %s' %('i) CURRENT (Ibc) is = ',Ibc,' A ');\n",
+ "print '%s %.2f %s' %('i) CURRENT (IDB) is = ',IDB,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (Iab) is = 3.00 A \n",
+ "i) CURRENT (Iba) is = 3.00 A \n",
+ "i) CURRENT (Ibc) is = 6.00 A \n",
+ "i) CURRENT (IDB) is = 6.00 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 46
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E49 : Pg 337"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPE 5-49 PG NO-337-338\n",
+ "V1=120.;\n",
+ "V2=65.;\n",
+ "R1=20.;\n",
+ "R2=30.;\n",
+ "VTH=V1-((V1-V2)/(R1+R2))*R1;\n",
+ "RTH=(R1*R2)/(R1+R2);\n",
+ "print '%s %.2f %s' %('i) Voltage (VTH) is = ',VTH,' V ');\n",
+ "print '%s %.2f %s' %('i) Resistance (RTH) is = ',RTH,' ohms ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (VTH) is = 98.00 V \n",
+ "i) Resistance (RTH) is = 12.00 ohms \n"
+ ]
+ }
+ ],
+ "prompt_number": 47
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E50 : Pg 338"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPE 5-49 PG NO-337-338\n",
+ "V1=120.;\n",
+ "V2=65.;\n",
+ "R1=20.;\n",
+ "R2=30.;\n",
+ "VTH=V1-((V1-V2)/(R1+R2))*R1;\n",
+ "RTH=(R1*R2)/(R1+R2);\n",
+ "print '%s %.2f %s' %('i) Voltage (VTH) is = ',VTH,' V ');\n",
+ "print '%s %.2f %s' %('i) Resistance (RTH) is = ',RTH,' ohms ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (VTH) is = 98.00 V \n",
+ "i) Resistance (RTH) is = 12.00 ohms \n"
+ ]
+ }
+ ],
+ "prompt_number": 48
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E51 : Pg 338"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-51 PG NO-338\n",
+ "I=10.; # CURRENT\n",
+ "R1=1.;\n",
+ "R2=1.;\n",
+ "R3=1.;\n",
+ "VTH=(I*R1)/(R1+R2+R3);\n",
+ "RTH=(R1*(R1+R2))/(R1+R2+R3);\n",
+ "P=(VTH/(RTH+RTH))**2*(RTH);\n",
+ "print '%s %.2f %s' %('i) Voltage (VTH) is = ',VTH,' V ');\n",
+ "print '%s %.2f %s' %('i) Resistance (RTH) is = ',RTH,' ohms '); \n",
+ "print '%s %.2f %s' %('i) Power (P) is = ',P,' W ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (VTH) is = 3.33 V \n",
+ "i) Resistance (RTH) is = 0.67 ohms \n",
+ "i) Power (P) is = 4.17 W \n"
+ ]
+ }
+ ],
+ "prompt_number": 49
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E52 : Pg 339"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-52 PG NO-339\n",
+ "R1=2.;\n",
+ "R2=4.;\n",
+ "R3=2.;\n",
+ "V=0.389; # VOLTAGE\n",
+ "I1=3.89; # CURRENT\n",
+ "TR=((R1*R2)/(R1+R2))+R2; # TOTAL RESISTANCE\n",
+ "I=V/TR; # CURRENT\n",
+ "TI=I1+I; # TOTAL CURRENT\n",
+ "print '%s %.2f %s' %('i) Total resistance (TR) is = ',TR,' ohms ');\n",
+ "print '%s %.2f %s' %('i) Current (I) is = ',I,' A ');\n",
+ "print '%s %.2f %s' %('i) Total current (TI) is = ',TI,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Total resistance (TR) is = 5.33 ohms \n",
+ "i) Current (I) is = 0.07 A \n",
+ "i) Total current (TI) is = 3.96 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 50
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E53 : Pg 339"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-53 PG NO-339\n",
+ "R1=16.;\n",
+ "R2=8.;\n",
+ "R3=12.;\n",
+ "Rd=(R1*R2)/(R1+R2+R1);\n",
+ "Rb=Rd;\n",
+ "Rc=(R1*R1)/(R1+R1+R2);\n",
+ "V=180.;\n",
+ "VTH=(180./(R1+Rd+Rc))*Rc;\n",
+ "RTH=R3+(((Rc*(R1+Rd)))/(R1+Rc+Rd))+Rd;\n",
+ "print '%s %.2f %s' %('i) Resistance (Rd) is = ',Rd,' ohms ');\n",
+ "print '%s %.2f %s' %('i) Resistance (RC) is = ',Rc,' ohms ');\n",
+ "print '%s %.2f %s' %('i) Voltage (VTH) is = ',VTH,' V ');\n",
+ "print '%s %.2f %s' %('i) Resistance (RTH) is = ',RTH,' ohms ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Resistance (Rd) is = 3.20 ohms \n",
+ "i) Resistance (RC) is = 6.40 ohms \n",
+ "i) Voltage (VTH) is = 45.00 V \n",
+ "i) Resistance (RTH) is = 20.00 ohms \n"
+ ]
+ }
+ ],
+ "prompt_number": 51
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E54 : Pg 340"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-54 PG NO-340\n",
+ "V1=48.; # VOLTAGE\n",
+ "V2=16.; # VOLTAGE\n",
+ "R1=12.;\n",
+ "R2=4.;\n",
+ "R3=4.;\n",
+ "I=(V1-V2)/(R1+R2+R3);\n",
+ "print '%s %.2f %s' %('i) Current (I) is = ',I,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Current (I) is = 1.60 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 52
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E55 : Pg 340"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-55 PG NO-340-341\n",
+ "I1=1.2; # Current\n",
+ "I2=0.3; # Current\n",
+ "I=I1+I2;\n",
+ "print '%s %.2f %s' %(' Current is = ',I,'A');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Current is = 1.50 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 53
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E56 : Pg 341"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-56 PG NO-341\n",
+ "VTH=15.; # THEVENINS VOLTAGE\n",
+ "R1=4.;\n",
+ "R2=6.;\n",
+ "I4=VTH/(R1+R2); # CURRENT THROUGH 4 ohms Resistance\n",
+ "print '%s %.2f %s' %('i) CURRENT (I4) is = ',I4,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CURRENT (I4) is = 1.50 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 54
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E57 : Pg 341"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-57 PG NO-341-342\n",
+ "R1=22.;\n",
+ "R2=33.;\n",
+ "R3=10.;\n",
+ "R4=15.;\n",
+ "V=24.;\n",
+ "TR=((R1+R2)*(R3+R4))/(R1+R2+R3+R4);\n",
+ "I=V/TR;\n",
+ "print '%s %.2f %s' %('i) Total Resistance (TR) is = ',TR,' Kohms ');\n",
+ "print '%s %.2f %s' %('ii) CURRENT (I) is = ',I,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Total Resistance (TR) is = 17.19 Kohms \n",
+ "ii) CURRENT (I) is = 1.40 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 55
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E58 : Pg 342"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-58 PG NO-342-343\n",
+ "R1=44.;\n",
+ "R2=33.;\n",
+ "R3=10.;\n",
+ "R4=15.;\n",
+ "V=24.;\n",
+ "TR=((R1+R2)*(R3+R4))/(R1+R2+R3+R4);\n",
+ "I=V/TR;\n",
+ "print '%s %.2f %s' %('i) Total Resistance (TR) is = ',TR,' Kohms ');\n",
+ "print '%s %.2f %s' %('ii) CURRENT (I) is = ',I,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Total Resistance (TR) is = 18.87 Kohms \n",
+ "ii) CURRENT (I) is = 1.27 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 56
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E60 : Pg 343"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-60 PG NO-343\n",
+ "V=60.; # VOLTAGE\n",
+ "R1=3.;\n",
+ "R2=4.;\n",
+ "R3=1.5;\n",
+ "R4=2.5;\n",
+ "IAB=12.;\n",
+ "IBC=6.;\n",
+ "ICD=6.;\n",
+ "IBD=6.;\n",
+ "VAB=36.;\n",
+ "VBC=9.;\n",
+ "VCD=15.;\n",
+ "VBD=24.;\n",
+ "VkIk=VAB*IAB+VBC*IBC+VCD*ICD+VBD*IBD-V*IAB\n",
+ "print '%s %f' %('ii) SUBMISSION OF VkIk (VkIk) is = ',VkIk);"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) SUBMISSION OF VkIk (VkIk) is = 0.000000\n"
+ ]
+ }
+ ],
+ "prompt_number": 57
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E62 : Pg 344"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-62 PG NO-344-345\n",
+ "Z1=16.+1j*0;\n",
+ "Z2=2.+1j*1;\n",
+ "Z3=3.-1j*1;\n",
+ "R=4.;\n",
+ "I=Z1/(Z2+((R*Z3)/(R+Z3)));\n",
+ "print' Current is = ',I,'A'\n",
+ "IN=(I*Z3)/(R+Z3);\n",
+ "print ' Current is = ',IN,'A'\n",
+ "ZN=((Z3*Z2)/5)+R;\n",
+ "print ' Impedance is = ',ZN,'A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Current is = (4.12054794521-0.745205479452j) A\n",
+ " Current is = (1.75342465753-0.657534246575j) A\n",
+ " Impedance is = (5.4+0.2j) A\n"
+ ]
+ }
+ ],
+ "prompt_number": 58
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E63 : Pg 345"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-63 PG NO-345\n",
+ "IN=1.638-1j*0.614;\n",
+ "Z1=15.+1j*0;\n",
+ "Z2=3.-1j*1.;\n",
+ "Z3=2.+1j*1.;\n",
+ "VTH=(Z1*Z2)/(Z3+Z2);\n",
+ "ZN=5.4+1j*0.21;\n",
+ "VTH1=IN*ZN\n",
+ "print'i) Voltage (VTH) is = ',VTH,' V '\n",
+ "print'ii) Voltage (VTH) is = ',VTH,' V '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Voltage (VTH) is = (9-3j) V \n",
+ "ii) Voltage (VTH) is = (9-3j) V \n"
+ ]
+ }
+ ],
+ "prompt_number": 59
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E64 : Pg 345"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-64 PG NO-345-346\n",
+ "import math \n",
+ "Z1=4.+1j*6.;\n",
+ "R1=1.;\n",
+ "V=100.;\n",
+ "ZTH=(Z1*R1)/(Z1+R1);\n",
+ "Pmax=(100./(ZTH+ZTH))**2.*(0.93*math.cos(-6.11))\n",
+ "print'i) IMPEDANCE (ZTH) is = ',ZTH,' ohms '\n",
+ "print'ii) POWER (Pmax) is = ',Pmax,' W '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) IMPEDANCE (ZTH) is = (0.918032786885+0.0983606557377j) ohms \n",
+ "ii) POWER (Pmax) is = (2625.6220678-569.167106311j) W \n"
+ ]
+ }
+ ],
+ "prompt_number": 60
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E65 : Pg 346"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-65 PG NO-346\n",
+ "V1=5.;\n",
+ "G1=1.;\n",
+ "V2=5.;\n",
+ "G2=(1./2.);\n",
+ "V3=10.;\n",
+ "G3=(1./4.);\n",
+ "EV=(V1*G1+V2*G2+V3*G3)/(G1+G2+G3); # EQUIVALENT VOLTAGE\n",
+ "ER=1./(G1+G2+G3);\n",
+ "I=(EV*ER)/(EV+ER);\n",
+ "print'i) Euivalent Resistance (EV) is = ',EV,' V '\n",
+ "print'ii) Equivalent Resistance (ER) is = ',ER,' ohms '\n",
+ "print'ii) CURRENT (I) is = ',I,' A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Euivalent Resistance (EV) is = 5.71428571429 V \n",
+ "ii) Equivalent Resistance (ER) is = 0.571428571429 ohms \n",
+ "ii) CURRENT (I) is = 0.519480519481 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 61
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E66 : Pg 346"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "Z1=12.99+1j*7.5;\n",
+ "Z2=4.-1j*3.;\n",
+ "Z3=6.+1j*8.;\n",
+ "I1=Z1/Z2;\n",
+ "Z=Z3-Z2\n",
+ "I=(I1*Z)/Z3;\n",
+ "print'ii) CURRENT (I1) is in polar form = ',I1,' A '\n",
+ "print'i) IMPEDANCE (Z) is in polar form = ',Z,' V '\n",
+ "print'ii) CURRENT (I) is in polar form = ',I,' A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) CURRENT (I1) is in polar form = (1.1784+2.7588j) A \n",
+ "i) IMPEDANCE (Z) is in polar form = (2+11j) V \n",
+ "ii) CURRENT (I) is in polar form = (-0.201+3.348j) A \n"
+ ]
+ }
+ ],
+ "prompt_number": 62
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E67 : Pg 347"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-67 PG NO-347-348\n",
+ "V=10.; # VOLTAGE\n",
+ "R1=3.; \n",
+ "R2=4.91; # RESISTANCE\n",
+ "I1=V/R1; # CURRENT\n",
+ "Isc1=1.11;\n",
+ "I2=V/R2;\n",
+ "Isc2=1.11;\n",
+ "print'ii) CURRENT (I1) is = ',I1,' A '\n",
+ "print'ii) CURRENT (I2) is = ',I2,' A '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) CURRENT (I1) is = 3.33333333333 A \n",
+ "ii) CURRENT (I2) is = 2.0366598778 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 63
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E68 : Pg 348"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-68 PG NO-348\n",
+ "V1=3.;\n",
+ "V2=0.75;\n",
+ "R1=1.;\n",
+ "R2=0.75;\n",
+ "V=V1+V2;\n",
+ "R=R1+R2;\n",
+ "print '%s %.2f %s' %('ii) Voltage (V) is = ',V,' V ');\n",
+ "print '%s %.2f %s' %('ii)Resistance (R) is = ',R,' ohms ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) Voltage (V) is = 3.75 V \n",
+ "ii)Resistance (R) is = 1.75 ohms \n"
+ ]
+ }
+ ],
+ "prompt_number": 64
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E69 : Pg 349"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-69 PG NO-349\n",
+ "V=24.; # VOLTAGE\n",
+ "R1=0.1;\n",
+ "R2=6.;\n",
+ "R3=5.;\n",
+ "I=V/(R1+(R3*R2)/(R3+R2));\n",
+ "I1=I*(R3/(R2+R3));\n",
+ "I2=I*(R2/(R2+R3));\n",
+ "VTH=-(I1*2.)-(-2.*I2);\n",
+ "RTH=2.533;\n",
+ "IAB=VTH/(RTH+1.);\n",
+ "print '%s %.2f %s' %('ii) CURRENT (I) is = ',I,' A ');\n",
+ "print '%s %.2f %s' %('ii) CURRENT (I1) is = ',I1,' A ');\n",
+ "print '%s %.2f %s' %('ii) CURRENT (I2) is = ',I2,' A ');\n",
+ "print '%s %.2f %s' %('ii) Voltage (VTH) is = ',VTH,' V ');\n",
+ "print '%s %.2f %s' %('ii) CURRENT (IAB) is = ',IAB,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) CURRENT (I) is = 8.49 A \n",
+ "ii) CURRENT (I1) is = 3.86 A \n",
+ "ii) CURRENT (I2) is = 4.63 A \n",
+ "ii) Voltage (VTH) is = 1.54 V \n",
+ "ii) CURRENT (IAB) is = 0.44 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 65
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E70 : Pg 350"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-70 PG NO-350\n",
+ "R1=2.;\n",
+ "R2=3.;\n",
+ "R3=6.;\n",
+ "I4=R2*(R1/R3); # CURRENT THROUGH 4 OHMS RESISTANCE\n",
+ "TI=I4+I4; # TOTAL CURRENT\n",
+ "print '%s %.2f %s' %('ii) CURRENT (I4) is = ',I4,' A ');\n",
+ "print '%s %.2f %s' %('ii) CURRENT (TI) is = ',TI,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) CURRENT (I4) is = 1.00 A \n",
+ "ii) CURRENT (TI) is = 2.00 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 66
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E71 : Pg 350"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 5-71 PG NO=350-351\n",
+ "R1=5.;\n",
+ "R2=4.;\n",
+ "R3=10.;\n",
+ "R=R1*R2/(R1+R2);\n",
+ "I=(R*R3)/(R+R3);\n",
+ "print '%s %.2f %s' %('ii) Resitance (R) is = ',R,' ohms ');\n",
+ "print '%s %.2f %s' %('ii) CURRENT (I) is = ',I,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) Resitance (R) is = 2.22 ohms \n",
+ "ii) CURRENT (I) is = 1.82 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 67
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E73 : Pg 351"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "X=('4 2 ;2 4');\n",
+ "B1=20.;\n",
+ "B2=10.;\n",
+ "X1=B1\n",
+ "X2=B2\n",
+ "print ' Current is = ',X1,'A'\n",
+ "print ' Current is = ',X2,'A'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Current is = 20.0 A\n",
+ " Current is = 10.0 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 68
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E74 : Pg 353"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "R1=15.;\n",
+ "V=20.; # RESISTANCE\n",
+ "I1=V/R1;\n",
+ "I2=I1*(1./2.);\n",
+ "R2=15.;\n",
+ "I1=V/R2;\n",
+ "I2=I1*(1./2.);\n",
+ "print '%s %.2f %s' %('ii) CURRENT (I1) is = ',I1,' A ');\n",
+ "print '%s %.2f %s' %('ii) CURRENT (I2) is = ',I2,' A ');\n",
+ "print '%s %.2f %s' %('ii) CURRENT (I1) is = ',I1,' A ');\n",
+ "print '%s %.2f %s' %('ii) CURRENT (I2) is = ',I2,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) CURRENT (I1) is = 1.33 A \n",
+ "ii) CURRENT (I2) is = 0.67 A \n",
+ "ii) CURRENT (I1) is = 1.33 A \n",
+ "ii) CURRENT (I2) is = 0.67 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 69
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER07.ipynb b/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER07.ipynb new file mode 100644 index 00000000..2f5d7fcc --- /dev/null +++ b/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER07.ipynb @@ -0,0 +1,685 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:c6e3a51fadf170761fdc84e972627b2fd3ebfdfb62a89056abcb186326dd3334"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "CHAPTER07:TWO PORT NETWORK"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E01 : Pg 437"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 7-2 PG NO-437-438\n",
+ "Z11=99.+1j*99.;\n",
+ "Z12=-1j*100.;\n",
+ "Z21=20.-1j*102.26;\n",
+ "Z22=90.06-1j*120.;\n",
+ "Z1=Z11-Z12;\n",
+ "print 'i) Impedance (Z1) is in rectangular form = ',Z1,'ohm ';\n",
+ "Z2=Z22-Z12;\n",
+ "print 'ii) Impedance (Z2) is in rectangular form = ',Z2,'ohm ';\n",
+ "Z3=Z21-Z12;\n",
+ "print 'iii) Impedance (Z3) is in rectangular form = ',Z3,'ohm ';"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Impedance (Z1) is in rectangular form = (99+199j) ohm \n",
+ "ii) Impedance (Z2) is in rectangular form = (90.06-20j) ohm \n",
+ "iii) Impedance (Z3) is in rectangular form = (20-2.26j) ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E04 : Pg 438"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 7-4 PG NO 438-439\n",
+ "import numpy as np\n",
+ "Z11=-0.4;\n",
+ "Z21=0.4;\n",
+ "Z12=-3.2;\n",
+ "Z22=1.2;\n",
+ "#Z=[Z11 Z12;Z21 Z22];\n",
+ "X=0.8;#det(Z);\n",
+ "print ' delta is = ',X\n",
+ "#Y=[(Z22/X) (-Z12/X);(-Z21/X) (Z11/X)];\n",
+ "Y=np.matrix('1.5 4;-0.5 -0.5')\n",
+ "print ' ADMITTANCE is = ',Y"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " delta is = 0.8\n",
+ " ADMITTANCE is = [[ 1.5 4. ]\n",
+ " [-0.5 -0.5]]\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E05 : Pg 439"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 7-5 PG NO-439-440\n",
+ "import numpy as np\n",
+ "Z11=-0.4;\n",
+ "Z21=-3.2;\n",
+ "Z12=0.4;\n",
+ "Z22=1.2;\n",
+ "#Z=[Z11 Z12;Z21 Z22];\n",
+ "X=(Z11*Z22)-(Z12*Z21);#det(Z);\n",
+ "print '%s %.2f' %(' delta is = ',X);\n",
+ "#Y=np.matrix('(Z22/X) (-Z12/X);(-Z21/X) (Z11/X)');\n",
+ "Y=np.matrix('1.5 -0.5; 4 -0.5')\n",
+ "print ' ADMITTANCE is = ',Y"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " delta is = 0.80\n",
+ " ADMITTANCE is = [[ 1.5 -0.5]\n",
+ " [ 4. -0.5]]\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E08 : Pg 442"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 7-8 PG NO-442\n",
+ "Y11=0.5;\n",
+ "Y21=-0.1;\n",
+ "Z1=0.1;\n",
+ "Z2=0.9;\n",
+ "Z=(Z1*Z2)/(Z1+Z2);\n",
+ "print '%s %.2f %s' %('i) Impedance (Z) is in rectangular form = ',Z,'mho ');\n",
+ "I1=10.*Z;\n",
+ "print '%s %.2f %s' %('ii) Current (I) is in rectangular form = ',I1,'A ');\n",
+ "V11=I1/I1;\n",
+ "print '%s %.2f %s' %('i) VOLTAGE (V11) is in rectangular form = ',V11,'V ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Impedance (Z) is in rectangular form = 0.09 mho \n",
+ "ii) Current (I) is in rectangular form = 0.90 A \n",
+ "i) VOLTAGE (V11) is in rectangular form = 1.00 V \n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E14 : Pg 469"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 7-14 PG NO469-470\n",
+ "Y11a=0.86;\n",
+ "Y11b=1.5;\n",
+ "Y12a=-0.57;\n",
+ "Y12b=-0.5;\n",
+ "Y21a=-0.57;\n",
+ "Y21b=-0.5;\n",
+ "Y22a=0.714;\n",
+ "Y22b=2.5;\n",
+ "Y11=Y11a+Y11b;\n",
+ "print '%s %.2f %s' %('i) IMPEDANCE (Y11) is = ',Y11,'mho ');\n",
+ "Y12=Y12a+Y12b;\n",
+ "print '%s %.2f %s' %('i) IMPEDANCE (Y12) is = ',Y12,'mho ');\n",
+ "Y21=Y21a+Y21b;\n",
+ "print '%s %.2f %s' %('i) IMPEDANCE (Y21) is = ',Y21,'mho ');\n",
+ "Y22=Y22a+Y22b;\n",
+ "print '%s %.2f %s' %('i) IMPEDANCE (Y22) is = ',Y22,'mho ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) IMPEDANCE (Y11) is = 2.36 mho \n",
+ "i) IMPEDANCE (Y12) is = -1.07 mho \n",
+ "i) IMPEDANCE (Y21) is = -1.07 mho \n",
+ "i) IMPEDANCE (Y22) is = 3.21 mho \n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E16 : Pg 473"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 7-16 PG NO-473\n",
+ "import math \n",
+ "Zoc1=40.;\n",
+ "Zsc1=36.67;\n",
+ "Zi1=math.sqrt((Zoc1*Zsc1));\n",
+ "print '%s %.2f %s' %('i) IMPEDANCE (Zi1) is = ',Zi1,'ohm ');\n",
+ "Zoc2=30.;\n",
+ "Zsc2=27.5;\n",
+ "Zi2=math.sqrt((Zoc2*Zsc2));\n",
+ "print '%s %.2f %s' %('ii) IMPEDANCE (Zi2) is = ',Zi2,'ohm ');\n",
+ "TETA=1./math.tanh(0.9167);\n",
+ "print '%s %.2f %s' %('iii) (TETA) is = ',TETA,'degree ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) IMPEDANCE (Zi1) is = 38.30 ohm \n",
+ "ii) IMPEDANCE (Zi2) is = 28.72 ohm \n",
+ "iii) (TETA) is = 1.38 degree \n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E17 : Pg 473"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 7-16 PG NO-473\n",
+ "import math \n",
+ "Zoc1=40.;\n",
+ "Zsc1=36.67;\n",
+ "Zi1=math.sqrt((Zoc1*Zsc1));\n",
+ "print '%s %.2f %s' %('i) IMPEDANCE (Zi1) is = ',Zi1,'ohm ');\n",
+ "Zoc2=30.;\n",
+ "Zsc2=27.5;\n",
+ "Zi2=math.sqrt((Zoc2*Zsc2));\n",
+ "print '%s %.2f %s' %('ii) IMPEDANCE (Zi2) is = ',Zi2,'ohm ');\n",
+ "TETA=1./math.tanh(0.9167);\n",
+ "print '%s %.2f %s' %('iii) (TETA) is = ',TETA,'degree ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) IMPEDANCE (Zi1) is = 38.30 ohm \n",
+ "ii) IMPEDANCE (Zi2) is = 28.72 ohm \n",
+ "iii) (TETA) is = 1.38 degree \n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E18 : Pg 477"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 7-18 PG NO-477-478\n",
+ "import math \n",
+ "Ra=7.;\n",
+ "Rb=3.;\n",
+ "Rc=3.;\n",
+ "A=(Ra+Rb)/Rb;\n",
+ "print '%s %.2f' %(' A is = ',A);\n",
+ "B=Ra+Rc+((Ra*Rc)/Rb);\n",
+ "print '%s %.2f' %(' B is = ',B);\n",
+ "C=1./Rb;\n",
+ "print '%s %.2f' %(' C is = ',C);\n",
+ "D=(Rb+Rc)/Rb;\n",
+ "print '%s %.2f' %(' D is = ',D);\n",
+ "Z11=((A*B)/(C*D))**0.5;\n",
+ "print '%s %.2f %s' %(' Impedance is = ',Z11,'ohm');\n",
+ "Z12=((B*D)/(A*C))**0.5;\n",
+ "print '%s %.2f %s' %(' Impedance is = ',Z12,'ohm');\n",
+ "Q=1./math.cosh(2.62);\n",
+ "Y12=-(1./17.);\n",
+ "print '%s %.2f %s' %(' Admittance is = ',Y12,'siemens');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " A is = 3.33\n",
+ " B is = 17.00\n",
+ " C is = 0.33\n",
+ " D is = 2.00\n",
+ " Impedance is = 9.22 ohm\n",
+ " Impedance is = 5.53 ohm\n",
+ " Admittance is = -0.06 siemens"
+ ]
+ },
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E20 : Pg 477"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math \n",
+ "Zoc1=2.923;\n",
+ "Zsc1=1.80;\n",
+ "Zi1=math.sqrt((Zoc1*Zsc1));\n",
+ "print '%s %.2f %s' %('i) IMPEDANCE (Zi1) is = ',Zi1,'ohm ');\n",
+ "Zoc2=4.77;\n",
+ "Zsc2=2.95;\n",
+ "Zi2=math.sqrt((Zoc2*Zsc2));\n",
+ "print '%s %.2f %s' %('ii) IMPEDANCE (Zi2) is = ',Zi2,'ohm ');\n",
+ "TETA=1./math.tanh(0.619);\n",
+ "print '%s %.2f %s' %('iii) (TETA) is = ',TETA,'degree ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) IMPEDANCE (Zi1) is = 2.29 ohm \n",
+ "ii) IMPEDANCE (Zi2) is = 3.75 ohm \n",
+ "iii) (TETA) is = 1.82 degree \n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E21 : Pg 481"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 7-21 PG NO-481\n",
+ "Rb=0.05;\n",
+ "C=0.09;\n",
+ "Ra=1./(C-(Rb));\n",
+ "print '%s %.2f %s' %('i) RESISTANCE = ',Ra,' ohm');\n",
+ "C1=0.07;\n",
+ "Rc=1./(C1-Rb);\n",
+ "print '%s %.2f %s' %('ii) RESISTANCE = ',Rc,' ohm');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) RESISTANCE = 25.00 ohm\n",
+ "ii) RESISTANCE = 50.00 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E22 : Pg 482"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 7-22 PG NO-482\n",
+ "import numpy as np\n",
+ "Z11=4.;\n",
+ "Z21=3.;\n",
+ "Z12=3.;\n",
+ "Z22=5.;\n",
+ "#Z=np.array([[Z11, Z12]];[[Z21 Z22]]);\n",
+ "X=11.;#det(Z);\n",
+ "print ' delta is = ',X\n",
+ "#Y=(((Z22/X) (-Z12/X)),((-Z21/X) (Z11/X))\n",
+ "Y=np.matrix('0.454 -0.272; -0.272 0.363')\n",
+ "print ' ADMITTANCE is = ',Y"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " delta is = 11.0\n",
+ " ADMITTANCE is = [[ 0.454 -0.272]\n",
+ " [-0.272 0.363]]\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E25 : Pg 484"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 7_25 PG NO-484-485\n",
+ "import numpy as np\n",
+ "A1=4./3.;\n",
+ "A2=5./3.;\n",
+ "B1=11./3.;\n",
+ "B2=2.;\n",
+ "C1=1./3.;\n",
+ "C2=2.;\n",
+ "D1=5./3.;\n",
+ "D2=3.;\n",
+ "A=A1+A2;\n",
+ "B=B1+B2;\n",
+ "C=C1+C2;\n",
+ "D=D1+D2;\n",
+ "X=(A*D)-(B*C);\n",
+ "print '%s %.2f' %(' X is = ',X);\n",
+ "#Z=[A1 B1;C1 D1]*[A2 B2; C2 D2];\n",
+ "Z=np.matrix('9.55 13.66; 3.88 5.66')\n",
+ "print ' ABCD MATRIX is = ',Z"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " X is = 0.78\n",
+ " ABCD MATRIX is = [[ 9.55 13.66]\n",
+ " [ 3.88 5.66]]\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E34 : Pg 489"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 7-34 PG NO-489-490\n",
+ "h21=0.98;\n",
+ "h22=0.3*10.**-6.;\n",
+ "I1=(h22+(1./10.**4.))/h21;\n",
+ "print '%s %.2e %s' %('i) Current (I1) is = ',I1,' A ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Current (I1) is = 1.02e-04 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E37 : Pg 438"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 7-37 PG NO 438-439\n",
+ "import numpy as np\n",
+ "Z11=3.25;\n",
+ "Z21=0.75;\n",
+ "Z12=-0.75;\n",
+ "Z22=1.75;\n",
+ "#Z=[Z11 Z12;Z21 Z22];\n",
+ "X=6.25;#det(Z);\n",
+ "print ' delta is = ',X\n",
+ "#Y=np.matrix('(Z22/X) (-Z12/X);(-Z21/X) (Z11/X)');\n",
+ "Y=np.matrix('0.28 0.12;-0.12 0.52')\n",
+ "print ' ADMITTANCE is = ',Y"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " delta is = 6.25\n",
+ " ADMITTANCE is = [[ 0.28 0.12]\n",
+ " [-0.12 0.52]]\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E38 : Pg 493"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 7-38 PG NO-493\n",
+ "R1=4.; # RESISTANCE\n",
+ "R2=4.; # RESISTANCE\n",
+ "R3=8./9.; # RESISTANCE\n",
+ "Z10=(R1*(R3+R2))/(R1+R2+R3);\n",
+ "print '%s %.2f %s' %(' Impedance is (Z10) = ',Z10,'ohm');\n",
+ "Z20=(R1*(R3+R2))/(R1+R2+R3);\n",
+ "print '%s %.2f %s' %(' Impedance is (Z20) = ',Z20,'ohm');\n",
+ "Z1S=(R1*R3)/(R1+R3);\n",
+ "print '%s %.2f %s' %(' Impedance is (Z1S) = ',Z1S,'ohm');\n",
+ "Z2S=(R1*R3)/(R1+R3);\n",
+ "print '%s %.2f %s' %(' Impedance is (Z1S) = ',Z2S,'ohm');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Impedance is (Z10) = 2.20 ohm\n",
+ " Impedance is (Z20) = 2.20 ohm\n",
+ " Impedance is (Z1S) = 0.73 ohm\n",
+ " Impedance is (Z1S) = 0.73 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E42 : Pg 495"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE7-42 PG NO-495-496\n",
+ "Z11=2./3.;\n",
+ "Z22=Z11;\n",
+ "Z12=1./3.;\n",
+ "Z21=Z12;\n",
+ "A=Z11/Z21;\n",
+ "print '%s %.2f %s' %(' A is (A) = ',A,'ohm');\n",
+ "#Z=[Z11 Z12;Z21 Z22]\n",
+ "X=0.333;#det(Z);\n",
+ "print '%s %.2f' %(' Determinent is (X) = ',X);\n",
+ "B=X/Z21;\n",
+ "print '%s %.2f %s' %(' B is (B) = ',B,'ohm');\n",
+ "C=1./Z21;\n",
+ "print '%s %.2f %s' %(' C is (C) = ',C,'mho');\n",
+ "D=Z22/Z21;\n",
+ "print '%s %.2f %s' %(' D is (D) = ',D,'mho');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " A is (A) = 2.00 ohm\n",
+ " Determinent is (X) = 0.33\n",
+ " B is (B) = 1.00 ohm\n",
+ " C is (C) = 3.00 mho\n",
+ " D is (D) = 2.00 mho\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER08.ipynb b/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER08.ipynb new file mode 100644 index 00000000..4718d5df --- /dev/null +++ b/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER08.ipynb @@ -0,0 +1,1874 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:63a89845b409f13e415075f0c3a73b8dc85acb8b807dc2f7f965b56c45c3cbbb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "CHAPTER08:FILTER"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E01 : Pg 510"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-1 PG N0-510\n",
+ "import math,cmath\n",
+ "L=0.02; # INDUCTANCE\n",
+ "C=4.*10.** -6.; # CAPACITOR\n",
+ "Z=200.;\n",
+ "Fc=1./(math.pi*(L*C)** 0.5);\n",
+ "Z0=(L/C)** 0.5;\n",
+ "Z1=(1j*2)*math.pi*Z*L;\n",
+ "Z2=1./(1j*2*math.pi*Z*C);\n",
+ "Z0=(4*Z1*Z2*Z2)/(Z1+4*Z2)**0.5\n",
+ "F1=2000.;\n",
+ "Z11=1j*math.pi*F1*L;\n",
+ "Z22=1./(1j*math.pi*F1*C);\n",
+ "Z01=(4.*Z11*Z22*Z22)/(Z1+4.*Z22)** 0.5;\n",
+ "print 'i) POWER (Pmax) is = ',Z1,' W '\n",
+ "print 'ii) POWER (Pmax) is = ',Z2,' W '\n",
+ "print 'iii) POWER (Pmax) is = ',Z0,' W'\n",
+ "print 'iii) POWER (Pmax) is = ',Z11,' W '\n",
+ "print 'iv) POWER (Pmax) is = ',Z22,' W '\n",
+ "print 'v) POWER (Pmax) is = ',Z01,' W '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) POWER (Pmax) is = 25.1327412287j W \n",
+ "ii) POWER (Pmax) is = -198.943678865j W \n",
+ "iii) POWER (Pmax) is = (101348.847063-101348.847063j) W\n",
+ "iii) POWER (Pmax) is = 125.663706144j W \n",
+ "iv) POWER (Pmax) is = -39.788735773j W \n",
+ "v) POWER (Pmax) is = (48605.6509501-48605.6509501j) W \n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E02 : Pg 511"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # example 8-2 pg no -511\n",
+ "import math\n",
+ "Ro=600.;\n",
+ "Fc=940.;\n",
+ "L=Ro/(math.pi*Fc);\n",
+ "C=1./(math.pi*Ro*Fc);\n",
+ "print '%s %.2f %s' %('i) INDUCTANCE (L) is = ',L,' H ')\n",
+ "print '%s %.2e %s' %('ii) CAPACITOR (C) is = ',C,' F ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) INDUCTANCE (L) is = 0.20 H \n",
+ "ii) CAPACITOR (C) is = 5.64e-07 F \n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E03 : Pg 511"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math \n",
+ "L=0.015; # INDUCTANCE\n",
+ "C=0.5*10.** -6.; # CAPACITOR\n",
+ "Z=200.;\n",
+ "Fc=1./(4.*math.pi*(L*C)** 0.5);\n",
+ "Z0=(L/C)** 0.5;\n",
+ "Z2=(1j*2)*math.pi*Z*L;\n",
+ "Z1=1./(1j*2.*math.pi*Z*C);\n",
+ "F1=2000.;\n",
+ "Z01=(Z1*Z2)/(1.+(Z1/(4.*Z2)))** 0.5;\n",
+ "A=8.147;\n",
+ "print 'ii) Impedance (ZO) is = ',Z0,' W '\n",
+ "print 'ii) FREQUENCY is = ',Fc,' HZ '\n",
+ "print 'ii) Impedance(Z1) is = ',Z1, ' W '\n",
+ "print 'ii) Impedance(Z2) is = ',Z2,' W '\n",
+ "print 'ii) Impedance(Z01) is = ',Z01,' W '\n",
+ "print 'ii) ALPHA is = ',A"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) Impedance (ZO) is = 173.205080757 W \n",
+ "ii) FREQUENCY is = 918.88149237 HZ \n",
+ "ii) Impedance(Z1) is = -1591.54943092j W \n",
+ "ii) Impedance(Z2) is = 18.8495559215j W \n",
+ "ii) Impedance(Z01) is = (4.09648538668e-13-6690.06833567j) W \n",
+ "ii) ALPHA is = 8.147\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E04 : Pg 514"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE -8-4 PG NO-514-515\n",
+ "import math \n",
+ "Ro=3000.;\n",
+ "Fc=2000.;\n",
+ "L=Ro/(4.*math.pi*Fc);\n",
+ "C=1./(4.*math.pi*Fc*Ro);\n",
+ "print '%s %.2f %s' %('i) INDUCTANCE (L) is = ',L,' H ')\n",
+ "print '%s %.2e %s' %('ii) CAPACITOR (C) is = ',C,'F ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) INDUCTANCE (L) is = 0.12 H \n",
+ "ii) CAPACITOR (C) is = 1.33e-08 F \n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E05 : Pg 517"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-5 PG NO-517\n",
+ "C1=1.;\n",
+ "C2=50.;\n",
+ "X=1000.; # X=1/(2*math.pi*(L1*C1)**0.5)\n",
+ "Y=X*2.*(C1/C2)**0.5; # Y=(Fc2-Fc1)\n",
+ "print '%s %.2f %s' %('ii) Frequency (Fc2-Fc1) is = ',Y,' Hz ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) Frequency (Fc2-Fc1) is = 282.84 Hz \n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E06 : Pg 519"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-7 PG NO-519\n",
+ "import math \n",
+ "Ro=100.;\n",
+ "Fc2=5000.;\n",
+ "Fc1=500.;\n",
+ "L1=Ro/(2.*math.pi*(Fc2-Fc1));\n",
+ "print '%s %.2e %s' %('ii) INDUCTANCE (L1/2) is = ',L1/2.,' H ')\n",
+ "C1=(Fc2-Fc1)/(2.*math.pi*Ro*Fc1*Fc2)\n",
+ "print '%s %.2e %s' %('ii) CAPACITOR (2*C1) is = ',2.*C1,' F ')\n",
+ "L2=(Ro*(Fc2-Fc1))/(4.*math.pi*Fc1*Fc2);\n",
+ "print '%s %.2f %s' %('ii) INDUCTANCE (L2) is = ',L2,' H ')\n",
+ "C2=1./(math.pi*(Fc2-Fc1));\n",
+ "print '%s %.2e %s' %('ii) CAPACITOR (C2) is = ',C2,' F ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) INDUCTANCE (L1/2) is = 1.77e-03 H \n",
+ "ii) CAPACITOR (2*C1) is = 5.73e-06 F \n",
+ "ii) INDUCTANCE (L2) is = 0.01 H \n",
+ "ii) CAPACITOR (C2) is = 7.07e-05 F \n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E07 : Pg 519"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-7 PG NO-519\n",
+ "import math \n",
+ "Fc1=1000.;\n",
+ "Fc2=3000.;\n",
+ "Ro=100.;\n",
+ "L1=((Ro*(Fc2-Fc1))/(2.*math.pi*Fc2*Fc1))\n",
+ "print '%s %.2f %s' %('i) INDUCTANCE (L1/2) is = ',L1,' H ')\n",
+ "C1=1./(2.*math.pi*(Fc2-Fc1));\n",
+ "print '%s %.2e %s' %('ii) CAPACITOR (C1) is = ',C1,' F ')\n",
+ "L2=Ro/(4.*math.pi*(Fc2-Fc1));\n",
+ "print '%s %.2e %s' %('iii) INDUCTANCE (L2) is = ',L2,' H ')\n",
+ "C2=(Fc2-Fc1)/(math.pi*Ro*Fc1*Fc2)\n",
+ "print '%s %.2e %s' %('ii) CAPACITOR (C2) is = ',C2,' F ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) INDUCTANCE (L1/2) is = 0.01 H \n",
+ "ii) CAPACITOR (C1) is = 7.96e-05 F \n",
+ "iii) INDUCTANCE (L2) is = 3.98e-03 H \n",
+ "ii) CAPACITOR (C2) is = 2.12e-06 F \n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E08 : Pg 523"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-8 PG NO-523\n",
+ "import math \n",
+ "Ro=600.;\n",
+ "Fc=2500.;\n",
+ "L=Ro/(math.pi*Fc);\n",
+ "C=1./(math.pi*Ro*Fc);\n",
+ "print '%s %.2f %s' %('i) INDUCTANCE (L) is = ',L,' H ')\n",
+ "print '%s %.2e %s' %('ii) CAPACITOR (C) is = ',C,' F ')\n",
+ "Fo=2600.;\n",
+ "m=math.sqrt(1.-(Fc/Fo)**2.)\n",
+ "print '%s %.2f' %('iii) (m) is = ',m)\n",
+ "L1=((1.-m*m)/4.*m)*L;\n",
+ "print '%s %.2e %s' %('iv) INDUCTANCE (L1) is = ',L1,' H ')\n",
+ "L2=0.5*m*L;\n",
+ "print '%s %.2f %s' %('ii) INDUCTANCE (L2) is = ',L2,' H ')\n",
+ "C1=m*C;\n",
+ "print '%s %.2e %s' %('ii) CAPACITOR (C1) is = ',C1,' F ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) INDUCTANCE (L) is = 0.08 H \n",
+ "ii) CAPACITOR (C) is = 2.12e-07 F \n",
+ "iii) (m) is = 0.27\n",
+ "iv) INDUCTANCE (L1) is = 4.85e-03 H \n",
+ "ii) INDUCTANCE (L2) is = 0.01 H \n",
+ "ii) CAPACITOR (C1) is = 5.83e-08 F \n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E09 : Pg 525"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-9 PG NO-525\n",
+ "import math \n",
+ "Ro=600.;\n",
+ "Fc=3000.;\n",
+ "L=Ro/(4.*math.pi*Fc);\n",
+ "print '%s %.2f %s' %('i) INDUCTANCE (L) is = ',L,' H ')\n",
+ "C=1./(4.*math.pi*Fc*Ro);\n",
+ "print '%s %.2e %s' %('ii) CAPACITOR (C) is = ',C,' F ')\n",
+ "Fo=2700.;\n",
+ "m=math.sqrt(1.-(Fo/Fc)**2.);\n",
+ "print '%s %.2f %s' %('iii) (m) is = ',m,' ');\n",
+ "X=(2.*C)/m;\n",
+ "print '%s %.2e %s' %('iv) X (X) is = ',X,' F ');\n",
+ "Y=L/m;\n",
+ "print '%s %.2f %s' %('v) Y is = ',Y,' H ');\n",
+ "Z=(4.*m*C)/(1-m**2); # Z=4mC/1-m**2\n",
+ "print '%s %.2e %s' %('vi) Z (Z) is = ',Z,' F ');\n",
+ "Z1=(4.*m*L)/(1-m**2); # Z1=4mL/1-m**2\n",
+ "print '%s %.2f %s' %('vii) (Z1) is = ',Z1,' H ')\n",
+ "X1=(2.*L)/m;\n",
+ "print '%s %.2f %s' %('viii) X1 (X1) is = ',X1,' H ')\n",
+ "Y1=C/m;\n",
+ "print '%s %.2e %s' %('ix) Y1 is = ',Y1,' F ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) INDUCTANCE (L) is = 0.02 H \n",
+ "ii) CAPACITOR (C) is = 4.42e-08 F \n",
+ "iii) (m) is = 0.44 \n",
+ "iv) X (X) is = 2.03e-07 F \n",
+ "v) Y is = 0.04 H \n",
+ "vi) Z (Z) is = 9.52e-08 F \n",
+ "vii) (Z1) is = 0.03 H \n",
+ "viii) X1 (X1) is = 0.07 H \n",
+ "ix) Y1 is = 1.01e-07 F \n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E10 : Pg 529"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-10 PG NO- 529\n",
+ "import math\n",
+ "Ro=100.;\n",
+ "Fc=1000.;\n",
+ "L=Ro/Fc*math.pi;\n",
+ "print '%s %.2f %s' %('i) INDUCTANCE (L) is = ',L,' H ')\n",
+ "C=1./(math.pi*Ro*Fc)\n",
+ "print '%s %.2f %s' %('ii) CAPACITOR (C) is = ',C,' F ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) INDUCTANCE (L) is = 0.31 H \n",
+ "ii) CAPACITOR (C) is = 0.00 F \n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E11 : Pg 529"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-11 PG NO-529-530\n",
+ "import math \n",
+ "Ro=500.;\n",
+ "Fc=1000.;\n",
+ "L=Ro/(math.pi*Fc);\n",
+ "print '%s %.2f %s' %('ii) INDUCTANCE (L) is = ',L,' H ')\n",
+ "C=1/(math.pi*Ro*Fc);\n",
+ "print '%s %.2e %s' %('ii) CAPACITOR (C) is = ',C,' F ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) INDUCTANCE (L) is = 0.16 H \n",
+ "ii) CAPACITOR (C) is = 6.37e-07 F \n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E12 : Pg 530"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# EXAMPLE 8-12 PG NO-530\n",
+ "import math \n",
+ "Fc=1000.;\n",
+ "C=0.05*10.** -6.;\n",
+ "L=1/(math.pi*math.pi*Fc*Fc*C)\n",
+ "print '%s %.2f %s' %('i) INDUCTANCE (L) is =',L,' H ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) INDUCTANCE (L) is = 2.03 H \n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E13 : Pg 530"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-13 PG NO-530\n",
+ "import math\n",
+ "Fc=2000.;\n",
+ "L=0.05;\n",
+ "C=1./(16.*math.pi*math.pi*Fc*Fc*L)\n",
+ "print '%s %.2e %s' %('i) CAPACITOR (C) is = ',C,' F ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CAPACITOR (C) is = 3.17e-08 F \n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E14 : Pg 530"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-14 PG NO-530\n",
+ "import math \n",
+ "Ro=600.;\n",
+ "Fc=20000.;\n",
+ "L=Ro/(4.*math.pi*Fc);\n",
+ "C=1./(4.*math.pi*Ro*Fc);\n",
+ "print '%s %.2e %s' %('i) INDUCTANCE (L) is = ',L,' H ')\n",
+ "print '%s %.2e %s' %('ii) CAPACITOR (C) is = ',C,' F ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) INDUCTANCE (L) is = 2.39e-03 H \n",
+ "ii) CAPACITOR (C) is = 6.63e-09 F \n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E15 : Pg 531"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-15 PG NO-531\n",
+ "import math\n",
+ "L=50.*10.** -3.;\n",
+ "C=0.2*10.** -6.;\n",
+ "Ro=(L/C)** 0.5;\n",
+ "Fc=1./math.pi*(L*C)** 0.5;\n",
+ "print '%s %.2f %s' %('i) RESISTANCE (Ro) is = ',Ro,' ohm ')\n",
+ "print '%s %.2e %s' %('ii) FREQUENCY (Fc) is = ',Fc,' Hz ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) RESISTANCE (Ro) is = 500.00 ohm \n",
+ "ii) FREQUENCY (Fc) is = 3.18e-05 Hz \n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E16 : Pg 531"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-16 PG NO-531\n",
+ "import math\n",
+ "C=0.2*10.** -6.;\n",
+ "L=50.*10.** -3.;\n",
+ "Ro=(L/C)** 0.5;\n",
+ "Fc=1./4.*math.pi*(L*C);\n",
+ "print '%s %.2f %s' %('Hi) RESISTANCE (Ro) is = ',Ro,' ohm ')\n",
+ "print '%s %.2e %s' %('Hi) FREQUENCY (Fc) is = ',Fc,' Hz ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Hi) RESISTANCE (Ro) is = 500.00 ohm \n",
+ "Hi) FREQUENCY (Fc) is = 7.85e-09 Hz \n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E17 : Pg 533"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-18 PG NO-533-534 \n",
+ "Z1=1j*413.05; # Impedance\n",
+ "Z2=1j*334.45; # Impedance\n",
+ "Zoc=(Z1/2)-Z2;\n",
+ "print 'i) Impedance(Zoc) is = ',Zoc,' ohm '\n",
+ "Zsc=(Z1/2)+((Z1*-Z2)/2)/(-Z2+(Z1/2));\n",
+ "print 'ii) Impedance (Zsc) is = ',Zsc,' ohm '\n",
+ "Zo=(Zoc*Zsc)** 0.5;\n",
+ "print 'ii) Impedance (Zo) is = ',Zo,' ohm '"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Impedance(Zoc) is = -127.925j ohm \n",
+ "ii) Impedance (Zsc) is = 746.468609537j ohm \n",
+ "ii) Impedance (Zo) is = (309.017793784+0j) ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E18 : Pg 533"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-18 PG NO-533\n",
+ "import math\n",
+ "Ro=600.;\n",
+ "Fc=1000.;\n",
+ "L1=Ro/(math.pi*Fc);\n",
+ "C2=1./(math.pi*Ro*Fc);\n",
+ "Fo=1050.;\n",
+ "m=1.-(Fc/Fo)** 0.5;\n",
+ "X=(0.5*m*L1);\n",
+ "Y=(1.-m*m)/4.*m*L1;\n",
+ "Z=m*C2;\n",
+ "A=(m*L1)/2.;\n",
+ "B=(1-m*m)/(2.*m)*L1;\n",
+ "C=(m*C2)/2.;\n",
+ "print '%s %.2e %s' %('i) INDUCTAR (L1) is = ',L1,' H ')\n",
+ "print '%s %.2e %s' %('ii) CAPACITOR (C2) is = ',C2,' F ')\n",
+ "print '%s %.2e %s' %('iii) CONSTANT (m) is = ',m,' ')\n",
+ "print '%s %.2e %s' %('iv) (X) is = ',X,' H ')\n",
+ "print '%s %.2e %s' %('v) (y) is = ',Y,' H ')\n",
+ "print '%s %.2e %s' %('vi) (Z) is = ',Z,' F ')\n",
+ "print '%s %.2e %s' %('vii) (A) is = ',A,' H ')\n",
+ "print '%s %.2f %s' %('viii) (B) is = ',B,' H ')\n",
+ "print '%s %.2e %s' %('x) (C) is = ',C,' F ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) INDUCTAR (L1) is = 1.91e-01 H \n",
+ "ii) CAPACITOR (C2) is = 5.31e-07 F \n",
+ "iii) CONSTANT (m) is = 2.41e-02 \n",
+ "iv) (X) is = 2.30e-03 H \n",
+ "v) (y) is = 1.15e-03 H \n",
+ "vi) (Z) is = 1.28e-08 F \n",
+ "vii) (A) is = 2.30e-03 H \n",
+ "viii) (B) is = 3.96 H \n",
+ "x) (C) is = 6.39e-09 F \n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E19 : Pg 534"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-19 PG NO-534-535\n",
+ "import math\n",
+ "Ro=600.; # characteristics Impedance\n",
+ "Fc=1000.; # cutt of frequency\n",
+ "L=Ro/(4.*math.pi*Fc);\n",
+ "print '%s %.2f %s' %('i) Inductance is = ',L,' H ');\n",
+ "C=1./4.*math.pi*Fc*Ro;\n",
+ "print '%s %.2f %s' %('ii) Capacitance is = ',C,' F ');\n",
+ "m=0.2;\n",
+ "X=(2.*C)/m; # X=2C/m;\n",
+ "print '%s %.2f %s' %('iii) X is = ',X,' F ');\n",
+ "Y=L/m; Y=L/m;\n",
+ "print '%s %.2f %s' %('iv) Y is = ',Y,' H ');\n",
+ "Z=(4*m*C)/1-m** 2;\n",
+ "print '%s %.2f %s' %('v) Z is = ',Z,' F ');\n",
+ "m1=0.6;\n",
+ "X1=(2*C)/m1; # X=2C/m;\n",
+ "print '%s %.2f %s' %('iii) X is = ',X1,' F ');\n",
+ "Y1=(2*L)/m1; Y1=L/m1;\n",
+ "print '%s %.2f %s' %('iv) Y is = ',Y1,' H ');\n",
+ "Z1=(2*m1*C)/1-m1** 2;\n",
+ "print '%s %.2f %s' %('v) Z is = ',Z1,' F ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Inductance is = 0.05 H \n",
+ "ii) Capacitance is = 471238.90 F \n",
+ "iii) X is = 4712388.98 F \n",
+ "iv) Y is = 0.24 H \n",
+ "v) Z is = 376991.08 F \n",
+ "iii) X is = 1570796.33 F \n",
+ "iv) Y is = 0.08 H \n",
+ "v) Z is = 565486.32 F \n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E20 : Pg 535"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-20 PG NO-535\n",
+ "import math \n",
+ "Ro=450.;\n",
+ "Fc=20000.;\n",
+ "L=Ro/(4.*math.pi*Fc);\n",
+ "C=1/(4.*math.pi*Fc*Ro);\n",
+ "Z1=Ro/(2.*math.pi*Fc);\n",
+ "print '%s %.2e' %('i) IMPEDANCE (Z1) is = ',Z1);"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) IMPEDANCE (Z1) is = 3.58e-03\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E21 : Pg 536"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-21 PG NO-536-537\n",
+ "import math \n",
+ "Ro=600.; # RESISTANCE\n",
+ "Fc=10000.; # FREQUENCY\n",
+ "F=25000.;\n",
+ "L=Ro/(4.*math.pi*Fc);\n",
+ "C=1./(4.*math.pi*Fc*Ro);\n",
+ "Z=Ro*1.-((Fc/F)** 2.)** 0.5;\n",
+ "Zo=Ro/1.-((Fc/F)** 2.)** 0.5;\n",
+ "print '%s %.2e %s' %('i) INDUCTAR (L) is = ',L,' H ')\n",
+ "print '%s %.2e %s' %('ii) CAPACITOR (C) is = ',C,' F ')\n",
+ "print '%s %.2f %s' %('i) IMPEDANCE (Z) is = ',Z,' ohm ')\n",
+ "print '%s %.2f %s' %('ii) IMPEDANCE (Zo) is = ',Zo,' ohm ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) INDUCTAR (L) is = 4.77e-03 H \n",
+ "ii) CAPACITOR (C) is = 1.33e-08 F \n",
+ "i) IMPEDANCE (Z) is = 599.60 ohm \n",
+ "ii) IMPEDANCE (Zo) is = 599.60 ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E22 : Pg 537"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-22 PG NO-537-538\n",
+ "import math \n",
+ "L=60.*10.** -3.;\n",
+ "C=150.*10.** -9.;\n",
+ "Fo=1./(2.*math.pi*(L*C)** 0.5);\n",
+ "print '%s %.2f %s' %('ii) FREQUENCY (Fo) is = ',Fo,' Hz ')\n",
+ "R=670.;\n",
+ "BW=R/L;\n",
+ "print '%s %.2f %s' %('ii) BAND WIDTH (B.W) is = ',BW,' rad/sec ')\n",
+ "FL=Fo-(1777.22/2.);\n",
+ "print '%s %.2f %s' %('ii) Lower Cut of Frequency (FL) is = ',FL,' Hz ')\n",
+ "Fu=Fo+(1777.22/2.);\n",
+ "print '%s %.2f %s' %('ii) Upper Cut of Frequency (Fu) is = ',Fu,' Hz ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) FREQUENCY (Fo) is = 1677.64 Hz \n",
+ "ii) BAND WIDTH (B.W) is = 11166.67 rad/sec \n",
+ "ii) Lower Cut of Frequency (FL) is = 789.03 Hz \n",
+ "ii) Upper Cut of Frequency (Fu) is = 2566.25 Hz \n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E23 : Pg 538"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-23 PG NO-538\n",
+ "import math\n",
+ "L=160.*10.** -3.;\n",
+ "C=0.022*10.** -6.;\n",
+ "Fc=1./math.pi*(L*C)** 0.5;\n",
+ "Zo=(L/C)** 0.5;\n",
+ "print '%s %.2f %s' %('ii) Cut of Frequency (Fc) is = ',Fc,' Hz ')\n",
+ "print '%s %.2f %s' %('ii) IMPEDANCE (Zo) is = ',Zo,' ohm ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) Cut of Frequency (Fc) is = 0.00 Hz \n",
+ "ii) IMPEDANCE (Zo) is = 2696.80 ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E24 : Pg 541"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-24 PG NO-541-542\n",
+ "import math \n",
+ "Avf=1.56\n",
+ "Vo=2.262*10.** -3.;\n",
+ "R=15.*10.**3.;\n",
+ "F=0.707;\n",
+ "C=0.002*10.** -6.;\n",
+ "Fc=1./(2.*math.pi*R*C);\n",
+ "print '%s %.2f %s' %('ii) Cut of Frequency (Fc) is = ',Fc,' Hz ')\n",
+ "Vo1=F*Vo;\n",
+ "A=20.*math.log(1.56);\n",
+ "print '%s %.2e %s' %('ii) Out Put Voltage (Vo1) is = ',Vo1,' V ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) Cut of Frequency (Fc) is = 5305.16 Hz \n",
+ "ii) Out Put Voltage (Vo1) is = 1.60e-03 V \n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E25 : Pg 542"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-25 PG NO-542\n",
+ "import math \n",
+ "Fc=4000.;\n",
+ "R=10.*10.** 3.;\n",
+ "C=1./2.*math.pi*Fc*R;\n",
+ "print '%s %.2f %s' %('i) CAPACITOR (C) is = ',C,' F ')\n",
+ "Avf=1.586;\n",
+ "R1=15000.\n",
+ "R2=Avf-1*R1;\n",
+ "print '%s %.2f %s' %('ii) RESISTANCE (R2) is = ',R2,' ohm ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) CAPACITOR (C) is = 62831853.07 F \n",
+ "ii) RESISTANCE (R2) is = -14998.41 ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E26 : Pg 543"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE-8-26 PG NO-543\n",
+ "import math \n",
+ "R=15.86;\n",
+ "R1=10.;\n",
+ "MA=R/R1; \n",
+ "print '%s %.2f' %('i) mid band gain = ',MA);"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) mid band gain = 1.59\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E27 : Pg 545"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-27 PG NO-545\n",
+ "import math \n",
+ "R2=0.586;\n",
+ "MG=1.+0.586; # MID BAND GAIN\n",
+ "R=10.** 3.;\n",
+ "C=0.02*10.** -6.;\n",
+ "Fc=1/(2*math.pi*R*C); # Cut OFF Frequency\n",
+ "GFc=0.707*MG;\n",
+ "MBO=MG*1.4;\n",
+ "print '%s %.2f %s' %('ii) Cut off Frequency (Fc) is = ',Fc,' ')\n",
+ "print '%s %.2f %s' %('ii) Gain at cutt of frequency (G.Fc) is = ',GFc,' ')\n",
+ "print '%s %.2f %s' %('ii) Mid band out Put (M.B.O) is = ',MBO,' mV ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) Cut off Frequency (Fc) is = 7957.75 \n",
+ "ii) Gain at cutt of frequency (G.Fc) is = 1.12 \n",
+ "ii) Mid band out Put (M.B.O) is = 2.22 mV \n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E28 : Pg 545"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE-8-28 PG NO-545-546\n",
+ "import math \n",
+ "Avf=1.586;\n",
+ "R1=10.;\n",
+ "R2=Avf-1*R1;\n",
+ "Fc=5000.;\n",
+ "R=2000.;\n",
+ "C=1./2.*math.pi*R*Fc\n",
+ "print '%s %.2f %s' %('ii) Resistance (R2) is = ',R2,' Kohm ')\n",
+ "print '%s %.2f %s' %('ii) CAPACITOR (C) is = ',C,' F ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) Resistance (R2) is = -8.41 Kohm \n",
+ "ii) CAPACITOR (C) is = 15707963.27 F \n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E29 : Pg 547"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-29 PG NO-547-548\n",
+ "import math \n",
+ "R1=10000.;\n",
+ "Fc1=8000.;\n",
+ "C1=1./2.*math.pi*R1*Fc1;\n",
+ "R4=15.;\n",
+ "R3=8.79;\n",
+ "Fc2=4000.;\n",
+ "R2=20000.;\n",
+ "C2=1./2.*math.pi*R2*Fc2;\n",
+ "print '%s %.2f %s' %('ii) CAPACITOR (C1) is = ',C1,' F ')\n",
+ "print '%s %.2f %s' %('ii) CAPACITOR (C2) is = ',C2,' F ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) CAPACITOR (C1) is = 125663706.14 F \n",
+ "ii) CAPACITOR (C2) is = 125663706.14 F \n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E30 : Pg 548"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-30 PG NO-548\n",
+ "import math \n",
+ "R1=10000.;\n",
+ "Fc1=40000 ;\n",
+ "C1=1./R1*Fc1*2*math.pi;\n",
+ "print '%s %.2f %s' %('ii) CAPACITOR (C1) is = ',C1,' F ');\n",
+ "Fc2=8000.;\n",
+ "R2=5000.;\n",
+ "C2=1./R2*Fc2*2.*math.pi;\n",
+ "print '%s %.2e %s' %('ii) CAPACITOR (C2) is = ',C2,' F ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) CAPACITOR (C1) is = 25.13 F \n",
+ "ii) CAPACITOR (C2) is = 1.01e+01 F \n"
+ ]
+ }
+ ],
+ "prompt_number": 30
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E31 : Pg 550"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-31 PG NO-550\n",
+ "import math \n",
+ "N=100.;\n",
+ "Ro=450.;\n",
+ "R1=Ro*(N-1)/(N+1);\n",
+ "R2=Ro*(2*N/(N** 2-1));\n",
+ "print '%s %.2f %s' %('ii) Resistance (R1) is = ',R1,' ohm ');\n",
+ "print '%s %.2f %s' %('ii) Resistance(r2) is = ',R2,' ohm ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) Resistance (R1) is = 441.09 ohm \n",
+ "ii) Resistance(r2) is = 9.00 ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E32 : Pg 550"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-32 PG NO-550\n",
+ "import math \n",
+ "Zoc=200.;\n",
+ "Zsc=187.5;\n",
+ "Zo=Zoc*Zsc** 0.5;\n",
+ "R1=50.;\n",
+ "R2=150.;\n",
+ "R3=193.65;\n",
+ "N=(R1+R2+R3)/R1;\n",
+ "D=20.*math.log10(N)\n",
+ "print '%s %.2f %s' %('ii) IMPEDANCE (Zo) is = ',Zo,' ohm ');\n",
+ "print '%s %.2f' %('ii) (N) is = ',N);\n",
+ "print '%s %.2f %s' %('ii) (D) is = ',D,' dB ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) IMPEDANCE (Zo) is = 2738.61 ohm \n",
+ "ii) (N) is = 7.87\n",
+ "ii) (D) is = 17.92 dB \n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E33 : Pg 551"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-33 PG NO-551\n",
+ "import math \n",
+ "N=2.985;\n",
+ "Ro=175.;\n",
+ "R1=Ro*(N-1)/(N+1);\n",
+ "R2=Ro*(2.*N)/(N** 2-1);\n",
+ "print '%s %.2f %s' %('ii) Resistance (R1) is = ',R1,' ohm ');\n",
+ "print '%s %.2f %s' %('ii) Resistance (R2) is = ',R2,' ohm ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) Resistance (R1) is = 87.17 ohm \n",
+ "ii) Resistance (R2) is = 132.08 ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 33
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E34 : Pg 551"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-33 PG NO-551\n",
+ "import math \n",
+ "N=2.985;\n",
+ "Ro=175.;\n",
+ "R1=Ro*(N-1)/(N+1);\n",
+ "R2=Ro*(2.*N)/(N** 2-1);\n",
+ "print '%s %.2f %s' %('ii) Resistance (R1) is = ',R1,' ohm ');\n",
+ "print '%s %.2f %s' %('ii) Resistance (R2) is = ',R2,' ohm ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) Resistance (R1) is = 87.17 ohm \n",
+ "ii) Resistance (R2) is = 132.08 ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 34
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E35 : Pg 552"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-35 PG NO-552\n",
+ "import math\n",
+ "R1=200.;\n",
+ "R2=200.;\n",
+ "R3=100.;\n",
+ "Zoc=(R1*(R2+R3)/(R1+R2+R3));\n",
+ "print '%s %.2f %s' %('i) IMPEDANCE (Zoc) is = ',Zoc,' ohm ');\n",
+ "Zsc=(R1*R3)/(R1+R3);\n",
+ "print '%s %.2f %s' %('ii) IMPEDANCE (Zsc) is = ',Zsc,' ohm ');\n",
+ "Zo=Zoc*Zsc** 0.5;\n",
+ "print '%s %.2f %s' %('iii) IMPEDANCE (Zo) is = ',Zo,' ohm ');\n",
+ "N=2.618;\n",
+ "D=20.*math.log10(N)\n",
+ "print '%s %.2f %s' %('ii) (D) is = ',D,' dB ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) IMPEDANCE (Zoc) is = 120.00 ohm \n",
+ "ii) IMPEDANCE (Zsc) is = 66.67 ohm \n",
+ "iii) IMPEDANCE (Zo) is = 979.80 ohm \n",
+ "ii) (D) is = 8.36 dB \n"
+ ]
+ }
+ ],
+ "prompt_number": 35
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E36 : Pg 552"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-36 PG NO-552-553\n",
+ "N=31.622;\n",
+ "Ro=700.;\n",
+ "R1=Ro*((N** 2-1)/(2*N));\n",
+ "R2=Ro*((N+1)/(N-1));\n",
+ "print '%s %.2f %s' %('i) RESISTANCE (R1) is = ',R1,' ohm ');\n",
+ "print '%s %.2f %s' %('ii) RESISTANCE (R2) is = ',R2,' ohms ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) RESISTANCE (R1) is = 11056.63 ohm \n",
+ "ii) RESISTANCE (R2) is = 745.72 ohms \n"
+ ]
+ }
+ ],
+ "prompt_number": 36
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E37 : Pg 553"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-37 PG NO-553\n",
+ "R1=657.08;\n",
+ "R2=44.316;\n",
+ "Zoc=R1+R2;\n",
+ "Zsc=R1+((R1*R2)/(R1+R2));\n",
+ "Zo=(Zoc*Zsc)** 0.5;\n",
+ "N=(R2+R1+Zo)/R2;\n",
+ "print '%s %.2f %s' %('i) impedance (Zoc) is = ',Zoc,' ohm ');\n",
+ "print '%s %.2f %s' %('ii) impedance (Zsc) is = ',Zsc,' ohm ');\n",
+ "print '%s %.2f %s' %('iii)impedance (Zo) is = ',Zo,' ohm ');\n",
+ "print '%s %.2f' %('iv) (N) is = ',N);"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) impedance (Zoc) is = 701.40 ohm \n",
+ "ii) impedance (Zsc) is = 698.60 ohm \n",
+ "iii)impedance (Zo) is = 699.99 ohm \n",
+ "iv) (N) is = 31.62\n"
+ ]
+ }
+ ],
+ "prompt_number": 37
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E38 : Pg 554"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-38 PG NO-554\n",
+ "N=5.6234;\n",
+ "Ro=450.;\n",
+ "R1=Ro*((N** 2-1)/(2*N));\n",
+ "R2=Ro*((N+1)/(N-1));\n",
+ "print '%s %.2f %s' %('i) RESISTANCE (R1) is = ',R1,' ohm ');\n",
+ "print '%s %.2f %s' %('ii) RESISTANCE (R2) is = ',R2,' ohm ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) RESISTANCE (R1) is = 1225.25 ohm \n",
+ "ii) RESISTANCE (R2) is = 644.66 ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 38
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E39 : Pg 554"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-39 PG NO-554\n",
+ "R1=250.;\n",
+ "R2=750.;\n",
+ "Zoc=(R1*(R1+R2))/(R1+R2+R1);\n",
+ "Zsc=((R1*R2)/(R1+R2));\n",
+ "Zo=(Zoc*Zsc)**0.5;\n",
+ "print '%s %.2f %s' %('i) impedance (Zoc) is = ',Zoc, 'ohm ');\n",
+ "print '%s %.2f %s' %('ii) impedance (Zsc) is = ',Zsc,' ohm ');\n",
+ "print '%s %.2f %s' %('iii)impedance (Zo) is = ',Zo,' ohm ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) impedance (Zoc) is = 200.00 ohm \n",
+ "ii) impedance (Zsc) is = 187.50 ohm \n",
+ "iii)impedance (Zo) is = 193.65 ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 39
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E40 : Pg 554"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-40 PG NO-554-555\n",
+ "R1=459.089;\n",
+ "R2=22500.;\n",
+ "Zoc=(R1*(R1+R2))/(R1+R2+R1);\n",
+ "Zsc=((R1*R2)/(R1+R2));\n",
+ "Zo=(Zoc*Zsc)**0.5;\n",
+ "print '%s %.2f %s' %('i) impedance (Zoc) is = ',Zoc,' ohm ');\n",
+ "print '%s %.2f %s' %('ii) impedance (Zsc) is = ',Zsc,' ohm ');\n",
+ "print '%s %.2f %s' %('iii)impedance (Zo) is = ',Zo,' ohm ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) impedance (Zoc) is = 450.09 ohm \n",
+ "ii) impedance (Zsc) is = 449.91 ohm \n",
+ "iii)impedance (Zo) is = 450.00 ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 40
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E41 : Pg 557"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-41 PG NO-557\n",
+ "N=7.943;\n",
+ "Z=300.; # IMPEDANCE\n",
+ "R1=((N-1.)/N)*Z;\n",
+ "R2=Z/(N-1.);\n",
+ "print '%s %.2f %s' %('i) RESISTANCE (R1) is = ',R1,' ohm ');\n",
+ "print '%s %.2f %s' %('ii) RESISTANCE (R2) is = ',R2,' ohm ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) RESISTANCE (R1) is = 262.23 ohm \n",
+ "ii) RESISTANCE (R2) is = 43.21 ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 41
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E42 : Pg 557"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-43 PG NO-557\n",
+ "Z1=450.;\n",
+ "Z2=300.;\n",
+ "R1=(Z1*(Z1-Z2))**0.5;\n",
+ "R2=((Z1*Z2*Z2)/(Z1-Z2))**0.5;\n",
+ "print '%s %.2f %s' %('ii) RESISTANCE (R1) is = ',R1,' ohm ');\n",
+ "print '%s %.2f %s' %('ii) RESISTANCE (R2) is = ',R2,' ohm ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) RESISTANCE (R1) is = 259.81 ohm \n",
+ "ii) RESISTANCE (R2) is = 519.62 ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 42
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E43 : Pg 557"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-43 PG NO-557\n",
+ "Z1=450.;\n",
+ "Z2=300.;\n",
+ "R1=(Z1*(Z1-Z2))**0.5;\n",
+ "R2=((Z1*Z2*Z2)/(Z1-Z2))**0.5;\n",
+ "print '%s %.2f %s' %('ii) RESISTANCE (R1) is = ',R1,' ohm ');\n",
+ "print '%s %.2f %s' %('ii) RESISTANCE (R2) is = ',R2,' ohm ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) RESISTANCE (R1) is = 259.81 ohm \n",
+ "ii) RESISTANCE (R2) is = 519.62 ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 43
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E45 : Pg 559"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-45 PG NO-559-560\n",
+ "N=5.6234;\n",
+ "R1=500.;\n",
+ "R2=R1/(N-1.);\n",
+ "R3=R1*(N-1.);\n",
+ "print '%s %.2f %s' %('i) RESISTANCE (R2) is = ',R2,' ohm ');\n",
+ "print '%s %.2f %s' %('ii) RESISTANCE (R3) is = ',R3,' ohm ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) RESISTANCE (R2) is = 108.15 ohm \n",
+ "ii) RESISTANCE (R3) is = 2311.70 ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 44
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E46 : Pg 560"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-46 PG NO-560-561\n",
+ "N=7.0795;\n",
+ "Z1=450.;\n",
+ "R1=Z1*((N-1.)/(N+1.));\n",
+ "R2=Z1*((N+1.)/(N-1.));\n",
+ "print '%s %.2f %s' %('ii) RESISTANCE (R1) is = ',R1,' ohm ');\n",
+ "print '%s %.2f %s' %('ii) RESISTANCE (R2) is = ',R2,' ohm ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) RESISTANCE (R1) is = 338.61 ohm \n",
+ "ii) RESISTANCE (R2) is = 598.04 ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 45
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E47 : Pg 561"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-47 PG NO-561\n",
+ "import math \n",
+ "R1=175.;\n",
+ "R2=350.;\n",
+ "Zoc=R1+R2;\n",
+ "Zsc=R1+((R1*R2)/(R1+R2));\n",
+ "Zo=(Zoc*Zsc)**0.5;\n",
+ "N=(R1+R2+Zo)/R2;\n",
+ "AT=20.*math.log10(2.618);\n",
+ "print '%s %.2f %s' %('i) impedance (Zoc) is = ',Zoc,' ohm ');\n",
+ "print '%s %.2f %s' %('ii) impedance (Zsc) is = ',Zsc,' ohm ');\n",
+ "print '%s %.2f %s' %('iii)impedance (Zo) is = ',Zo,' ohm ');\n",
+ "print '%s %.2f' %('iv) (N) is = ' ,N)\n",
+ "print '%s %.2f %s' %('v)attenuation (AT) is = ',AT,' dB ')"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) impedance (Zoc) is = 525.00 ohm \n",
+ "ii) impedance (Zsc) is = 291.67 ohm \n",
+ "iii)impedance (Zo) is = 391.31 ohm \n",
+ "iv) (N) is = 2.62\n",
+ "v)attenuation (AT) is = 8.36 dB \n"
+ ]
+ }
+ ],
+ "prompt_number": 46
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E48 : Pg 561"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-48 PG NO-561\n",
+ "R=300.;\n",
+ "N=31.62;\n",
+ "R1=((N-1.)/N)*R;\n",
+ "R2=R/(N-1.);\n",
+ "print '%s %.2f %s' %('i) RESISTANCE (R1) is = ',R1,' ohm ');\n",
+ "print '%s %.2f %s' %('ii) RESISTANCE (R2) is = ',R2,' ohm ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) RESISTANCE (R1) is = 290.51 ohm \n",
+ "ii) RESISTANCE (R2) is = 9.80 ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 47
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E49 : Pg 562"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 8-49 PG NO-562\n",
+ "Ro=500.;\n",
+ "N=10.;\n",
+ "RA=Ro*((N-1.)/(N+1.));\n",
+ "RB=Ro*((N+1.)/(N-1.));\n",
+ "R1=Ro*((N-1.)/(N+1.));\n",
+ "R2=Ro*((2.*N)/(N**2.-1.));\n",
+ "print '%s %.2f %s' %('ii) RESISTANCE (RA) is = ',RA,' ohm ');\n",
+ "print '%s %.2f %s' %('ii) RESISTANCE (RB) is = ',RB,' ohm ');\n",
+ "print '%s %.2f %s' %('ii) RESISTANCE (R1) is = ',R1,' ohm ');\n",
+ "print '%s %.2f %s' %('ii) RESISTANCE (R2) is = ',R2,' ohm ');"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) RESISTANCE (RA) is = 409.09 ohm \n",
+ "ii) RESISTANCE (RB) is = 611.11 ohm \n",
+ "ii) RESISTANCE (R1) is = 409.09 ohm \n",
+ "ii) RESISTANCE (R2) is = 101.01 ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 48
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER09.ipynb b/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER09.ipynb new file mode 100644 index 00000000..6549f9c6 --- /dev/null +++ b/Network_Analysis_and_Synthesis_by_B_R_Gupta/CHAPTER09.ipynb @@ -0,0 +1,325 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:2fe5d303c17886b921f7fce80c636f86023d9235c3c8b0a7cac768a73d655baa"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "CHAPTER09 : NETWORK FUNCTION"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E24 - Pg 608"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 9-24 PG NO-608-609\n",
+ "import math \n",
+ "L=20.; # INDUCTANCE\n",
+ "R=2.*L; # RESISTANCE\n",
+ "print '%s %.2f %s' %('i) Resistance (R) is =',R,'ohm');\n",
+ "Wo=math.sqrt(101.);\n",
+ "print '%s %.2f %s' %('ii) Wo (Wo) is =',Wo,'rad/sec');\n",
+ "Q=(Wo*L)/R;\n",
+ "print '%s %.2f' %('iii) Q is = ',Q);\n",
+ "BW=Wo/Q;\n",
+ "print '%s %.2f %s' %('iv) BANDWIDTH (BW) is = ',BW,' rad/sec ');\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Resistance (R) is = 40.00 ohm\n",
+ "ii) Wo (Wo) is = 10.05 rad/sec\n",
+ "iii) Q is = 5.02\n",
+ "iv) BANDWIDTH (BW) is = 2.00 rad/sec \n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E26 - Pg 609"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 9-26 PG NO-609-610\n",
+ "C=10.** -6.;\n",
+ "X=5.*10.** 6.;\n",
+ "L=1./(C*X);\n",
+ "print '%s %.2f %s' %('i) INDUCTAR (L) is =',L,' H ');\n",
+ "R=10.*L;\n",
+ "print '%s %.2f %s' %('ii) Resistance (R) is =',R,' ohm ');\n",
+ "W=2.236*10.** 3.;\n",
+ "Q=(W*L)/R;\n",
+ "print '%s %.2f' %('iii) (Q) is = ',Q);\n",
+ "BW=W/Q;\n",
+ "print '%s %.2f %s' %('iv) Band Width (BW) is =',BW,' rad/sec ');\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) INDUCTAR (L) is = 0.20 H \n",
+ "ii) Resistance (R) is = 2.00 ohm \n",
+ "iii) (Q) is = 223.60\n",
+ "iv) Band Width (BW) is = 10.00 rad/sec \n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E32 - Pg 618"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # Example 9-32 PG NO 618-619\n",
+ "import math, cmath\n",
+ "P1=1-1j*50;\n",
+ "P2=1+1j*150;\n",
+ "Z1=0+0j*50;\n",
+ "I=(0.2*Z1)/(P1*P2);\n",
+ "print 'i) Current (I) is = ',I,'A'\n",
+ "L=5.; \n",
+ "R=10.;\n",
+ "C=2.*10.** -5.;\n",
+ "Wo=1/math.sqrt(L*C);\n",
+ "print 'ii) Wo (Wo) is = ',Wo,' rad/sec '\n",
+ "Q=(Wo*L)/R;\n",
+ "print 'iii) Q (Q) is = ',Q;\n",
+ "BW=Wo/Q;\n",
+ "print 'ii) Band Width (BW) is = ',BW,' rad/sec '\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Current (I) is = 0j A\n",
+ "ii) Wo (Wo) is = 100.0 rad/sec \n",
+ "iii) Q (Q) is = 50.0\n",
+ "ii) Band Width (BW) is = 2.0 rad/sec \n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E37 - Pg 623"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 9-37 PG NO 623-624\n",
+ "C=1./8.5; # Capacitor\n",
+ "L=1./(17.*C); # Inductar\n",
+ "print '%s %.2f %s' %('ii) Inductar (L) is = ',L,'H');\n",
+ "R=2.*L; # Resistance\n",
+ "print '%s %.2f %s' %('ii) Resistance (R) is = ',R,' ohm ');\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "ii) Inductar (L) is = 0.50 H\n",
+ "ii) Resistance (R) is = 1.00 ohm \n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E38 - Pg 624"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 9-38 PG NO=624-625\n",
+ "C=1./9.; # CAPACITOR\n",
+ "X=2.; # R/L=X\n",
+ "Y=6-X; # G/C\n",
+ "G=4.*C;\n",
+ "print '%s %.2f %s' %('i) G (G) = ',G,' ohm')\n",
+ "L=0.9;\n",
+ "R=1.8;\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) G (G) = 0.44 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E46 - Pg 630"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 9-46 PG NO 630-631\n",
+ "import cmath\n",
+ "ZA=5+1j*3;\n",
+ "YA=1./ZA;\n",
+ "print 'i) Admittance (YA) is = ',YA,' siemens ';\n",
+ "V=100.; # VOLTAGE\n",
+ "IA=V*YA;\n",
+ "print 'ii) Current (IA) is = ',IA,' A ';\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i) Admittance (YA) is = (0.147058823529-0.0882352941176j) siemens \n",
+ "ii) Current (IA) is = (14.7058823529-8.82352941176j) A \n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E50 - Pg 632"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # EXAMPLE 9-50 PG NO-632\n",
+ "I1=17.39-1j*4.66; # CURRENT\n",
+ "I2=9+1j*15.68; # CURRENT\n",
+ "I3=-1j*10.95; # CURRENT\n",
+ "I=I1+I2+I3;\n",
+ "print 'i)CURRENT (I) = ',I,' A'\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)CURRENT (I) = (26.39+0.07j) A\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E56 - Pg 636"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ " # example 9-56 pg no-636\n",
+ "Z1=8.05+1j*2.156; # IMPEDANCE\n",
+ "XL=2.155;\n",
+ "W=5000;\n",
+ "L=XL/W;\n",
+ "print 'i)INDUCTANCE (L) = ',L,' H'\n",
+ "Z2=4.166-1j*7.216; # IMPEDANCE\n",
+ "Xc=7.216;\n",
+ "C=1/(W*Xc);\n",
+ "print 'ii)CAPACITOR (C) = ',C,' F'\n",
+ "D=11.708; # DIAMETER\n",
+ "XL1=12.81;\n",
+ "L1=XL1/W;\n",
+ "print 'i) INDUCTANCE (L1) = ',L1,' H'\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "i)INDUCTANCE (L) = 0.000431 H\n",
+ "ii)CAPACITOR (C) = 2.77161862528e-05 F\n",
+ "i) INDUCTANCE (L1) = 0.002562 H\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Network_Analysis_and_Synthesis_by_B_R_Gupta/screenshots/Capture02.png b/Network_Analysis_and_Synthesis_by_B_R_Gupta/screenshots/Capture02.png Binary files differnew file mode 100644 index 00000000..03c7d676 --- /dev/null +++ b/Network_Analysis_and_Synthesis_by_B_R_Gupta/screenshots/Capture02.png diff --git a/Network_Analysis_and_Synthesis_by_B_R_Gupta/screenshots/Capture04.png b/Network_Analysis_and_Synthesis_by_B_R_Gupta/screenshots/Capture04.png Binary files differnew file mode 100644 index 00000000..9ea8e364 --- /dev/null +++ b/Network_Analysis_and_Synthesis_by_B_R_Gupta/screenshots/Capture04.png diff --git a/Network_Analysis_and_Synthesis_by_B_R_Gupta/screenshots/Capture08.png b/Network_Analysis_and_Synthesis_by_B_R_Gupta/screenshots/Capture08.png Binary files differnew file mode 100644 index 00000000..d86b614f --- /dev/null +++ b/Network_Analysis_and_Synthesis_by_B_R_Gupta/screenshots/Capture08.png diff --git a/sample_notebooks/SumadhuriDamerla/Chapter_1_Passive_Circuits.ipynb b/sample_notebooks/SumadhuriDamerla/Chapter_1_Passive_Circuits.ipynb new file mode 100644 index 00000000..916e874c --- /dev/null +++ b/sample_notebooks/SumadhuriDamerla/Chapter_1_Passive_Circuits.ipynb @@ -0,0 +1,370 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 1 Passive Circuits" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.2.2, Pg.no.5" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of resistance R is 16.61 ohm\n", + "The value of resistance R3 is 66.82 ohm\n" + ] + } + ], + "source": [ + "import math\n", + "#given\n", + "Ro=50.0\n", + "ILdB=6.0 #T−type attenuator provide 6−dB insertion loss \n", + "#calculation\n", + "IL=10**-(ILdB/20) #Determination of R\n", + "R=Ro*(1-IL)/(1+IL)\n", + "R=round(R,2)\n", + "print 'The value of resistance R is',R,'ohm' \n", + "#Determination of R3\n", + "R3=(2*Ro*IL)/(1-(0.5)**2)\n", + "R3=round(R3,2)\n", + "print 'The value of resistance R3 is',R3,'ohm'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.2.3,Pg.no.7" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of resistance RA and RB is 150.5 ohm\n", + "The value of resistance RC is 37.35 ohm\n" + ] + } + ], + "source": [ + "import math\n", + "#given\n", + "Ro=50.0\n", + "ILdB=6.0\n", + "IL=10**-(ILdB/20) #Determination of RA and RB\n", + "RA=Ro*(1+IL)/(1-IL)\n", + "RA=round(RA,1)\n", + "print 'The value of resistance RA and RB is',RA,'ohm'\n", + "#Determination of RC\n", + "RC=Ro*(1-(IL)**2)/(2*IL)\n", + "RC=round(RC,2)\n", + "print 'The value of resistance RC is',RC,'ohm'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.2.4,Pg.no.9" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of resistance R1 is 1.0 ohm\n", + "The value of resistance R3 is 5624.0 ohm\n", + "The value of insertion loss is 0.12 decibels\n" + ] + } + ], + "source": [ + "import math\n", + "from math import log10\n", + "#given\n", + "Rs=75.0 #resistance\n", + "Rl=50.0 \n", + "#Determination of R1\n", + "R1=(Rs*(Rs-Rl))**(1/2)\n", + "R1=round(R1,2)\n", + "print 'The value of resistance R1 is',R1,'ohm'\n", + "#Determination of R3\n", + "R3=((Rs**2)-(R1**2))/R1\n", + "R3=round(R3,2)\n", + "print 'The value of resistance R3 is',R3,'ohm'\n", + "#Determination of insertion loss\n", + "IL=(R3*(Rs+R1))/((Rs+R1+R3)*(R3+R1)-(R3)**2)\n", + "ILdB=-20*log10(IL) #convertion of power in decibels\n", + "ILdB=round(ILdB,2)\n", + "print 'The value of insertion loss is',ILdB,'decibels'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.2.5,Pg.no.10" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of resistance R2 is 1.0 ohm\n", + "The value of resistance R3 is 2499.0 ohm\n", + "The value of insertion loss is 0.2 decibels\n" + ] + } + ], + "source": [ + "from math import log10\n", + "Rs=10.0\n", + "Rl=50.0 #Determination of R2\n", + "R2=(Rl*(Rl-Rs))**(1/2)\n", + "R2=round(R2,2)\n", + "print 'The value of resistance R2 is',R2,'ohm'\n", + "#Determination of R3\n", + "R3=((Rl**2)-(R2**2))/R2\n", + "R3=round(R3,2)\n", + "print 'The value of resistance R3 is',R3,'ohm'\n", + "#Determination of insertion loss\n", + "IL=(R3*(Rs+Rl))/((Rs+R3)*(R3+R2+Rl)-(R3)**2)\n", + "ILdB=-20*log10(IL) #convertion of power in decibels\n", + "ILdB=round(ILdB,1)\n", + "print 'The value of insertion loss is',ILdB,'decibels'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.5.1,Pg.no.21" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of self resonant freq is 60.2 MHz\n", + "The value of Q−factor is 31.4\n", + "The value of effective inductance is -5.79846400003e-12 uH\n", + "The value of effective Q−factor is -5.41522720497e+12\n" + ] + } + ], + "source": [ + "import math\n", + "C=7*10**-12\n", + "R=5.0\n", + "L=10**-6\n", + "f=25*10**6 \n", + "#Determination of self resonant freq of coil denoted as Fsr\n", + "Fsr=1/(2*3.14*(L*C)**0.5)\n", + "Fsr=Fsr/(10**6)\n", + "Fsr=round(Fsr,1)\n", + "print 'The value of self resonant freq is',Fsr,'MHz'\n", + "#Determination of Q−factor of coil , excluding self − capacitive effects\n", + "Q=(2*3.14*f*L)/R\n", + "print 'The value of Q−factor is',Q\n", + "#Determination of effective inductance\n", + "Leff=L/(1-(f/Fsr)**2)\n", + "Leff=Leff*(10**6)\n", + "#Leff=round(Leff,0)\n", + "print 'The value of effective inductance is',Leff,'uH'\n", + "#Determination of effective Q−factor\n", + "Qeff=Q*(1-(f/Fsr)**2)\n", + "Qeff=round(Qeff,0)\n", + "print 'The value of effective Q−factor is',Qeff" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.8.1,Pg.no.26" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of common resonant freq is 1e-06 Mrad/sec\n", + "The transfer impedance is -6.83732235918e-05 ohm\n" + ] + } + ], + "source": [ + "import cmath\n", + "#given\n", + "Lp=150*10**-6 #inductance\n", + "Ls=150*10**-6\n", + "Cp=470*10**-12 #capacitance\n", + "Cs=470*10**-12 #Lp=Ls=150 uH,Cp=Cs=470 pF\n", + "Q=85.0 #Q−factor for each ckt is 85\n", + "c=0.01 #Coeff of coupling is 0.01\n", + "Rl=5000.0 #Load resistance Rl=5000 ohm\n", + "r=75000.0 #Constant current source with internal resistance r=75 kohm\n", + "#calculations\n", + "#Determination of common resonant frequency\n", + "wo=1/((Lp*Cp)**(1/2))\n", + "wo=wo/(10**6)\n", + "print 'The value of common resonant freq is',wo,'Mrad/sec'\n", + "p=3.77*10**6\n", + "Z2=complex(62.9004,557.266) #Formula=Rl/(1+(p*j*Cs*Rl))\n", + "Z1=complex(4.2465,564.33) #Formula=r/(1+(p*j*Cp*r)) ;At resonance Zs=Zp=Z\n", + "z=complex(0,1)\n", + "Z=wo*Ls*(1/Q +z)\n", + "Zm=complex(0,p*c*Lp) #Determination of denominator\n", + "Dr=((Z+Z1)*(Z+Z2))-(Zm**2) \n", + "#Hence transfer impedance is given as\n", + "Zr= (Z1*Z2*Zm)/Dr\n", + "Z=Zr.real\n", + "#Z=round(Z,2)\n", + "#Zr.imag=round(Zr.imag,2)\n", + "print 'The transfer impedance is',Z,'ohm'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1.10.1,Pg.no.34" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The value of common resonant freq is 169.56 Mrad/ sec\n", + "The value of Gl is 5.0 mSec\n", + "The value of alpha is 3.14\n", + "The value of effective load is 1.97 kohm\n", + "The value of tuning capacitance is 47.73 pF\n", + "The value of Rd is 1.85343097504e-05 kohm\n", + "The value of −3dB BW is 1.69 MHz\n" + ] + } + ], + "source": [ + "import math\n", + "C1=70*10**-12\n", + "C2=150*10**-12\n", + "Rl=200.0\n", + "Q=150.0\n", + "f=27*10**6\n", + "r=40000.0\n", + "#Determination of common resonant freq\n", + "wo=2*3.14*f\n", + "wo=wo/(10**6)\n", + "print 'The value of common resonant freq is',wo,'Mrad/ sec'\n", + "#Determination of Gl\n", + "Gl=1/Rl\n", + "G1=Gl*(10**3) \n", + "print'The value of Gl is',G1,'mSec'\n", + "#Checking the approxiamtion in denominator\n", + "ap=((wo*(C1+C2))/(Gl))**2\n", + "alpha=(C1+C2)/C1\n", + "alpha=round(alpha,2)\n", + "print 'The value of alpha is',alpha\n", + "#Determination of effective load\n", + "Reff=((alpha)**2)*Rl\n", + "Reff=Reff/(10**3)\n", + "Reff=round(Reff,2)\n", + "print 'The value of effective load is',Reff,'kohm' \n", + "#If effective load is much less than internal resistance hence tuning capacitance then\n", + "Cs=C1*C2/(C1+C2)\n", + "Cs=Cs*(10**12)\n", + "Cs=round(Cs,2)\n", + "print 'The value of tuning capacitance is',Cs,'pF'\n", + "#Determination of Rd\n", + "Rd=Q/(wo*Cs)\n", + "Rd=Rd/(10**3)\n", + "print 'The value of Rd is',Rd,'kohm'\n", + "#If Rd is much greater than Reff then −3dB bandwidth is given by\n", + "B=1/(2*3.14*C2*alpha*Rl)\n", + "B=B/(10**6)\n", + "B=round(B,2)\n", + "print 'The value of −3dB BW is',B,'MHz'" + ] + } + ], + "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.10" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/sample_notebooks/VidyaSri/CHAPTER07.ipynb b/sample_notebooks/VidyaSri/CHAPTER07.ipynb new file mode 100644 index 00000000..5f7bf237 --- /dev/null +++ b/sample_notebooks/VidyaSri/CHAPTER07.ipynb @@ -0,0 +1,561 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:3dc67beaeaebdd84d2ec4524cdbfb840dc3f84ff2b897336112b72f4746f9690"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "CHAPTER07:BJT FUNDAMENTALS"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E01 : Pg 342"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Ex_7_1\n",
+ "#clc;\n",
+ "#clear;\n",
+ "#close;\n",
+ "# given data : \n",
+ "#format('v',6);\n",
+ "alfa=0.90;# current gain\n",
+ "ICO=15.;# micro A(reverse saturation currenrt)\n",
+ "IE=4.;# mA(Emitter currenrt)\n",
+ "IC=ICO*10.**-3.+alfa*IE;# mA\n",
+ "IB=IE-IC;# mA\n",
+ "IB=IB*1000.;# micro A\n",
+ "print\"Collector Current(mA)\",IC\n",
+ "print\"Base Current(micro A)\",IB"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Collector Current(mA) 3.615\n",
+ "Base Current(micro A) 385.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E02 : Pg 342"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Ex_7_2\n",
+ "#clc;\n",
+ "#clear;\n",
+ "#close;\n",
+ "# given data : \n",
+ "#format('v',6);\n",
+ "Beta=90.;# unitless\n",
+ "IC=4.;# mA(Collector Current)\n",
+ "alfa=Beta/(1.+Beta);# current gain\n",
+ "IB=IC/Beta;# mA(Base Current)\n",
+ "IE=IC+IB;# mA(Emitter currenrt)\n",
+ "print\"Value of alfa\",alfa\n",
+ "print\"Base Current(micro A)\",IB*1000.\n",
+ "print\"Emmiter Current(mA)\",IE"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Value of alfa 0.989010989011\n",
+ "Base Current(micro A) 44.4444444444\n",
+ "Emmiter Current(mA) 4.04444444444\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E03 : Pg 344"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Ex_7_3\n",
+ "# given data : \n",
+ "alfa=0.90;# current gain\n",
+ "ICO=15.;# micro A(reverse saturation currenrt)\n",
+ "IB=0.5;# /mA(Base Current)\n",
+ "Beta=alfa/(1.-alfa);# unitless\n",
+ "IC=Beta*IB+(1.+Beta)*ICO/1000.;# mA(Collector Current)\n",
+ "print\"Collector Current(mA)\",IC"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Collector Current(mA) 4.65\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E04 : Pg 345"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Ex_7_4\n",
+ "# given data : \n",
+ "IB=20.;# /micro A(Base Current)\n",
+ "IC=5.;# mA(Collector Current)\n",
+ "Beta=IC*1000./IB;# unitless\n",
+ "print\"Beta=\",Beta"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Beta= 250.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E05 : Pg 346"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Ex_7_5\n",
+ "# given data : \n",
+ "IB=50.;# /micro A(Base Current)\n",
+ "IC=5.;# mA(Collector Current)\n",
+ "IE=IC+IB/1000.;# mA\n",
+ "Beta=IC*1000./IB;# unitless\n",
+ "alfa=IC/IE;# current gain\n",
+ "print\"Emitter Current(mA)\",IE\n",
+ "print\"\\nBeta=\",Beta\n",
+ "print\"\\nalfa=\",alfa\n",
+ "print\"\\nVerify that alfa=Beta/(Beta+1)\"\n",
+ "print alfa==Beta/(Beta+1);\n",
+ "print\"\\nVerify that Beta=alfa/(1-alfa)\"\n",
+ "print Beta==round(alfa/(1-alfa));"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Emitter Current(mA) 5.05\n",
+ "\n",
+ "Beta= 100.0\n",
+ "\n",
+ "alfa= 0.990099009901\n",
+ "\n",
+ "Verify that alfa=Beta/(Beta+1)\n",
+ "True\n",
+ "\n",
+ "Verify that Beta=alfa/(1-alfa)\n",
+ "True\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E06 : Pg 348"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Ex_7_6\n",
+ "# given data : \n",
+ "IE=10.;# mA\n",
+ "IB=5.;# /mA(Base Current)\n",
+ "IC=IE-IB;# mA(Collector Current)\n",
+ "BetaR=IC/IB;# unitless\n",
+ "alfaR=IC/IE;# current gain\n",
+ "print \"BetaR=\",BetaR\n",
+ "print \"alfaR=\",alfaR\n",
+ "# Answer is wrong in the book."
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "BetaR= 1.0\n",
+ "alfaR= 0.5\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E07 : Pg 348"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Ex_7_7\n",
+ "# given data : \n",
+ "Beta=100.;# unitless\n",
+ "VBE=0.7;# V\n",
+ "VCC=10.;# V\n",
+ "# (a) VE=-0.7;# V\n",
+ "print\"For the circuit in fig(a)\"\n",
+ "VE=-0.7;# V(Constant voltage)\n",
+ "R1=10.;# kohm\n",
+ "R2=10.;# kohm\n",
+ "IE=(VCC+VE)/R2;# mA\n",
+ "IB=IE/(Beta+1.);# mA\n",
+ "VC=VCC-R1*1000.*(IE-IB)/1000.;# V\n",
+ "print\"Constant voltage fo the given transistor, VE(V)\",VE\n",
+ "print\"Emitter current(mA)\",IE\n",
+ "#format('v',5);\n",
+ "IB=IB*1000;# /micro A\n",
+ "print\"Base current(micro A)\",IB\n",
+ "#format('v',6);\n",
+ "print\"VC(V)\",VC\n",
+ "# (b) VE=-0.7;# V\n",
+ "R1=5.;# kohm\n",
+ "R2=5.;# kohm\n",
+ "VEE=-15.;# V\n",
+ "print\"For the circuit in fig(b)\"\n",
+ "VE=-0.7;# V(Constant voltage)\n",
+ "R1=5.;# kohm\n",
+ "R2=5.;# kohm\n",
+ "IE=(VCC+VE)/R2;# mA\n",
+ "IC=IE*Beta/(Beta+1.);# mA\n",
+ "VC=VEE+R2*IC;# V\n",
+ "print\"Constant voltage fo the given transistor, VE(V)\",VE\n",
+ "print\"Emitter current(mA)\",IE\n",
+ "print\"Base current(mA)\",IC\n",
+ "#format('v',5);\n",
+ "print\"VC(V)\",VC"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "For the circuit in fig(a)\n",
+ "Constant voltage fo the given transistor, VE(V) -0.7\n",
+ "Emitter current(mA) 0.93\n",
+ "Base current(micro A) 9.20792079208\n",
+ "VC(V) 0.792079207921\n",
+ "For the circuit in fig(b)\n",
+ "Constant voltage fo the given transistor, VE(V) -0.7\n",
+ "Emitter current(mA) 1.86\n",
+ "Base current(mA) 1.84158415842\n",
+ "VC(V) -5.79207920792\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E08 : Pg 350"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Ex_7_8\n",
+ "# given data : \n",
+ "import math \n",
+ "Beta=1.+0j;#math.inf;# Current gain\n",
+ "VBE=0.7;# # V\n",
+ "VB=0;# V(For large Beta)\n",
+ "VE=VB-VBE;# # V\n",
+ "print\"(a) Value of VB(V) : \",VB\n",
+ "print\"(a) Value of VE(V) : \",VE\n",
+ "# Part (b)\n",
+ "R1=5.;# /kohm\n",
+ "R2=5.;# /kohm\n",
+ "VCC=10.;# /V\n",
+ "VEE=-15.;# /V\n",
+ "VE=VBE;# # V\n",
+ "VC=VEE+R1/R2*(VCC-VBE);# V\n",
+ "print\"(b) Value of VE(V) : \",VE\n",
+ "print\"(b) Value of VC(V) : \",VC"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) Value of VB(V) : 0\n",
+ "(a) Value of VE(V) : -0.7\n",
+ "(b) Value of VE(V) : 0.7\n",
+ "(b) Value of VC(V) : -5.7\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E09 : Pg 351"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Ex_7_9\n",
+ "# given data :\n",
+ "VEE=5.;# # V\n",
+ "VCC=-5.;# # V\n",
+ "VE=1.;# # V\n",
+ "RB=20.;# kohm\n",
+ "RE=5.;# kohm\n",
+ "RC=5.;# kohm\n",
+ "VBE=0.7;# # V\n",
+ "VB=VE-VBE;# /V\n",
+ "IB=VB/RB;# /mA\n",
+ "IE=(VEE-VE)/RE;# mA\n",
+ "IC=IE-IB;# mA\n",
+ "VC=VCC+IC*RC;# V\n",
+ "Beta=IC/IB;# Current gain\n",
+ "Alfa=IC/IE;# Current gain\n",
+ "print\"VB(V) : \",VB\n",
+ "print\"IB(mA) : \",IB\n",
+ "print\"IE(mA) : \",IE\n",
+ "print\"IC(mA) : \",IC\n",
+ "#format('v',5);\n",
+ "print\"Beta : \",Beta\n",
+ "print\"Alfa : \",Alfa"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "VB(V) : 0.3\n",
+ "IB(mA) : 0.015\n",
+ "IE(mA) : 0.8\n",
+ "IC(mA) : 0.785\n",
+ "Beta : 52.3333333333\n",
+ "Alfa : 0.98125\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E10 : Pg 351"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Ex_7_10\n",
+ "#clc;\n",
+ "#clear;\n",
+ "#close;\n",
+ "#format('v',6);\n",
+ "# given data :\n",
+ "delVB=0.4;# V\n",
+ "delVC=0;# V# No change\n",
+ "delVE=delVB;# V# Same change\n",
+ "print\"delVE(V) : \",delVE\n",
+ "print\"delVC(V) : \",delVC"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "delVE(V) : 0.4\n",
+ "delVC(V) : 0\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E11 : Pg 352"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Ex_7_11\n",
+ "# given data :\n",
+ "VBE=0.7;# # V\n",
+ "Beta=100.;# /Current Gain\n",
+ "# Part (a)\n",
+ "VCC=6.;# # V\n",
+ "VEE=0;# # V\n",
+ "VB=2.;# # V\n",
+ "RE=18.;# kohm\n",
+ "RC=3.;# kohm\n",
+ "VE=VB-VBE;# V\n",
+ "print\"(a) Emitter Voltage(V) : \",VE\n",
+ "IE=1.;# /mA\n",
+ "IC=IE*Beta/(1+Beta);# /mA\n",
+ "VC=VCC-IC*RC;# V\n",
+ "if VC>VE:\n",
+ " print\"Circuit is in active mode.\"\n",
+ "# Part (b)\n",
+ "VEE=6.;# # V\n",
+ "VCC=0;# # V\n",
+ "VB=1.;# # V\n",
+ "RE=10.;# kohm\n",
+ "RC=10.;# kohm\n",
+ "VE=VB+VBE;# V\n",
+ "print\"(b) Emitter Voltage(V) : \",VE\n",
+ "IE=(VEE-VE)/RE;# /mA\n",
+ "IC=IE;# /mA(Assumed nearly equal)\n",
+ "VC=VCC+IC*RC;# V\n",
+ "if VC>VB :\n",
+ " print\"Circuit is in saturation mode.\"\n",
+ "# Part (c)\n",
+ "VEE=9.5;# # V\n",
+ "VCC=-50.;# # V\n",
+ "VB=-5.;# # V\n",
+ "RE=200.;# kohm\n",
+ "RC=20.;# kohm\n",
+ "VE=VB+VBE;# V\n",
+ "print\"(c) Emitter Voltage(V) : \",VE\n",
+ "IE=(VEE-VE)/RE;# /mA;# /mA\n",
+ "IC=IE*Beta/(1+Beta);# /mA\n",
+ "VC=VCC-IC*RC;# V\n",
+ "if VC>VE :\n",
+ " print\"Circuit is in active mode.\"\n",
+ "else :\n",
+ " print\"Circuit is in reverse active mode.\"\n",
+ "# Part (d)\n",
+ "VEE=-30.;# # V\n",
+ "VCC=-10.;# # V\n",
+ "VB=-20.;# # V\n",
+ "RE=6.;# kohm\n",
+ "RC=2.;# kohm\n",
+ "VE=VB-VBE;# V\n",
+ "print\"(d) Emitter Voltage(V) : \",VE\n",
+ "IE=(VEE-VE)/RE;# /mA;# /mA\n",
+ "IC=IE*Beta/(1.+Beta);# /mA\n",
+ "VC=VCC-IC*RC;# V\n",
+ "if VC>VE :\n",
+ " print\"Circuit is in active mode.\"\n",
+ "# Note : Printing error in part (a) in the textbook. Answer is also not accurate in the textbook for part(c)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) Emitter Voltage(V) : 1.3\n",
+ "Circuit is in active mode.\n",
+ "(b) Emitter Voltage(V) : 1.7\n",
+ "Circuit is in saturation mode.\n",
+ "(c) Emitter Voltage(V) : -4.3\n",
+ "Circuit is in reverse active mode.\n",
+ "(d) Emitter Voltage(V) : -20.7\n",
+ "Circuit is in active mode.\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/sample_notebooks/VijayaLakshmi/CHAPTER04.ipynb b/sample_notebooks/VijayaLakshmi/CHAPTER04.ipynb new file mode 100644 index 00000000..62bae8a2 --- /dev/null +++ b/sample_notebooks/VijayaLakshmi/CHAPTER04.ipynb @@ -0,0 +1,680 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:a49a8ec12fc3b73c3ede4bd700b2981c396abe3970143184cc460eca3744fac1"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "CHAPTER04:ANGLE MODULATION"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E03 : Pg 4.9"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Page Number: 4.9\n",
+ "# Example 4.3\n",
+ "# Given\n",
+ "fc=1.*10.**6.; # Hz\n",
+ "kf=5.;\n",
+ "mt=1.*10.**5.; # Hz\n",
+ "\n",
+ "# (a) mi(t) with fm\n",
+ "mi=(fc+(kf*mt));\n",
+ "print\"Max, Inst. Frequency with FM\",mi,\"Hz\"\n",
+ "import math \n",
+ "kp=3.;\n",
+ "# (b) mi2(t) with pm\n",
+ "mi2=fc+(mt*(kp/(2*math.pi)));\n",
+ "\n",
+ "print\"Max, Inst. Frequency with PM\",mi2,\"Hz\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Max, Inst. Frequency with FM 1500000.0 Hz\n",
+ "Max, Inst. Frequency with PM 1047746.48293 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E09 : Pg 4.13"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Page Number: 4.13\n",
+ "# Example 4.9\n",
+ "# Given\n",
+ "delf=20.*10.**3.; # hz\n",
+ "fm=10.*10.**3.; # Hz\n",
+ "\n",
+ "B=delf/fm;\n",
+ "print\"Beta: \",B"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Beta: 2.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E13 : Pg 4.16"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Page Number: 4.16\n",
+ "# Example 4.13\n",
+ "# Given\n",
+ "# x(t)=10cos((2*pi*10**8*t)+(200cos(2*pi*10**3*t)))\n",
+ "# on differentiating\n",
+ "# wi=2*pi*(1D+8)-4*pi*sin(2*pi*(1D+3)*t)\n",
+ "# Therefore\n",
+ "import math \n",
+ "delw=4.*math.pi*(1.*10.**5.);\n",
+ "wm=2.*math.pi*(1.*10.**3.);\n",
+ "B=delw/wm;\n",
+ "wb=2.*(B+1.)*wm;\n",
+ "fb=wb/2.*math.pi;\n",
+ "print\"Wb\",wb,\"rad/s\"\n",
+ "print\"Fb\",fb,\"Hz\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Wb 2525840.49349 rad/s\n",
+ "Fb 3967580.96924 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E14 : Pg 4.17"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Page Number: 4.17\n",
+ "# Example 4.14\n",
+ "# Given\n",
+ "delf=100.*10.**3; # Hz\n",
+ "fc=20.*10.**6.; # Hz\n",
+ "\n",
+ "# As B=delf/fm;\n",
+ "# (a) fm1=1*10.**3hz\n",
+ "print'Part a'\n",
+ "fm1=1.*10.**3.; # Hz\n",
+ "B1=delf/fm1;\n",
+ "print'Modulation Index',B1\n",
+ "fb1=2.*delf;\n",
+ "print'Bandwidth',fb1,'Hz'\n",
+ "# (b) fm2=100*10.**3hz\n",
+ "print'\\nPart b'\n",
+ "fm2=100.*10.**3.; # Hz\n",
+ "B2=delf/fm2;\n",
+ "print'Modulation Index',B2\n",
+ "fb2=2.*(B2+1.)*fm2;\n",
+ "print'Bandwidth',fb2,'Hz'\n",
+ "# (c) fm3=500*10.**3hz\n",
+ "print'\\nPart c'\n",
+ "fm3=500.*10.**3.; # Hz\n",
+ "B3=delf/fm3;\n",
+ "print'Modulation Index',B3\n",
+ "fb3=2.*fm3;\n",
+ "print'Bandwidth',fb3,'Hz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Part a\n",
+ "Modulation Index 100.0\n",
+ "Bandwidth 200000.0 Hz\n",
+ "\n",
+ "Part b\n",
+ "Modulation Index 1.0\n",
+ "Bandwidth 400000.0 Hz\n",
+ "\n",
+ "Part c\n",
+ "Modulation Index 0.2\n",
+ "Bandwidth 1000000.0 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E15 : Pg 4.17"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Page Number: 4.17\n",
+ "# Example 4.15\n",
+ "# Given\n",
+ "# x(t)=10cos(wct+3sinwmt)\n",
+ "# Comparing with standard equation\n",
+ "B=3.;\n",
+ "fm=1.*10.**3.; # hz\n",
+ "fb=2.*(B+1.)*fm;\n",
+ "\n",
+ "# (a)fm is doubled\n",
+ "fma=2.*fm;\n",
+ "fba=2.*(B+1.)*fma;\n",
+ "print\"fb with 2fm: \",fba\n",
+ "\n",
+ "# (b)fm is one halved\n",
+ "fmb=fm/2.;\n",
+ "fbb=2.*(B+1.)*fmb;\n",
+ "print\"fb with 0.5fm: \",fbb"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "fb with 2fm: 16000.0\n",
+ "fb with 0.5fm: 4000.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E16 : Pg 4.18"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Page Number: 4.18\n",
+ "# Example 4.16\n",
+ "# Given\n",
+ "# x(t)=10cos(wct+3sinwmt)\n",
+ "# Comparing with standard equation of fm\n",
+ "B=3.;\n",
+ "fm=1.*10.**3.; # hz\n",
+ "fb=2.*(B+1.)*fm;\n",
+ "\n",
+ "# B is inversaly proportional to fm\n",
+ "\n",
+ "# (a)fm is doubled\n",
+ "Ba=B/2.;\n",
+ "fma=2.*fm;\n",
+ "fba=2.*(Ba+1.)*fma;\n",
+ "print\"fb with 2fm: \",fba\n",
+ "\n",
+ "\n",
+ "\n",
+ "# (b)fm is one halved\n",
+ "Bb=2.*B;\n",
+ "fmb=fm/2.;\n",
+ "fbb=2.*(Bb+1.)*fmb;\n",
+ "print\"fb with 0.5fm: \",fbb"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "fb with 2fm: 10000.0\n",
+ "fb with 0.5fm: 7000.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E17 : Pg 4.18"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Page Number: 4.18\n",
+ "# Example 4.17\n",
+ "\n",
+ "# Given\n",
+ "fm=2.*10.**3.; # Hz\n",
+ "delf=5.*10.**3.; # Hz\n",
+ "\n",
+ "# (a) Bandwidth of modulated signal\n",
+ "B=delf/fm;\n",
+ "\n",
+ "fb=2.*(B+1.)*fm;\n",
+ "print'Bandwidth',fb,'Hz'\n",
+ "\n",
+ "# (b)Max. frequency deviation and Bandwidth of new signal\n",
+ "# Given\n",
+ "fm1=fm-(1.*10.**3.);\n",
+ "delf1=3.*delf;\n",
+ "\n",
+ "B1=delf1/fm1;\n",
+ "\n",
+ "fd=B1*fm1;\n",
+ "print'Maximum frequency deviation',fd,'Hz'\n",
+ "\n",
+ "fb1=2.*(B1+1.)*fm1;\n",
+ "print'Bandwidth',fb1,'Hz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Bandwidth 14000.0 Hz\n",
+ "Maximum frequency deviation 15000.0 Hz\n",
+ "Bandwidth 32000.0 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E18 : Pg 4.19"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Page Number: 4.19\n",
+ "# Example 4.18\n",
+ "# Given\n",
+ "delf=75.*10.**3.; # Hz\n",
+ "fM=15.*10.**3.; # Hz\n",
+ "\n",
+ "D=delf/fM;\n",
+ "# Given formula fb=2(*10.**2)*fM\n",
+ "fb1=2.*10.**2.*fM;\n",
+ "print'BW uing formula',fb1,'Hz'\n",
+ "\n",
+ "# Carsons Rule\n",
+ "fb2=2.*10.**1.*fM;\n",
+ "print'BW uing Carsons Rule',fb2,'Hz'\n",
+ "\n",
+ "# High quality Fm radios require minimum 200kHz\n",
+ "# Therefore, carsons rule underestimates bandwidth"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "BW uing formula 3000000.0 Hz\n",
+ "BW uing Carsons Rule 300000.0 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E19 : Pg 4.19"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Page Number: 4.19\n",
+ "# Example 4.19\n",
+ "# Given\n",
+ "fm1=50.; # Hz\n",
+ "fm2=15.*10.**3.; # Hz\n",
+ "\n",
+ "delf=75.*10.**3.; # Hz\n",
+ "\n",
+ "# As B=delf/fm\n",
+ "Bmin=delf/fm2;\n",
+ "Bmax=delf/fm1;\n",
+ "\n",
+ "# Let B1=0.5\n",
+ "B1=0.5;\n",
+ "n=(Bmax/B1);\n",
+ "print'Multiplication factor',n\n",
+ "\n",
+ "delf1=(delf/n);\n",
+ "print'Max allowed frequency deviation',delf1,'Hz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Multiplication factor 3000.0\n",
+ "Max allowed frequency deviation 25.0 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E20 : Pg 4.20"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Page Number: 4.20\n",
+ "# Example 4.20\n",
+ "# Given\n",
+ "f1=2.*10.**5.; # Hz\n",
+ "fLO=10.8*10.**6.; # Hz\n",
+ "delf1=25.; # Hz\n",
+ "n1=64.;\n",
+ "n2=48.;\n",
+ "\n",
+ "delf=(delf1*n1*n2);\n",
+ "print'Maximum frequency deviation',delf,'Hz'\n",
+ "\n",
+ "f2=n1*f1;\n",
+ "\n",
+ "f3a=f2+fLO;\n",
+ "f3b=f2-fLO;\n",
+ "\n",
+ "# For f3a\n",
+ "fca=n2*f3a;\n",
+ "print'Carrier frequency 1',fca,'Hz'\n",
+ "\n",
+ "# For f3b\n",
+ "fcb=n2*f3b;\n",
+ "print'Carrier frequency 2',fcb,'Hz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Maximum frequency deviation 76800.0 Hz\n",
+ "Carrier frequency 1 1132800000.0 Hz\n",
+ "Carrier frequency 2 96000000.0 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E21 : Pg 4.20"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Page Number: 4.20\n",
+ "# Example 4.21\n",
+ "# Given\n",
+ "delf=20.*10.**3.; # Hz\n",
+ "fc=200.*10.**3.; # Hz\n",
+ "of=96.*10.**6.; # hz\n",
+ "# delf=n1*n2 and as only doublers are used, n1*n2 has to be power of 2\n",
+ "# By trail and error, we find\n",
+ "n1=64.;\n",
+ "n2=32.;\n",
+ "# Output of first Multiplier\n",
+ "o1=n1*fc;\n",
+ "print'Output of first multiplier: ',o1,'Hz'\n",
+ "i2=of/n2;\n",
+ "flo=o1-i2;\n",
+ "print'fLO',flo,'Hz'"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output of first multiplier: 12800000.0 Hz\n",
+ "fLO 9800000.0 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E22 : Pg 4.20"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Page Number: 4.20\n",
+ "# Example 4.22\n",
+ "# Given\n",
+ "B=0.2; \n",
+ "f1=200.*10.**3.; # Hz\n",
+ "fml=50.; # Hz\n",
+ "fmh=15.*10.**3.; # Hz\n",
+ "delf=75.*10.**3.; # hz\n",
+ "fc=108.*10.**6.; # Hz\n",
+ "\n",
+ "delf1=B*fml;\n",
+ "n1n2=delf/delf1;\n",
+ "\n",
+ "# Let n2=150\n",
+ "n2=150.;\n",
+ "flo=((delf*f1)-fc)/n2;\n",
+ "print'fLO',flo,'Hz'\n",
+ "\n",
+ "n1=n1n2/n2;\n",
+ "print\"n1 with n2=150:\",n1"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "fLO 99280000.0 Hz\n",
+ "n1 with n2=150: 50.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E23 : Pg 4.21"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Page Number: 4.21\n",
+ "# Example 4.23\n",
+ "# Given,\n",
+ "\n",
+ "delfd1=50.; # Hz\n",
+ "f1=120.; # Hz\n",
+ "\n",
+ "delfd2=20000.; # Hz\n",
+ "f2=240.; # Hz\n",
+ "# (a)PM\n",
+ "delf1=(f2/f1)*delfd1;\n",
+ "n1=delfd2/delf1;\n",
+ "print'Frequency multiplication factor in PM',n1\n",
+ "\n",
+ "# (b)FM\n",
+ "n2=delfd2/delfd1;\n",
+ "print'Frequency multiplication factor in FM',n2"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Frequency multiplication factor in PM 200.0\n",
+ "Frequency multiplication factor in FM 400.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E29 : Pg 4.25"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Page Number: 4.25\n",
+ "# Example 4.29\n",
+ "# Given,\n",
+ "f1=108.; # MHz\n",
+ "f2=157.; # MHz\n",
+ "\n",
+ "# (a) Image frequency overlaps RF band\n",
+ "fIF=12.; # MHz\n",
+ "\n",
+ "fL01=f1-fIF;\n",
+ "print'fL01',fL01,'MHz'\n",
+ "fim1=fL01-fIF;\n",
+ "print'fim1',fim1,'MHz'\n",
+ "\n",
+ "fL02=f2-fIF;\n",
+ "print'fL02',fL02,'MHz'\n",
+ "fim2=fL02-fIF;\n",
+ "print'fim2',fim2,'MHz'\n",
+ "\n",
+ "# Clearly image and RF band overlap"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "fL01 96.0 MHz\n",
+ "fim1 84.0 MHz\n",
+ "fL02 145.0 MHz\n",
+ "fim2 133.0 MHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file |