summaryrefslogtreecommitdiff
path: root/Electronic_Circuits_by_M._H._Tooley
diff options
context:
space:
mode:
Diffstat (limited to 'Electronic_Circuits_by_M._H._Tooley')
-rw-r--r--Electronic_Circuits_by_M._H._Tooley/Chapter12_2.ipynb152
-rw-r--r--Electronic_Circuits_by_M._H._Tooley/Chapter13_2.ipynb289
-rw-r--r--Electronic_Circuits_by_M._H._Tooley/Chapter1_2.ipynb770
-rw-r--r--Electronic_Circuits_by_M._H._Tooley/Chapter2_2.ipynb1045
-rw-r--r--Electronic_Circuits_by_M._H._Tooley/Chapter3_2.ipynb586
-rw-r--r--Electronic_Circuits_by_M._H._Tooley/Chapter4_2.ipynb586
-rw-r--r--Electronic_Circuits_by_M._H._Tooley/Chapter5_2.ipynb303
-rw-r--r--Electronic_Circuits_by_M._H._Tooley/Chapter7_2.ipynb343
-rw-r--r--Electronic_Circuits_by_M._H._Tooley/Chapter8_2.ipynb186
-rw-r--r--Electronic_Circuits_by_M._H._Tooley/Chapter9_2.ipynb127
-rw-r--r--Electronic_Circuits_by_M._H._Tooley/chapter6_2.ipynb195
-rw-r--r--Electronic_Circuits_by_M._H._Tooley/screenshots/Chapter1_1.pngbin0 -> 164842 bytes
-rw-r--r--Electronic_Circuits_by_M._H._Tooley/screenshots/Chapter2_1.pngbin0 -> 163455 bytes
-rw-r--r--Electronic_Circuits_by_M._H._Tooley/screenshots/Chapter3_1.pngbin0 -> 157420 bytes
14 files changed, 4582 insertions, 0 deletions
diff --git a/Electronic_Circuits_by_M._H._Tooley/Chapter12_2.ipynb b/Electronic_Circuits_by_M._H._Tooley/Chapter12_2.ipynb
new file mode 100644
index 00000000..2b19d126
--- /dev/null
+++ b/Electronic_Circuits_by_M._H._Tooley/Chapter12_2.ipynb
@@ -0,0 +1,152 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:99e910301f8d94e773f6d9f81e6e674a29d03eeb4decca35ea0a1abf9f727037"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter12-The 555 timer"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg220"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:12.1\n",
+ "import math\n",
+ "C=100.*10**-9;\n",
+ "t_on=10.*10**-3;\n",
+ "R=(t_on/(1.1*C))/1000.;\n",
+ "print'%s %.2f %s'%(\"R= \",R,\" kohm\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "R= 90.91 kohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg220"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:12.2\n",
+ "import math\n",
+ "C=100.*10**-6;\n",
+ "t_on=60.;\n",
+ "R=(t_on/(1.1*C))/1000.;\n",
+ "print'%s %.2f %s'%(\"R= \",R,\" kohm\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "R= 545.45 kohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg223"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:12.3\n",
+ "import math\n",
+ "##R1=R2=R\n",
+ "prf=10.;\n",
+ "C=1.*10**-6;\n",
+ "R=0.48/(prf*C);\n",
+ "print'%s %.2f %s'%(\"R= \",R,\" ohm\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "R= 48000.00 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg223"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:12.4\n",
+ "import math\n",
+ "prf=50.;\n",
+ "C=100*10**-9;\n",
+ "R=0.72/(prf*C);##in ohms\n",
+ "print'%s %.2f %s'%(\"R= \",R/1000,\" kohm\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "R= 144.00 kohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Circuits_by_M._H._Tooley/Chapter13_2.ipynb b/Electronic_Circuits_by_M._H._Tooley/Chapter13_2.ipynb
new file mode 100644
index 00000000..8f1f8a80
--- /dev/null
+++ b/Electronic_Circuits_by_M._H._Tooley/Chapter13_2.ipynb
@@ -0,0 +1,289 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:d56d12390f39b518475a37bfc6bbb499a3e335e6c5fa1b48bf6416cc300a4e24"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter13-Radio"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg229"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:13.1\n",
+ "import math\n",
+ "c=3.*10**8;\n",
+ "wl=15.;\n",
+ "f=c/wl;\n",
+ "print'%s %.2f %s'%(\"The frequency = \",f,\" Hz\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The frequency = 20000000.00 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg229"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:13.2\n",
+ "import math\n",
+ "c=3.*10**8;\n",
+ "f=150.*10**6;\n",
+ "wl=c/f;\n",
+ "print'%s %.2f %s'%(\"The wavelength =\",wl,\" m\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The wavelength = 2.00 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg229"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:13.3\n",
+ "import math\n",
+ "wl=8.;\n",
+ "f=30.*10**6;\n",
+ "v=f*wl;\n",
+ "print'%s %.2f %s'%(\"The veocity of propagation = \",v,\" m/s\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The veocity of propagation = 240000000.00 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg230"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:13.4\n",
+ "import math\n",
+ "f_rf=162.5;##in kHz\n",
+ "f_af=1.25;##in kHz\n",
+ "f_bfo_max=f_rf+f_af;\n",
+ "f_bfo_min=f_rf-f_af;\n",
+ "print'%s %.2f %s %.2f %s '%(\"The two possible BFO freq. = \",f_bfo_max,\" kHz\" and \"\",f_bfo_min,\"kHz\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The two possible BFO freq. = 163.75 161.25 kHz \n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex5-pg234"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:13.5\n",
+ "import math\n",
+ "f_rf_1=88.;##in MHz\n",
+ "f_rf_2=108.;##in MHz\n",
+ "f_if=10.7;##in MHz\n",
+ "f_lo_1=f_rf_1+f_if;\n",
+ "f_lo_2=f_rf_2+f_if;\n",
+ "print'%s %.2f %s %.2f %s '%(\"The range local oscillator be tuned = \",f_lo_1,\" MHz\" and \"\",f_lo_2,\" MHz\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The range local oscillator be tuned = 98.70 118.70 MHz \n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex6-pg238"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:13.6\n",
+ "import math\n",
+ "f_rf_1=88.;##in MHz\n",
+ "f_rf_2=108.;##in MHz\n",
+ "f_if=10.7;##in MHz\n",
+ "f_lo_1=f_rf_1+f_if;\n",
+ "f_lo_2=f_rf_2+f_if;\n",
+ "print'%s %.2f %s %.2f %s '%(\"The range local oscillator be tuned = \",f_lo_1,\" MHz\" and \"\",f_lo_2,\"MHz\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The range local oscillator be tuned = 98.70 118.70 MHz \n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex7-pg239"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:13.7\n",
+ "import math\n",
+ "r=12.;##in ohms\n",
+ "i=0.5;##in amps\n",
+ "P_r=i*i*r;##in W\n",
+ "print'%s %.2f %s'%(\"Power radiated = \",P_r,\" W\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power radiated = 3.00 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex8-pg239"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:13.8\n",
+ "import math\n",
+ "r=2.;##in ohms\n",
+ "i=0.5;##in amps\n",
+ "P_r=4.;##in W\n",
+ "P_loss=i*i*r;\n",
+ "P_eff=(P_r/(P_r+P_loss))*100.;\n",
+ "print'%s %.2f %s'%(\"The power loss = \",P_loss,\" W\");\n",
+ "print'%s %.2f %s'%(\"\\n The power loss = \",P_eff,\"\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The power loss = 0.50 W\n",
+ "\n",
+ " The power loss = 88.89 \n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Circuits_by_M._H._Tooley/Chapter1_2.ipynb b/Electronic_Circuits_by_M._H._Tooley/Chapter1_2.ipynb
new file mode 100644
index 00000000..5c47a9e8
--- /dev/null
+++ b/Electronic_Circuits_by_M._H._Tooley/Chapter1_2.ipynb
@@ -0,0 +1,770 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:b9799d17ce9c5e8acfde2941052198091704f3207bfb93e90879b4a048464a60"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter1-Electrical Fundamentals"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg3"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Exa:1.4\n",
+ "import math\n",
+ "ang_d=215.;##given\n",
+ "ang_r=ang_d*math.pi/180.;\n",
+ "print'%s %.2f %s %.2f %s '%(\"%f degree angle is \",ang_d,\" radians\" and \"\",ang_r,\"\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "%f degree angle is 215.00 3.75 \n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex5-pg3"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Exa:1.5\n",
+ "import math\n",
+ "ang_r=2.5;##given\n",
+ "ang_d=2.5*180./math.pi;##angle in degrees\n",
+ "print'%s %.2f %s %.2f %s '%(\"%f degree angle is \",ang_d,\" radians\" and \"\",ang_r,\"\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "%f degree angle is 143.24 2.50 \n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex6-pg4"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Exa:1.6\n",
+ "import math\n",
+ "i_amp=0.075;##given\n",
+ "i_milamp=i_amp*1000.;##current in milliamp.\n",
+ "print'%s %.2f %s'%(\"%f amp current is \",i_milamp,\" mA\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "%f amp current is 75.00 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex7-pg4"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Exa:1.7\n",
+ "import math\n",
+ "fq_khz=1495.;##given\n",
+ "fq_Mhz=fq_khz/1000.;\n",
+ "print'%s %.2f %s'%(\" kHz frequency is \",fq_Mhz,\" MHz\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " kHz frequency is 1.50 MHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex8-pg4"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Exa:1.8\n",
+ "import math\n",
+ "c_pF=27000.;##given\n",
+ "c_uF=c_pF/1000.;\n",
+ "print'%s %.2f %s'%(\"picofarad capacitance is \",c_uF,\" microfarad\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "picofarad capacitance is 27.00 microfarad\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex9-pg4"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Exa:1.9\n",
+ "import math\n",
+ "c_mA=7.25;##given\n",
+ "c_A=c_mA*1000.;\n",
+ "print'%s %.2f %s'%(\" milliampere current is \",c_A,\" ampere\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " milliampere current is 7250.00 ampere\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex10-pg4"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Exa:1.10\n",
+ "import math\n",
+ "vg_v=3.75*10**-6;##given\n",
+ "vg_mv=vg_v*1000.;\n",
+ "print'%s %.2e %s'%(\" volt voltage is \",vg_mv,\" mV\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " volt voltage is 3.75e-03 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex11-pg5"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:1.11\n",
+ "import math\n",
+ "r=33000.;##in ohms\n",
+ "i=0.003;##in amp\n",
+ "v=i*r;\n",
+ "print'%s %.2f %s'%(\"Voltage dropped = \",v,\" volts\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Voltage dropped = 99.00 volts\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex12-pg5"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:1.12\n",
+ "import math\n",
+ "t=20.*10**-3;##in sec\n",
+ "i=45.*10**-6;##in amp\n",
+ "q=i*t*10**9;\n",
+ "print'%s %.2f %s'%(\"Charge transferred = \",q,\" nC\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Charge transferred = 900.00 nC\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex13-pg5"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:1.13\n",
+ "import math\n",
+ "p=0.3;##in watts\n",
+ "v=1500.;##in volts\n",
+ "i=(p/v)*10**6;\n",
+ "print'%s %.2f %s'%(\"Current supplied = \",i,\" microamp\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Current supplied = 200.00 microamp\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex14-pg7"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:1.14\n",
+ "import math\n",
+ "r=12.;##in ohms\n",
+ "v=6.;##in volts\n",
+ "i=(v/r);\n",
+ "print'%s %.2f %s'%(\"Current = \",i,\" Amp\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Current = 0.50 Amp\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex15-pg7"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:1.15\n",
+ "import math\n",
+ "r=56.;##in ohms\n",
+ "i=0.1;##in amp\n",
+ "v=i*r;\n",
+ "print'%s %.2f %s'%(\"Voltage dropped = \",v,\" volts\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Voltage dropped = 5.60 volts\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex16-pg7"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:1.16\n",
+ "import math\n",
+ "v=15.;##in volts\n",
+ "i=0.001;##in amp\n",
+ "r=v/i;\n",
+ "print'%s %.2f %s'%(\"Resistance = \",r,\" ohms\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistance = 15000.00 ohms\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex17-pg7"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:1.17\n",
+ "import math\n",
+ "p=1.724*10**-8;##in ohm-meter\n",
+ "l=8.;##in meters\n",
+ "a=1.*10**-6;##in sq. meter\n",
+ "r=(p*l)/a;\n",
+ "print'%s %.2f %s'%(\"Resistance = \",r,\" ohms\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistance = 0.14 ohms\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex18-pg8"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:1.18\n",
+ "import math\n",
+ "p=1.724*10**-8;##in ohm-meter\n",
+ "l=20.;##in meters\n",
+ "a=1.*10**-6;##in sq. meter\n",
+ "i=5.;##in amperes\n",
+ "r=(p*l)/a;\n",
+ "v=i*r;\n",
+ "print'%s %.2f %s'%(\"Voltage dropped = \",v,\" volts\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Voltage dropped = 1.72 volts\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex19-pg9"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:1.19\n",
+ "import math\n",
+ "v=3.;##in volts\n",
+ "i=1.5;##in amperes\n",
+ "p=v*i;\n",
+ "print'%s %.2f %s'%(\"Power supplied = \",p,\" watts\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power supplied = 4.50 watts\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex20-pg9"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:1.20\n",
+ "import math\n",
+ "v=4.;##in volts\n",
+ "r=100.;##in ohms\n",
+ "p=(v**2)/r;\n",
+ "print'%s %.2f %s'%(\"Power dissipated = \",p,\" watts\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power dissipated = 0.16 watts\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex21-pg9"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:1.21\n",
+ "import math\n",
+ "i=20.*10**-3;##in amps\n",
+ "r=1000.;##in ohms\n",
+ "p=(i**2)*r;\n",
+ "print'%s %.2f %s'%(\"Power dissipated = \",p,\" watts\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power dissipated = 0.40 watts\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex22-pg10"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:1.22\n",
+ "import math\n",
+ "v=600;##in volts\n",
+ "d=25*10^-3;##in meters\n",
+ "E=(v)/d;\n",
+ "print'%s %.2f %s'%(\"Electric Field Strength = \",E/10000,\" kV/m\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Electric Field Strength = -1.00 kV/m\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex23-pg13"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:1.23\n",
+ "import math\n",
+ "u=4.*math.pi*10**-7;##in H/m\n",
+ "i=20.;##in amps\n",
+ "d=50.*10**-3;##in meters\n",
+ "B=(u*i)/(2.*math.pi*d);\n",
+ "print'%s %.2e %s'%(\"Flux Density = \",B,\" Tesla\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Flux Density = 8.00e-05 Tesla\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex24-pg13"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:1.24\n",
+ "import math\n",
+ "B=(2.5*10**-3);##in Tesla\n",
+ "a=(20.*10**-4);##in sq. meter\n",
+ "flux=B*a;\n",
+ "print'%s %.2e %s'%(\"Flux = \",flux,\" webers\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Flux = 5.00e-06 webers\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex25-pg15"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:1.25\n",
+ "import math\n",
+ "B1=0.6;##in Tesla\n",
+ "u1=B1/800.;\n",
+ "u_r1=u1/(4.*math.pi*10**-7);\n",
+ "print'%s %.2f %s'%(\"reltive permitivity at 0.6T = \",u_r1,\"\");\n",
+ "B2=1.6;##in Tesla\n",
+ "u2=0.2/4000.;\n",
+ "u_r2=u2 /(4.*math.pi*10**-7);\n",
+ "print'%s %.2f %s'%(\"\\n reltive permitivity at 1.6T = \",u_r2,\"\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "reltive permitivity at 0.6T = 596.83 \n",
+ "\n",
+ " reltive permitivity at 1.6T = 39.79 \n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex26-pg16"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:1.26\n",
+ "import math\n",
+ "flux=0.8*10**-3;\n",
+ "a=(500.*10**-6);##in sq. meter\n",
+ "l=0.6;##in meter\n",
+ "N=800.;\n",
+ "B=flux/a;\n",
+ "print'%s %.2e %s'%(\"Flux Density = \",B,\" Tesla\");\n",
+ "H=3500.;##in A/m\n",
+ "i=(H*l)/N;\n",
+ "print'%s %.2f %s'%(\"\\n Current required = \",i,\" amp.s\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Flux Density = 1.60e+00 Tesla\n",
+ "\n",
+ " Current required = 2.62 amp.s\n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Circuits_by_M._H._Tooley/Chapter2_2.ipynb b/Electronic_Circuits_by_M._H._Tooley/Chapter2_2.ipynb
new file mode 100644
index 00000000..20419576
--- /dev/null
+++ b/Electronic_Circuits_by_M._H._Tooley/Chapter2_2.ipynb
@@ -0,0 +1,1045 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:b5194708e2447220722c4dfa1402fc797342ce58013c4fb6e50908b3fd6172f1"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter2-Passive Components "
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg23"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.1\n",
+ "import math\n",
+ "marked=220.;##in ohms\n",
+ "measured=207.;##in ohms\n",
+ "err=marked-measured;\n",
+ "tol=(err/marked)*100.;\n",
+ "print'%s %.2f %s'%(\"Tolerance = \",tol,\"\");\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Tolerance = 5.91 \n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg23"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.2\n",
+ "import math\n",
+ "r=39.;##in ohms\n",
+ "v=9.;##in volts\n",
+ "i=(v/r);##in Amps\n",
+ "print'%s %.2f %s'%(\"Current = \",i*1000,\" mA\");\n",
+ "tol=0.1;##i.e, 10%\n",
+ "r_min=r-(tol*r);\n",
+ "i_max=v/r_min;\n",
+ "r_max=r+(tol*r);\n",
+ "i_min=v/r_max;\n",
+ "print'%s %.2f %s %.2f %s '%(\"\\n Max.Current = \",i_max*1000,\" mA \" and \"\",i_min*1000,\" Min Current\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Current = 230.77 mA\n",
+ "\n",
+ " Max.Current = 256.41 209.79 Min Current \n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg23"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.3\n",
+ "import math\n",
+ "v=28.;##in volts\n",
+ "i=0.1;##in A\n",
+ "r=v/i;\n",
+ "p=v*i;\n",
+ "print'%s %.2f %s %.2f %s '%(\"Resistance Value = \",r,\" ohms & Power dissipated\"\" = \",p,\" W\");\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistance Value = 280.00 ohms & Power dissipated = 2.80 W \n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg24"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.4\n",
+ "import math\n",
+ "r=10*(10**2);\n",
+ "print'%s %.2f %s'%(\"Resistor value = \",r,\" ohm\");\n",
+ "print(\"\\nTolerance = 10 \");\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistor value = 1000.00 ohm\n",
+ "\n",
+ "Tolerance = 10 \n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex5-pg24"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.5\n",
+ "import math\n",
+ "r=27.*(10**3);\n",
+ "print'%s %.2f %s'%(\"Resistor value = \",r,\" ohm\");\n",
+ "print(\"\\nTolerance = 5 \");\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistor value = 27000.00 ohm\n",
+ "\n",
+ "Tolerance = 5 \n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex6-pg24"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.6\n",
+ "import math\n",
+ "r=56*(10);\n",
+ "print'%s %.2f %s'%(\"Resistor value = \",r,\" ohm\");\n",
+ "print(\"\\nTolerance = 5 \");\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistor value = 560.00 ohm\n",
+ "\n",
+ "Tolerance = 5 \n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex7-pg24"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.7\n",
+ "import math\n",
+ "r=25.*(10**0);\n",
+ "print'%s %.2f %s'%(\"Resistor value = \",r,\" ohm\");\n",
+ "print(\"\\nTolerance = 20 \");\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistor value = 25.00 ohm\n",
+ "\n",
+ "Tolerance = 20 \n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex8-pg25"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.8\n",
+ "import math\n",
+ "r=22.*(10**3);\n",
+ "print(\"Bands are Red, Red, Red, Red\");\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Bands are Red, Red, Red, Red\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex9-pg25"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.9\n",
+ "import math\n",
+ "print(\"Resistance = 4.7 ohm with 10%% tolerance\");\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistance = 4.7 ohm with 10%% tolerance\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex10-pg25"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.10\n",
+ "import math\n",
+ "print(\"Resistance = 330 ohms with 2%% tolerance\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistance = 330 ohms with 2%% tolerance\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex11-pg26"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.11\n",
+ "import math\n",
+ "print(\"Resistance = 0.22 ohm with 20%% tolerance\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistance = 0.22 ohm with 20%% tolerance\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex12-pg26"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.12\n",
+ "import math\n",
+ "r1=22.;##in ohms\n",
+ "r2=47.;##in ohms\n",
+ "r3=33.;##in ohms\n",
+ "r_ser=r1+r2+r3;\n",
+ "print'%s %.2f %s'%(\"Effective resistance in series = \",r_ser,\" ohms\");\n",
+ "r_parel=((1./r1)+(1./r2)+(1./r3))**-1;\n",
+ "print'%s %.2f %s'%(\"\\n Effective resistance in parallel = \",r_parel,\" ohms\");\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Effective resistance in series = 102.00 ohms\n",
+ "\n",
+ " Effective resistance in parallel = 10.31 ohms\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex13-pg27"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.13\n",
+ "import math\n",
+ "r1=4.7;##in ohms\n",
+ "r2=47.;##in ohms\n",
+ "r3=12.;##in ohms\n",
+ "r4=27.;##in ohms\n",
+ "r5=r3+r4;\n",
+ "r_parel=((1./r5)+(1./r2))**-1;\n",
+ "r_eff=r_parel+r1;\n",
+ "print'%s %.2f %s'%(\"Effective resistance = \",r_eff,\" ohms\");\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Effective resistance = 26.01 ohms\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex14-pg27"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.14\n",
+ "import math\n",
+ "print(\"Two 100 ohm resistor of 1 W\");\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Two 100 ohm resistor of 1 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex15-pg28"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.15\n",
+ "import math\n",
+ "temp_coeff=0.001;##in per degree centigrade\n",
+ "r_o=1500.;##in ohm\n",
+ "t=80.;##temperature diff.\n",
+ "r_t=r_o*(1.+(temp_coeff)*t)\n",
+ "print'%s %.2f %s'%(\"Resistance at \",r_t,\" degree = ohms\");\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistance at 1620.00 degree = ohms\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex16-pg28"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.16\n",
+ "import math\n",
+ "temp_coeff=0.0005;##in per degree centigrade\n",
+ "r_t1=680.;##in ohm\n",
+ "t1=20.;##temperature diff.\n",
+ "t2=90.;\n",
+ "r_o=r_t1/(1.+(temp_coeff)*t1);\n",
+ "r_t2=r_o*(1.+(temp_coeff)*t2);\n",
+ "print'%s %.2f %s %.2f %s '%(\"Resistance at \",t2,\" degree = \",r_t2,\" ohms\");\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistance at 90.00 degree = 703.56 ohms \n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex17-pg29"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.17\n",
+ "import math\n",
+ "r_o=40.;##resis at 0 degree\n",
+ "r_t=44.;##at 100 degree\n",
+ "t=100.;##temperature diff.\n",
+ "temp_coeff=(1./t)*((r_t/r_o)-1.);\n",
+ "print'%s %.2e %s'%(\"Temperature Coefficient = \",temp_coeff,\" per degree centigrade\");\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Temperature Coefficient = 1.00e-03 per degree centigrade\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex18-pg33"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.18\n",
+ "import math\n",
+ "V_1=50.;\n",
+ "V_2=10.;\n",
+ "dV=V_1-V_2;##in volts\n",
+ "dt=0.1;##in seconds\n",
+ "C=22.*10**-6;\n",
+ "i=C*(dV/dt)*1000.;##in mA\n",
+ "print'%s %.2f %s'%(\"Current flow = \",i,\" milliAmps\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Current flow = 8.80 milliAmps\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex19-pg33"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.19\n",
+ "import math\n",
+ "C=10.*10**-6;\n",
+ "V=250.;##in volts\n",
+ "Q=V*C*1000.;##in millicoulomb\n",
+ "print'%s %.2f %s'%(\"Charged stored =\",Q,\" mC\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Charged stored = 2.50 mC\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex20-pg33"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.20\n",
+ "import math\n",
+ "C=47.*10**-6;##in farads\n",
+ "W=4.;##energy in joules\n",
+ "V=math.sqrt(W/(0.5*C));\n",
+ "print'%s %.2f %s'%(\"Voltage tht be applied = \",V,\" volts\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Voltage tht be applied = 412.57 volts\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex21-pg34"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.21\n",
+ "import math\n",
+ "E_o=8.85*10**-12;\n",
+ "E_r=5.4;\n",
+ "C=1*10**-9;\n",
+ "d=0.1*10**-3;\n",
+ "A=(C*d)/(E_o*E_r)*10**4;\n",
+ "print'%s %.2f %s'%(\"Required plate area = \",A,\" sq. cm\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Required plate area = 20.92 sq. cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex22-pg34"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.22\n",
+ "import math\n",
+ "E_o=8.85*10**-12;\n",
+ "E_r=4.5;\n",
+ "n=6.;##no. of plates\n",
+ "d=0.2*10**-3;##in meter\n",
+ "A=20.*10**-4;##in sq.meter\n",
+ "C=((E_o*E_r*(n-1.)*A)/d)*10**11;\n",
+ "print'%s %.2f %s'%(\"Capacitance = \",C,\" pF\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Capacitance = 199.12 pF\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex23-pg36"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.23\n",
+ "import math\n",
+ "print(\"Capacitance = 10000 pF of 10%%\"); "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Capacitance = 10000 pF of 10%%\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex24-pg36"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.24\n",
+ "import math\n",
+ "print(\"Capacitance = 150 pF of 2%% tolerance at 100 V\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Capacitance = 150 pF of 2%% tolerance at 100 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex25-pg37"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.25\n",
+ "import math\n",
+ "C1=2.;##in nF\n",
+ "C2=4.;##in nF\n",
+ "C3=2.;\n",
+ "C4=4.;\n",
+ "C_a=C1+C2;\n",
+ "C_b=C_a*C3/(C_a+C3);\n",
+ "C_eff=C4+C_b;\n",
+ "print'%s %.2f %s'%(\"Capacitance = \",C_eff,\" nF\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Capacitance = 5.50 nF\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex26-pg37"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.26\n",
+ "import math\n",
+ "C=100.;##in uF\n",
+ "C_eff=C*C/(C+C);\n",
+ "print'%s %.2f %s'%(\"Two capacitors of uF be in parallel used to make \",C_eff,\" uF capacitance\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Two capacitors of uF be in parallel used to make 50.00 uF capacitance\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex27-pg40"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.27\n",
+ "import math\n",
+ "L=600.*10**-3;##in H\n",
+ "I1=6.;##in A\n",
+ "I2=2.;##in A\n",
+ "dI=I1-I2;\n",
+ "dt=250.*10**-3;##in sec.\n",
+ "E=-L*(dI/dt);\n",
+ "print'%s %.2f %s'%(\"Induced voltage = \",E,\" volts\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Induced voltage = -9.60 volts\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex28-pg40"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.28\n",
+ "import math\n",
+ "E=2.5;##energy in joules\n",
+ "L=20.*10**-3;##in henry\n",
+ "I=math.sqrt(E/(0.5*L));\n",
+ "print'%s %.2f %s'%(\"Current = \",I,\" A\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Current = 15.81 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex29-pg40"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.29\n",
+ "import math\n",
+ "u_o=12.57*10**-7;\n",
+ "u_r=500.;\n",
+ "A=15.*10**-4;##area of cross-section in sq. meters\n",
+ "l=20.*10**-2;##length\n",
+ "L=100.*10**-3;##in henry\n",
+ "n=math.sqrt((L*l)/(u_r*u_o*A));\n",
+ "print'%s %.2f %s'%(\"Inductor requires \",n,\" turns of wire\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Inductor requires 145.65 turns of wire\n"
+ ]
+ }
+ ],
+ "prompt_number": 30
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex30-pg42"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.30\n",
+ "import math\n",
+ "##L=(L1*L2)/(L1+L2)\n",
+ "L_eq=5.;##in millihenry\n",
+ "print'%s %.2f %s'%(\"Inductor of 10 mH wired in parallel would provide \",L_eq,\" mH\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Inductor of 10 mH wired in parallel would provide 5.00 mH\n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex31-pg42"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:2.31\n",
+ "import math\n",
+ "L1=60.;##in mH\n",
+ "L2=60.;##in mH\n",
+ "L_a=L1+L2;\n",
+ "L3=120.;##in mH\n",
+ "L_b=L_a*L3/(L_a+L3);\n",
+ "L4=50.;##in mH\n",
+ "L_eq=L4+L_b;\n",
+ "print'%s %.2f %s'%(\"Equivalent Inductance = \",L_eq,\" mH\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Equivalent Inductance = 110.00 mH\n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Circuits_by_M._H._Tooley/Chapter3_2.ipynb b/Electronic_Circuits_by_M._H._Tooley/Chapter3_2.ipynb
new file mode 100644
index 00000000..781f46d7
--- /dev/null
+++ b/Electronic_Circuits_by_M._H._Tooley/Chapter3_2.ipynb
@@ -0,0 +1,586 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:f23f1f12c5c13ad8f68288fd358f70344404a6fb4aa236ccdacf571419cfbed9"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter3-DC Circuits"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg49"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:3.1\n",
+ "import math\n",
+ "i1=1.5;\n",
+ "i2=2.7;##in amp.s\n",
+ "i5=i1+i2;\n",
+ "i4=3.3;\n",
+ "i3=i4+i5;\n",
+ "print'%s %.2f %s'%(\"Current b/w A & B = \",i5,\" A\");\n",
+ "print'%s %.2f %s'%(\"\\n Current I3 = \",i3,\" A\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Current b/w A & B = 4.20 A\n",
+ "\n",
+ " Current I3 = 7.50 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg50"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:3.2\n",
+ "import math\n",
+ "E1=6.;\n",
+ "E2=3.;\n",
+ "V2=E1-E2;\n",
+ "V1=4.5;\n",
+ "E3=V1-E2;\n",
+ "print'%s %.2f %s'%(\"Value of V2 = \",V2,\" A\");\n",
+ "print'%s %.2f %s'%(\"\\n Value of E3 = \",E3,\" A\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Value of V2 = 3.00 A\n",
+ "\n",
+ " Value of E3 = 1.50 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg50"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:3.3\n",
+ "import math\n",
+ "V1=7.5;##in volts\n",
+ "V2=4.5;\n",
+ "V3=4.5;\n",
+ "r1=110.;##in ohms\n",
+ "r2=33.;\n",
+ "r3=22.;\n",
+ "i1=V1/r1;\n",
+ "i2=V2/r2;\n",
+ "i3=V3/r3;\n",
+ "print'%s %.2f %s'%(\"Current I1 = \",i1,\" A\");\n",
+ "print'%s %.2f %s'%(\"\\n Current I2 = \",i2,\" A\");\n",
+ "print'%s %.2f %s'%(\"\\n Current I3 = \",i3,\" A\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Current I1 = 0.07 A\n",
+ "\n",
+ " Current I2 = 0.14 A\n",
+ "\n",
+ " Current I3 = 0.20 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg52"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:3.4\n",
+ "import math\n",
+ "V_in=5.;##in volts\n",
+ "r1=4000.;\n",
+ "r2=1000.;\n",
+ "r_p=r1*r2/(r1+r2);\n",
+ "V_out=V_in*(r2/(r1+r2));\n",
+ "V_out_p=V_in*(r_p/(r_p+r2));\n",
+ "print'%s %.2f %s'%(\"output voltage at no load = \",V_out,\" A\");\n",
+ "print'%s %.2f %s'%(\"\\n output voltage when loaded by 10kohms = \",V_out_p,\"A\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "output voltage at no load = 1.00 A\n",
+ "\n",
+ " output voltage when loaded by 10kohms = 2.22 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex5-pg53"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:3.5\n",
+ "import math\n",
+ "I_in=5.;##in mA\n",
+ "R_m=100.;\n",
+ "I_m=1.;\n",
+ "R_s=R_m*I_m/(I_in-1.);\n",
+ "print'%s %.2f %s'%(\"Value of parallel shunt resistor = \",R_s,\" A\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Value of parallel shunt resistor = 25.00 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex6-pg54"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:3.6\n",
+ "import math\n",
+ "r1=100.;\n",
+ "r2=1000.;\n",
+ "R_x_1=(r2/r1)*10000.;\n",
+ "R_x_2=(r1/r2)*10.;\n",
+ "print'%s %.2f %s %.2f %s '%(\"Range extends from \",R_x_2,\" ohms to\" and \" \",R_x_1,\" ohms\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Range extends from 1.00 100000.00 ohms \n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex7-pg55"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:3.7\n",
+ "import math\n",
+ "E=10.;\n",
+ "r1=500.;\n",
+ "r2=600.;\n",
+ "r3=500.;\n",
+ "r4=400.;\n",
+ "V_a=E*(r2/(r1+r2));\n",
+ "V_b=E*(r4/(r3+r4));\n",
+ "V_oc=V_a-V_b;\n",
+ "r=((r1*r2)/(r1+r2))+((r3*r4)/(r3+r4));\n",
+ "i=(V_oc/(r+100.))*1000.;\n",
+ "print'%s %.2f %s'%(\"Current flow in 100 ohm resistor = \",i,\" mA\" );"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Current flow in 100 ohm resistor = 1.70 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex8-pg56"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:3.8\n",
+ "import math\n",
+ "I_sc=19.;##in uA\n",
+ "R=1000.;\n",
+ "R_m=968.;\n",
+ "V_out=I_sc*(R*R_m/(R+R_m));\n",
+ "print'%s %.2f %s'%(\"Voltage produced = \",V_out,\" uV\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Voltage produced = 9345.53 uV\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex9-pg59"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:3.9\n",
+ "import math\n",
+ "c=1.*10**-6;##in farads\n",
+ "r=3.3*10**6;##in ohms\n",
+ "t=1.;##in sec.\n",
+ "V_s=9.;##in volts\n",
+ "V_c=V_s*(1.-math.e**(-t/(r*c)));\n",
+ "print'%s %.2f %s'%(\"Voltage produced = \",V_c,\" V\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Voltage produced = 2.35 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex10-pg59"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:3.10\n",
+ "import math\n",
+ "c=100.*10**-6;##in farads\n",
+ "r=1.*10**3;##in ohms\n",
+ "t1=50.*10**-3;##in sec.\n",
+ "t2=100.*10**-3;##in sec.\n",
+ "V_s=350;##in volts\n",
+ "i1=(V_s/1000.)*(math.e**(-t1/(r*c)));\n",
+ "i2=(V_s/1000.)*(math.e**(-t2/(r*c)));\n",
+ "print'%s %.2f %s %.2f %s '%(\"Charging current after \",t1,\" sec\" and \"\",i1,\" A\");\n",
+ "\n",
+ "print'%s %.2f %s %.2f %s '%(\"Charging current after \",t2,\" sec\" and \"\",i2,\" A\")\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Charging current after 0.05 0.21 A \n",
+ "Charging current after 0.10 0.13 A \n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex11-pg61"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:3.11\n",
+ "import math\n",
+ "c=10.*10**-6;##in farads\n",
+ "r=47.*10**3;##in ohms\n",
+ "V_s=20.;##in volts\n",
+ "V_c=10.;\n",
+ "t=-c*r*math.log(V_c/V_s);\n",
+ "print'%s %.2f %s'%(\"time taken = \",t,\" sec.\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "time taken = 0.33 sec.\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex12-pg61"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:3.12\n",
+ "import math\n",
+ "c=150.*10**-6;##in farads\n",
+ "r=2.*10**6;##in ohms\n",
+ "V_s=150.;##in volts\n",
+ "V_c=0.8187*V_s;\n",
+ "print'%s %.2f %s'%(\"Capacitor voltage = \",V_c,\" V\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Capacitor voltage = 122.80 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex13-pg62"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:3.13\n",
+ "import math\n",
+ "r=10.*10**3;##in ohms\n",
+ "t=1.*10**-3;\n",
+ "c=(0.1*t/r)*10**9;\n",
+ "print'%s %.2f %s'%(\"Capacitor = \",c,\" nF\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Capacitor = 10.00 nF\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex14-pg63"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:3.14\n",
+ "import math\n",
+ "r=10.*10**3;##in ohms\n",
+ "t=1.*10**-3;\n",
+ "c=(10.*t/r)*10**6;\n",
+ "print'%s %.2f %s'%(\"Capacitor = \",c,\" uF\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Capacitor = 1.00 uF\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex15-pg64"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:3.15\n",
+ "import math\n",
+ "L=6.;##in henry\n",
+ "r=24.;##in ohms\n",
+ "t=0.1;##in sec.\n",
+ "V_s=12.;##in volts\n",
+ "i=(V_s/r)*(1.-math.e**(-t*r/L));\n",
+ "print'%s %.2f %s'%(\"current = \",i,\" A\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "current = 0.16 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex16-pg64"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:3.16\n",
+ "import math\n",
+ "V_s=5.;##in volts\n",
+ "V_c=0.8647*V_s;\n",
+ "print'%s %.2f %s'%(\"Inductor voltage = \",V_c,\" V\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Inductor voltage = 4.32 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Circuits_by_M._H._Tooley/Chapter4_2.ipynb b/Electronic_Circuits_by_M._H._Tooley/Chapter4_2.ipynb
new file mode 100644
index 00000000..3272c4a7
--- /dev/null
+++ b/Electronic_Circuits_by_M._H._Tooley/Chapter4_2.ipynb
@@ -0,0 +1,586 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:348e913cbcf303bd30e2a0fca661cdd75a027447d5cfac9117537a9c7cb2c1c0"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter4-Alternating voltage and current"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg70"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:4.1\n",
+ "import math\n",
+ "V_m=20.;##in volts\n",
+ "f=50.;##in Hz\n",
+ "t1=2.5*10**-3;\n",
+ "t2=15.*10**-3;\n",
+ "V1=V_m*math.sin(2.*math.pi*f*t1);\n",
+ "V2=V_m*math.sin(2.*math.pi*f*t2);\n",
+ "print'%s %.2f %s'%(\"Voltage at 2.5ms = \",V1,\" V\");\n",
+ "print'%s %.2f %s'%(\"\\n Voltage at 15ms = \",V2,\" V\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Voltage at 2.5ms = 14.14 V\n",
+ "\n",
+ " Voltage at 15ms = -20.00 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg70"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:4.2\n",
+ "import math\n",
+ "f=400.;##in Hz\n",
+ "T=1./f;\n",
+ "print'%s %.2f %s %.4f %s '%(\"Time period of \",f,\" Hz\" and \" waveform = \",T,\" sec\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Time period of 400.00 waveform = 0.0025 sec \n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg71"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:4.3\n",
+ "import math\n",
+ "T=40.*10**-3;##in Hz\n",
+ "f=1./T;\n",
+ "print'%s %.2f %s'%(\"Frequency of 40 ms waveform = \",f,\" Hz\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Frequency of 40 ms waveform = 25.00 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg71"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:4.4\n",
+ "import math\n",
+ "V_rms=240.;##in Volts\n",
+ "V_pk=1.414*V_rms;\n",
+ "print'%s %.2f %s %.2f %s' %(\"Peak voltage of \",V_rms,\" V RMS\" and \" voltage = \",V_pk,\" V\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Peak voltage of 240.00 voltage = 339.36 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex5-pg71"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:4.5\n",
+ "import math\n",
+ "I_pk=50.*10**-3;##in Amps\n",
+ "I_rms=0.353*I_pk;\n",
+ "print'%s %.2f %s'%(\"RMS current of 50mA peak current = \",I_rms,\" A\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "RMS current of 50mA peak current = 0.02 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex6-pg72"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:4.6\n",
+ "import math\n",
+ "V=10.;##pk-pk voltage\n",
+ "r=1000.;##ohms\n",
+ "I_pk=V/r;##in Amps\n",
+ "I_rms=0.353*I_pk*1000.;##milliamps\n",
+ "print'%s %.2f %s'%(\"RMS current of 10V peak-peak voltage = \",I_rms,\" mA\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "RMS current of 10V peak-peak voltage = 3.53 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex7-pg73"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:4.7\n",
+ "import math\n",
+ "c=1.*10**-6;\n",
+ "f1=100.;\n",
+ "f2=10000.;\n",
+ "X_c1=1./(2.*math.pi*f1*c);\n",
+ "X_c2=1./(2.*math.pi*f2*c);\n",
+ "print'%s %.2f %s'%(\"Reactance at 100Hz = \",X_c1,\" mA\");\n",
+ "print'%s %.2f %s'%(\"\\n Reactance at 10kHz = \",X_c2,\" mA\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reactance at 100Hz = 1591.55 mA\n",
+ "\n",
+ " Reactance at 10kHz = 15.92 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex8-pg73"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:4.8\n",
+ "import math\n",
+ "V=240.;\n",
+ "c=100.*10**-9;\n",
+ "f=50.;\n",
+ "X_c=1./(2.*math.pi*f*c);\n",
+ "I_c=V/X_c;\n",
+ "print'%s %.2f %s'%(\"Current flow = \",I_c,\" A\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Current flow = 0.01 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex9-pg74"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:4.9\n",
+ "import math\n",
+ "L=1.*10**-3;\n",
+ "f1=100.;\n",
+ "f2=10000.;\n",
+ "X_L1=(2.*math.pi*f1*L);\n",
+ "X_L2=(2.*math.pi*f2*L);\n",
+ "print'%s %.2f %s'%(\"Reactance at 100Hz = \",X_L1,\" ohm\");\n",
+ "print'%s %.2f %s'%(\"\\nReactance at 10kHz = \",X_L2,\" ohm\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reactance at 100Hz = 0.63 ohm\n",
+ "\n",
+ "Reactance at 10kHz = 62.83 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex10-pg74"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:4.10\n",
+ "import math\n",
+ "L=1.*10**-3;\n",
+ "f1=100.;\n",
+ "f2=10000.;\n",
+ "X_L1=(2.*math.pi*f1*L);\n",
+ "X_L2=(2.*math.pi*f2*L);\n",
+ "print'%s %.2f %s'%(\"Reactance at 100Hz = \",X_L1,\" ohm\");\n",
+ "print'%s %.2f %s'%(\"\\nReactance at 10kHz = \",X_L2,\" ohm\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reactance at 100Hz = 0.63 ohm\n",
+ "\n",
+ "Reactance at 10kHz = 62.83 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex11-pg74"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:4.11\n",
+ "import math\n",
+ "C=2.*10**-6;\n",
+ "f=400.;\n",
+ "V=115.;\n",
+ "X_C=1./(2.*math.pi*f*C);\n",
+ "r=199.;\n",
+ "z=math.sqrt(r**2+X_C**2);\n",
+ "I_s=V/z;\n",
+ "print'%s %.2f %s'%(\"Reactance = \",X_C,\" ohm\");\n",
+ "print'%s %.2f %s'%(\"\\n Current = \",I_s,\" A\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reactance = 198.94 ohm\n",
+ "\n",
+ " Current = 0.41 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex12-pg75"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:4.12\n",
+ "import math\n",
+ "L=150.*10**-3;\n",
+ "f=400.;\n",
+ "V=115.;\n",
+ "X_L=(2.*math.pi*f*L);\n",
+ "r=250.;\n",
+ "z=math.sqrt(r**2+X_L**2);\n",
+ "I_s=V/z;\n",
+ "print'%s %.2f %s'%(\"Reactance = \",X_L,\" ohm\");\n",
+ "print'%s %.2f %s'%(\"\\n Current = \",I_s,\" A\")"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Reactance = 376.99 ohm\n",
+ "\n",
+ " Current = 0.25 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex13-pg78"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:4.13\n",
+ "import math\n",
+ "L=100.*10**-3;\n",
+ "f=400.;\n",
+ "C=(1./(4.*math.pi*math.pi*f*f*L))*10**6;\n",
+ "print'%s %.2f %s'%(\"Capacitance required = \",C,\" uF\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Capacitance required = 1.58 uF\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex14-pg78"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:4.14\n",
+ "import math\n",
+ "L=20.*10**-3;\n",
+ "f=2000.;\n",
+ "V=1.5;\n",
+ "r=100.;\n",
+ "C=10.*10**-9;\n",
+ "X_L=(2.*math.pi*f*L);\n",
+ "X_C=1./(2.*math.pi*f*C);\n",
+ "z=math.sqrt(r**2+(X_L-X_C)**2);\n",
+ "i=V/z;\n",
+ "v=i*r;\n",
+ "print'%s %.4f %s'%(\"Current supplied = \",i,\" mA\");\n",
+ "print'%s %.2f %s'%(\"\\nVoltage developed = \",v,\" V\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Current supplied = 0.0002 mA\n",
+ "\n",
+ "Voltage developed = 0.02 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex15-pg81"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:4.15\n",
+ "import math\n",
+ "N_s=120.;\n",
+ "V_p=220.;\n",
+ "N_p=2000.;\n",
+ "V_s=N_s*V_p/N_p;\n",
+ "print'%s %.2f %s'%(\"Secondry voltage = \",V_s,\" V\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Secondry voltage = 13.20 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex16-pg81"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:4.16\n",
+ "import math\n",
+ "V_p=200.;\n",
+ "V_s=10.;\n",
+ "N_p=1200.;\n",
+ "N_s=N_p*V_s/V_p;\n",
+ "i_s=2.5;\n",
+ "i_p=N_s*i_s/N_p;\n",
+ "print'%s %.2f %s'%(\"Secondry turns = \",N_s,\"\");\n",
+ "print'%s %.2f %s'%(\"\\nprimary current = \",i_p,\"A\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Secondry turns = 60.00 \n",
+ "\n",
+ "primary current = 0.12 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Circuits_by_M._H._Tooley/Chapter5_2.ipynb b/Electronic_Circuits_by_M._H._Tooley/Chapter5_2.ipynb
new file mode 100644
index 00000000..b0c877d6
--- /dev/null
+++ b/Electronic_Circuits_by_M._H._Tooley/Chapter5_2.ipynb
@@ -0,0 +1,303 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:55165db38b61e651606f5e47e79ec33dbbcd65dc316fccbc779cf43ddfeefa00"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter5-Semiconductors"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg90"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:5.1\n",
+ "import math\n",
+ "v1=0.43;##volts\n",
+ "i1=2.5*10**-3;##in Amps.\n",
+ "v2=0.65;##volts\n",
+ "i2=7.4*10**-3;##in Amps.\n",
+ "r1=v1/i1;\n",
+ "r2=v2/i2;\n",
+ "print'%s %.2f %s'%(\"Diode resistance for 2.5A current = \",r1,\" ohms\");\n",
+ "print'%s %.2f %s'%(\"\\n Diode resistance for 0.65V = \",r2,\" ohms\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Diode resistance for 2.5A current = 172.00 ohms\n",
+ "\n",
+ " Diode resistance for 0.65V = 87.84 ohms\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg95"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:5.2\n",
+ "import math\n",
+ "i=15.*10**-3;\n",
+ "R=(21.-2.2)/i;\n",
+ "v=18.8;##in volts\n",
+ "P=i*v*1000.;\n",
+ "print'%s %.2f %s %.2f %s '%(\"Resistor \",R,\" ohms\" and \" of \",P,\" mW\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistor 1253.33 of 282.00 mW \n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg96"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:5.3\n",
+ "import math\n",
+ "I_c=30.;##in mA\n",
+ "I_b=0.6;\n",
+ "I_e=I_c+I_b;\n",
+ "hfe=I_c/I_b;\n",
+ "print'%s %.2f %s %.2f %s '%(\"Emitter current = \",I_e,\" ohms\" and \"hfe = \",hfe,\"\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Emitter current = 30.60 hfe = 50.00 \n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg100"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:5.4\n",
+ "import math\n",
+ "I_c=30.;##in mA\n",
+ "I_b=0.6;\n",
+ "I_e=I_c+I_b;\n",
+ "hfe=I_c/I_b;\n",
+ "print'%s %.2f %s %.2f %s '%(\"Emitter current = \",I_e,\" ohms\" and \"hfe = \",hfe,\"\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Emitter current = 30.60 hfe = 50.00 \n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex5-pg100"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:5.5\n",
+ "import math\n",
+ "I_e=98.;##in mA\n",
+ "I_c=97.;\n",
+ "I_b=I_e-I_c;\n",
+ "hfe=I_c/I_b;\n",
+ "print'%s %.2f %s %.2f %s '%(\"Emitter current = \",I_b,\" ohms\" and \"hfe = \",hfe,\"\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Emitter current = 1.00 hfe = 97.00 \n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex6-pg100"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:5.6\n",
+ "import math\n",
+ "I_c=1.5;##in A\n",
+ "I_b=50.*10**-3;\n",
+ "V_ce=6.;##volts\n",
+ "hfe=I_c/I_b;\n",
+ "P=I_c*V_ce;\n",
+ "print'%s %.2f %s'%(\"hfe required = \",hfe,\"\");\n",
+ "print'%s %.2f %s'%(\"\\n collector power dissipation = \",P,\" W\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "hfe required = 30.00 \n",
+ "\n",
+ " collector power dissipation = 9.00 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex7-pg102"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:5.7\n",
+ "import math\n",
+ "hfe=200.\n",
+ "I_c=10.*10**-3;\n",
+ "dI_b=I_c/hfe;\n",
+ "dI_c=hfe*dI_b/100.;\n",
+ "print'%s %.4f %s'%(\"Base current = \",dI_b,\" A \");\n",
+ "print'%s %.4f %s'%(\"\\nChange in collector current = \",dI_c,\" mA\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Base current = 0.0001 A \n",
+ "\n",
+ "Change in collector current = 0.0001 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex8-pg104"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:5.8\n",
+ "import math\n",
+ "dV_gs=0.025;\n",
+ "g_fs=-0.5;\n",
+ "dI_d=dV_gs*g_fs;##in mA\n",
+ "I_d1=50.*10**-3;##in mA\n",
+ "I_d2=dI_d+I_d1;\n",
+ "print'%s %.2f %s'%(\"Change in drain current = \",dI_d,\" A\");\n",
+ "print'%s %.2f %s'%(\"\\nNew value of drain current = \",I_d2,\" A\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Change in drain current = -0.01 A\n",
+ "\n",
+ "New value of drain current = 0.04 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Circuits_by_M._H._Tooley/Chapter7_2.ipynb b/Electronic_Circuits_by_M._H._Tooley/Chapter7_2.ipynb
new file mode 100644
index 00000000..e8e27f4f
--- /dev/null
+++ b/Electronic_Circuits_by_M._H._Tooley/Chapter7_2.ipynb
@@ -0,0 +1,343 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:2256e43b0ccc4d0255b5cf781a9c914f08adb93f8f0caa254bf09c9ef401f2ba"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter7-Amplifiers"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg132"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:7.1\n",
+ "import math\n",
+ "I_i=4.;\n",
+ "V_o=2.;\n",
+ "V_i=50.*10**-3;\n",
+ "I_o=200.;\n",
+ "A_v=V_o/V_i;\n",
+ "A_i=I_o/I_i;\n",
+ "print'%s %.2f %s'%(\" Volt gain = \",A_v,\"\"); \n",
+ "print'%s %.2f %s'%(\"\\n Current gain = \",A_i,\"\"); \n",
+ "print'%s %.2f %s'%(\"\\n Power gain = \",A_i*A_v,\"\"); \n",
+ " "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Volt gain = 40.00 \n",
+ "\n",
+ " Current gain = 50.00 \n",
+ "\n",
+ " Power gain = 2000.00 \n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg136"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:7.2\n",
+ "import math\n",
+ "A_v_max=35.;\n",
+ "A_v_cutoff=0.707*A_v_max;\n",
+ "print'%s %.2f %s'%(\" Mid-band Volt gain = \",A_v_cutoff,\"\"); \n",
+ "print(\"\\n upper freq = 590Hz & lower freq = 57Hz\"); \n",
+ " \n",
+ " "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Mid-band Volt gain = 24.74 \n",
+ "\n",
+ " upper freq = 590Hz & lower freq = 57Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg137"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:7.3\n",
+ "import math\n",
+ "A=50.;\n",
+ "b=0.1;\n",
+ "G=A/(1.+b*A);\n",
+ "print'%s %.2f %s'%(\" overall Volt gain = \",G,\"\"); \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " overall Volt gain = 8.33 \n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg138"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:7.4\n",
+ "import math\n",
+ "A=50.;\n",
+ "A_new=A+0.2*A;\n",
+ "b=0.1;\n",
+ "G=A_new/(1.+b*A_new);\n",
+ "dG=8.33-G/8.33;\n",
+ "print'%s %.2f %s'%(\" percentage change in overall volt gain = \",dG,\"\"); \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " percentage change in overall volt gain = 7.30 \n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex5-pg138"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:7.5\n",
+ "import math\n",
+ "A=100.;\n",
+ "G=20.;\n",
+ "b=(1./G)-(1./A);\n",
+ "print'%s %.2f %s'%(\"amount of feedback required = \",b,\"\"); \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "amount of feedback required = 0.04 \n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex6-pg143"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:7.6\n",
+ "import math\n",
+ "h_oe=80.*10**-6;\n",
+ "R_l=10000.;\n",
+ "I_f=320.*10**-6;\n",
+ "I_c=I_f*(1./h_oe)/((1./h_oe)+R_l);\n",
+ "V_out=I_c*R_l;\n",
+ "print'%s %.2f %s'%(\"Output voltage = \",V_out,\" V\"); \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Output voltage = 1.78 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex7-pg144"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:7.7\n",
+ "import math\n",
+ "b=200.;\n",
+ "h_ie=1.5*10**3;##in ohms\n",
+ "h_fe=150.;\n",
+ "R_l=b*h_ie/h_fe;\n",
+ "print'%s %.2f %s'%(\"Load resistance = \",R_l,\" ohms\"); \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Load resistance = 2000.00 ohms\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex8-pg145"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:7.8\n",
+ "import math\n",
+ "V=9.;\n",
+ "V_e=2.;\n",
+ "R4=1000.;\n",
+ "V_b=2.6;\n",
+ "R2=33.*10**3;\n",
+ "R1=68000.;\n",
+ "I_r1=(V-V_b)/R1;\n",
+ "R3=2.2*10**3;\n",
+ "I_b=15.1*10**-6;\n",
+ "I_c=2.0151*10**-3;\n",
+ "V_r3=I_c*R3;\n",
+ "V_c=V-V_r3;\n",
+ "print'%s %.2f %s'%(\"Collector voltage = \",V_c,\" V\"); \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Collector voltage = 4.57 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex9-pg147"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:7.9\n",
+ "import math\n",
+ "V_pp=14.8-3.3;\n",
+ "print(\"Collector quiescent voltage = 9.2 V\"); \n",
+ "print(\"\\nCollector quiescent current = 7.3mA\"); \n",
+ "print'%s %.2f %s'%(\"\\nOutput peak-peak voltage = \",V_pp,\" V\"); "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Collector quiescent voltage = 9.2 V\n",
+ "\n",
+ "Collector quiescent current = 7.3mA\n",
+ "\n",
+ "Output peak-peak voltage = 11.50 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Circuits_by_M._H._Tooley/Chapter8_2.ipynb b/Electronic_Circuits_by_M._H._Tooley/Chapter8_2.ipynb
new file mode 100644
index 00000000..b999ba17
--- /dev/null
+++ b/Electronic_Circuits_by_M._H._Tooley/Chapter8_2.ipynb
@@ -0,0 +1,186 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:69bad2cc1b97411ab194c6989d24ce9e98f48b912e29dd4ff77d5d659094fdfe"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter8-Operational Amplifiers"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg158"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:8.1\n",
+ "import math\n",
+ "V_out=2.;\n",
+ "V_in=400.*10**-6;\n",
+ "A_v=V_out/V_in;\n",
+ "A_v_dB=math.ceil (20.*(math.log (A_v)/math.log (10.)));\n",
+ "print'%s %.2f %s'%(\"open loop voltage gain = \",A_v_dB,\" dB\"); \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "open loop voltage gain = 74.00 dB\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg159"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:8.2\n",
+ "import math\n",
+ "V_in=5.*10**-3;\n",
+ "R_in=2.*10**6;\n",
+ "I_in=V_in/R_in;\n",
+ "print'%s %.2e %s'%(\"Input current = \",I_in,\" A\"); \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Input current = 2.50e-09 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg160"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:8.3\n",
+ "import math\n",
+ "V_out=10.;\n",
+ "t=4.;\n",
+ "SR=V_out/t;\n",
+ "print'%s %.2f %s'%(\"Slew rate = \",SR,\" V/us\"); \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Slew rate = 2.50 V/us\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg160"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:8.4\n",
+ "import math\n",
+ "V_out=2.;\n",
+ "SR=15.;##in V/us\n",
+ "t=V_out/SR;\n",
+ "print'%s %.2f %s'%(\"Time taken = \",t,\" us\"); \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Time taken = 0.13 us\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex6-pg164"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:8.6\n",
+ "import math\n",
+ "R_in=10000.;\n",
+ "f1=250.;\n",
+ "f2=15000.;\n",
+ "C_in=0.159/(f1*R_in);\n",
+ "C_f=0.159/(f2*R_in);\n",
+ "print'%s %.2e %s'%(\"C_f = \",C_f,\" F\"); \n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "C_f = 1.06e-09 F\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Circuits_by_M._H._Tooley/Chapter9_2.ipynb b/Electronic_Circuits_by_M._H._Tooley/Chapter9_2.ipynb
new file mode 100644
index 00000000..594ffb15
--- /dev/null
+++ b/Electronic_Circuits_by_M._H._Tooley/Chapter9_2.ipynb
@@ -0,0 +1,127 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:e9fb88f63f2c9c2769603c77ea25313f638342259fa02ac4950a18408033aeb6"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter9-Oscillators"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg173"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:9.1\n",
+ "import math\n",
+ "C=10.*10**-9;\n",
+ "R=10000.;\n",
+ "f=(1./(2.*math.pi*math.sqrt (6.)*C*R));\n",
+ "print'%s %.2f %s'%(\"The freq of oscillation = \",f,\" Hz\");\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The freq of oscillation = 649.75 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg173"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:9.2\n",
+ "import math\n",
+ "r1=1000.;\n",
+ "r2=1000.;\n",
+ "c=100.*10**-9;\n",
+ "f=(1./(2.*math.pi*c*r1));\n",
+ "print'%s %.2f %s'%(\"The freq of oscillation at 1 kohm= \",f,\" Hz\");\n",
+ "R1=6000.;\n",
+ "R2=6000.;\n",
+ "F=(1/(2.*math.pi*c*R1));\n",
+ "print'%s %.2f %s'%(\"\\nThe freq of oscillation at 6 kohm= \",F,\" Hz\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The freq of oscillation at 1 kohm= 1591.55 Hz\n",
+ "\n",
+ "The freq of oscillation at 6 kohm= 265.26 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg176"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:9.3\n",
+ "import math\n",
+ "f=1000.;\n",
+ "t=1./f;\n",
+ "C=10.*10**-9;\n",
+ "R=t/(1.4*C);\n",
+ "print'%s %.2f %s'%(\"R= \",R/1000,\" kohm\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "R= 71.43 kohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Circuits_by_M._H._Tooley/chapter6_2.ipynb b/Electronic_Circuits_by_M._H._Tooley/chapter6_2.ipynb
new file mode 100644
index 00000000..7b68d56d
--- /dev/null
+++ b/Electronic_Circuits_by_M._H._Tooley/chapter6_2.ipynb
@@ -0,0 +1,195 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:208e4f11f55abacdac1b020238bf181604676d4f63a97a09e00055db476b2f63"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter6-Power Supplies "
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1-pg117"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:6.1\n",
+ "import math\n",
+ "V_p=220.;\n",
+ "V_s=V_p/44.;\n",
+ "V_pk=1.414*V_s;##in volts\n",
+ "V_l=V_pk-0.6;\n",
+ "print'%s %.2f %s'%(\"Peak voltage that appear across load = \",V_l,\" V\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Peak voltage that appear across load = 6.47 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2-pg118"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:6.2\n",
+ "import math\n",
+ "X_c=3.18;\n",
+ "R=100.;\n",
+ "V_rip=1.*(X_c/math.sqrt(R**2+X_c**2));\n",
+ "print'%s %.2f %s'%(\"Ripple voltage = \",V_rip,\" V\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ripple voltage = 0.03 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex3-pg118"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:6.3\n",
+ "import math\n",
+ "f=50.;\n",
+ "L=10.;\n",
+ "X_l=2.*math.pi*f*L;\n",
+ "X_c=3.18;\n",
+ "V_rip=1.*(X_c/math.sqrt(X_l**2+X_c**2));\n",
+ "print'%s %.2e %s'%(\"Ripple voltage = \",V_rip,\" V\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ripple voltage = 1.01e-03 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex4-pg122"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:6.4\n",
+ "import math\n",
+ "R_l=400.;\n",
+ "V_in=9.;\n",
+ "V_z=5.;\n",
+ "P_z_max=0.5;\n",
+ "R_s_max=R_l*((V_in/V_z)-1.);\n",
+ "R_s_min=((V_z*V_in)-V_z**2)/P_z_max;\n",
+ "print'%s %.2f %s'%(\"Suitable value of resistor = \",(R_s_max+R_s_min)/2,\" ohm\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Suitable value of resistor = 180.00 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex5-pg123"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##Ex:6.5\n",
+ "import math\n",
+ "dI_i=20.;\n",
+ "dV_o=0.5;\n",
+ "dV_o_reg=0.1;\n",
+ "dI_o=2.;\n",
+ "R_out=dV_o/dI_o;\n",
+ "Regulation=(dV_o_reg/dI_i)*100.;\n",
+ "print'%s %.2f %s'%(\" output resis. = \",R_out,\" ohm\"); \n",
+ "print'%s %.2f %s'%(\" \\n regulation. = \",Regulation,\"\"); "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " output resis. = 0.25 ohm\n",
+ " \n",
+ " regulation. = 0.50 \n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/Electronic_Circuits_by_M._H._Tooley/screenshots/Chapter1_1.png b/Electronic_Circuits_by_M._H._Tooley/screenshots/Chapter1_1.png
new file mode 100644
index 00000000..bdbc5fb8
--- /dev/null
+++ b/Electronic_Circuits_by_M._H._Tooley/screenshots/Chapter1_1.png
Binary files differ
diff --git a/Electronic_Circuits_by_M._H._Tooley/screenshots/Chapter2_1.png b/Electronic_Circuits_by_M._H._Tooley/screenshots/Chapter2_1.png
new file mode 100644
index 00000000..6c5b5ee9
--- /dev/null
+++ b/Electronic_Circuits_by_M._H._Tooley/screenshots/Chapter2_1.png
Binary files differ
diff --git a/Electronic_Circuits_by_M._H._Tooley/screenshots/Chapter3_1.png b/Electronic_Circuits_by_M._H._Tooley/screenshots/Chapter3_1.png
new file mode 100644
index 00000000..3d29068d
--- /dev/null
+++ b/Electronic_Circuits_by_M._H._Tooley/screenshots/Chapter3_1.png
Binary files differ