summaryrefslogtreecommitdiff
path: root/Electric_Circuits_by_M._Navhi_And_J._A._Edminister/ch5.ipynb
blob: 73863ca1ce283a1775d4d0a40148335c3b4ba3d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
 "metadata": {
  "name": "",
  "signature": "sha256:542e92bd62de523a8cd9abe5adfd1eec8e64f2ebaa6b2ac5b00d208e9be115e3"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 5 : Analysis Methods"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 5.8  Page No : 76"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math \n",
      "#From figure 5.13(a)\n",
      "\n",
      "#Applying KVL equation to the loop \n",
      "I = (20.+10)/(3+6)\n",
      "\n",
      "# Calculation and Results\n",
      "#As current will not flow in upper 3 ohm resistor so Thevenin voltage is equal to either of the two parallel branches\n",
      "V1 = 20.-I*3\n",
      "print \"Thevenin voltage  =  %dV\"%(V1)\n",
      "\n",
      "# Left 3 ohm and 6 ohm resistor are in parallel and their equivalent is in series with 3 ohm\n",
      "R1 = 3+(3.*6)/(3+6)\n",
      "print \"Thevenin resistance  = %dohm\"%(R1)\n",
      "\n",
      "#Now to find Norton's equivalent\n",
      "I1 = V1/R1\n",
      "print \" Norton current  = %dA\"%(I1)\n",
      "#The value of resistance in Norton equivalent will not change but will come in parallel with current source\")\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Thevenin voltage  =  10V\n",
        "Thevenin resistance  = 5ohm\n",
        " Norton current  = 2A\n"
       ]
      }
     ],
     "prompt_number": 1
    }
   ],
   "metadata": {}
  }
 ]
}