summaryrefslogtreecommitdiff
path: root/sample_notebooks/nishumittal/nishumittal_version_backup/chapter1.ipynb
blob: 56991b683bc75b3d16f63e24f6e4d70a25c0e283 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{
 "metadata": {
  "name": "",
  "signature": "sha256:b803a1650997e1a91a43f6f6211bc977cbde8d0a8e079033f5645dae7b99d4ba"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 1 Introduction "
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 1.1 Page no 9"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Given\n",
      "Rs=50                      #ohm\n",
      "\n",
      "#Calculation\n",
      "Rl=100*Rs\n",
      "\n",
      "#Result\n",
      "print\"Load resistance is\",Rl*10**-3,\"ohm\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Load resistance is 5.0 ohm\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 1.2 Page no 12"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Given\n",
      "Rs=10*10**3                       #Kohm\n",
      "\n",
      "#Calculation\n",
      "Rl=0.01*Rs\n",
      "\n",
      "#Result\n",
      "print\"Value of load resistance is\",Rl,\"Kohm\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Value of load resistance is 100.0 Kohm\n"
       ]
      }
     ],
     "prompt_number": 7
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 1.4 Page no 14"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Given\n",
      "R1=3                           #ohm\n",
      "R2=6\n",
      "R3=4\n",
      "\n",
      "#Calculation\n",
      "Vth=24\n",
      "Rth=R3+((R1*R2)/(R1+R2))\n",
      "\n",
      "#Result\n",
      "print\"Thevenin Voltage is\",Vth,\"V\"\n",
      "print\"Thevenin resistance is\",Rth,\"Kohm\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Thevenin Voltage is 24 V\n",
        "Thevenin resistance is 6 Kohm\n"
       ]
      }
     ],
     "prompt_number": 12
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 1.6 Page no 19"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Given\n",
      "V=10                            #V\n",
      "R=2.0                              #Kohm\n",
      "\n",
      "#Calculation\n",
      "I=V/R\n",
      "\n",
      "#Result\n",
      "print\"Nortan current is\", I,\"mA\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Nortan current is 5.0 mA\n"
       ]
      }
     ],
     "prompt_number": 16
    }
   ],
   "metadata": {}
  }
 ]
}