summaryrefslogtreecommitdiff
path: root/Electronic_Devices_and_Circuits_by_J._Paul
diff options
context:
space:
mode:
Diffstat (limited to 'Electronic_Devices_and_Circuits_by_J._Paul')
-rw-r--r--Electronic_Devices_and_Circuits_by_J._Paul/Ch10_1.ipynb226
-rw-r--r--Electronic_Devices_and_Circuits_by_J._Paul/Ch11_1.ipynb322
-rw-r--r--Electronic_Devices_and_Circuits_by_J._Paul/Ch12_1.ipynb351
-rw-r--r--Electronic_Devices_and_Circuits_by_J._Paul/Ch13_1.ipynb357
-rw-r--r--Electronic_Devices_and_Circuits_by_J._Paul/Ch1_1.ipynb992
-rw-r--r--Electronic_Devices_and_Circuits_by_J._Paul/Ch2_1.ipynb851
-rw-r--r--Electronic_Devices_and_Circuits_by_J._Paul/Ch3_1.ipynb261
-rw-r--r--Electronic_Devices_and_Circuits_by_J._Paul/Ch4_1.ipynb1732
-rw-r--r--Electronic_Devices_and_Circuits_by_J._Paul/Ch5_1.ipynb1346
-rw-r--r--Electronic_Devices_and_Circuits_by_J._Paul/Ch6_1.ipynb246
-rw-r--r--Electronic_Devices_and_Circuits_by_J._Paul/Ch7_1.ipynb326
-rw-r--r--Electronic_Devices_and_Circuits_by_J._Paul/Ch8_1.ipynb256
-rw-r--r--Electronic_Devices_and_Circuits_by_J._Paul/Ch9_1.ipynb296
-rw-r--r--Electronic_Devices_and_Circuits_by_J._Paul/screenshots/4CollCurr_1.pngbin0 -> 21503 bytes
-rw-r--r--Electronic_Devices_and_Circuits_by_J._Paul/screenshots/4MaxNBasRes_1.pngbin0 -> 37382 bytes
-rw-r--r--Electronic_Devices_and_Circuits_by_J._Paul/screenshots/4saturationMode_1.pngbin0 -> 31723 bytes
16 files changed, 7562 insertions, 0 deletions
diff --git a/Electronic_Devices_and_Circuits_by_J._Paul/Ch10_1.ipynb b/Electronic_Devices_and_Circuits_by_J._Paul/Ch10_1.ipynb
new file mode 100644
index 00000000..a6339334
--- /dev/null
+++ b/Electronic_Devices_and_Circuits_by_J._Paul/Ch10_1.ipynb
@@ -0,0 +1,226 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 10 - Negative Feedback Amplifiers"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 467 example 1"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "reverse transmission = 0.10\n",
+ "gain with feedback = 10.00\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "av=1000#\n",
+ "chvoga=0.001##change in voltage gain\n",
+ "beta1=1/((chvoga)/(100/av))-1#\n",
+ "beta1=beta1/av#\n",
+ "fegain=(av)/(1+(av*(beta1)))#\n",
+ "print \"reverse transmission = %0.2f\"%((beta1))\n",
+ "print \"gain with feedback = %0.2f\"%((fegain))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 467 example 2"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "output voltage = 2.19\n",
+ "input voltage = 0.25 volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "voltag=36##volt\n",
+ "w=0.07##harmonic distortion\n",
+ "inpvol=0.028##volt\n",
+ "beta1=0.012#\n",
+ "a=voltag/inpvol#\n",
+ "fegain=a/(1+beta1*a)##correction in book\n",
+ "volta1=fegain*inpvol#\n",
+ "print \"output voltage = %0.2f\"%((volta1))\n",
+ "#decrease of gain 9\n",
+ "inpvol=9*inpvol#\n",
+ "print \"input voltage = %0.2f\"%((inpvol)),\"volt\"#"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 468 example 3"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "required input = 1.00 volt\n",
+ "harmonic distortion = 0.10\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "volgain=2000##voltage gain\n",
+ "outpower=20##watts\n",
+ "inpsig=10*10**-3##volts\n",
+ "fedbac=40##decibel\n",
+ "fedgai=volgain/100#\n",
+ "outvol=volgain*inpsig##output voltage\n",
+ "inpvol=outvol/fedgai##required input\n",
+ "#10 second harmonic distortion\n",
+ "distor=(10/100)#\n",
+ "print \"required input = %0.2f\"%((inpvol)),\"volt\"#\n",
+ "print \"harmonic distortion = %0.2f\"%((distor))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 469 example 5"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "feedback factor = 0.019\n",
+ "over gain = 0.005\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "fedgai=60##decibel\n",
+ "outimp=10*10**3##ohm\n",
+ "outim1=500##ohm modified impedance\n",
+ "fedgai=1000#\n",
+ "fedbac=((outimp/outim1)-(1))/fedgai#\n",
+ "#10 change in gain\n",
+ "overga=1/((1+(fedgai*fedbac))/0.1)##over gain\n",
+ "print \"feedback factor = %0.3f\"%((fedbac))\n",
+ "print \"over gain = %0.3f\"%((overga))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 470 example 6"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "current gain = -11.60\n",
+ "voltage gain = -46.40\n",
+ "transconductance = -0.01 ampere per volt\n",
+ "transresistance = -46403.71 ohm\n",
+ "input resistance = 1042.65 ohm\n",
+ "output resistance = 3636.36 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "colres=4*10**3##ohm\n",
+ "r=4*10**3##ohm\n",
+ "basres=20*10**3##ohm\n",
+ "r1=1*10**3##ohm\n",
+ "hie=1.1*10**3#\n",
+ "hfe=50#\n",
+ "hoe=(40*10**3)#\n",
+ "ri=basres*hie/(basres+hie)#\n",
+ "curgai=((r1/(r1+ri)))*((basres/(basres+hie)))*((-hfe*colres)/(colres+r))#\n",
+ "volgai=curgai*r/r1#\n",
+ "tranco=volgai/r#\n",
+ "tranre=r1*volgai#\n",
+ "outres=hoe*colres/(hoe+colres)#\n",
+ "print \"current gain = %0.2f\"%((curgai))\n",
+ "print \"voltage gain = %0.2f\"%((volgai))\n",
+ "print \"transconductance = %0.2f\"%((tranco)),\"ampere per volt\"#\n",
+ "print \"transresistance = %0.2f\"%((tranre)),\"ohm\"#\n",
+ "print \"input resistance = %0.2f\"%((ri)),\"ohm\"#\n",
+ "print \"output resistance = %0.2f\"%((outres)),\"ohm\"#"
+ ]
+ }
+ ],
+ "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.9"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}
diff --git a/Electronic_Devices_and_Circuits_by_J._Paul/Ch11_1.ipynb b/Electronic_Devices_and_Circuits_by_J._Paul/Ch11_1.ipynb
new file mode 100644
index 00000000..fc78f77f
--- /dev/null
+++ b/Electronic_Devices_and_Circuits_by_J._Paul/Ch11_1.ipynb
@@ -0,0 +1,322 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 11 - Sinusoidal Oscillators"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 514 example 2"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "min frequency = 1769.29hertz\n",
+ "max frequency = 17692.85hertz\n",
+ "resistance r3 = 20000.00ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "macapa=900*10**-12##farad\n",
+ "micapa=90*10**-12##farad\n",
+ "r=100*10**3##ohm\n",
+ "#(a) frequency range\n",
+ "fremin=1/(2*3.14*r*macapa)\n",
+ "print \"min frequency = %0.2f\"%((fremin))+\"hertz\"\n",
+ "fremax=1/(2*3.14*r*micapa)\n",
+ "print \"max frequency = %0.2f\"%((fremax))+\"hertz\"\n",
+ "#(b) r3\n",
+ "r=10*10**3##ohm\n",
+ "r3=2*r\n",
+ "print \"resistance r3 = %0.2f\"%((r3))+\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 516 example 3"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "min voltage >= 7.50volt\n",
+ "frequency = 42379.83hertz\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "c1=0.004*10**-6##farad\n",
+ "c2=0.03*10**-6##farad\n",
+ "induct=4*10**-3##henry\n",
+ "#min voltage\n",
+ "mivolt=c2/c1\n",
+ "print \"min voltage >= %0.2f\"%((mivolt))+\"volt\"\n",
+ "#frequency\n",
+ "freque=(((1/(2*3.14)))*sqrt((c1+c2)/(induct*c1*c2)))\n",
+ "print \"frequency = %0.2f\"%((freque))+\"hertz\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 517 example 5"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "frequency = 166467.63hertz\n",
+ "ratio1 greater than 1 so oscillations possible\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "induct=500*10**-6##henry\n",
+ "induc1=5000*10**-6##henry\n",
+ "mutuin=300*10**-6##henry\n",
+ "c1=150*10**-12##farad\n",
+ "#(a) frequency\n",
+ "indcto=induct+induc1+2*mutuin\n",
+ "freque=1/((2)*3.14*sqrt(indcto*c1))\n",
+ "#(b) condition\n",
+ "r=10*10**3##ohm\n",
+ "conduc=8*10**-3##ampere per volt\n",
+ "r1=50*10**3##ohm\n",
+ "r_=r*r1/(r+r1)\n",
+ "volgai=conduc*r_\n",
+ "print \"frequency = %0.2f\"%((freque))+\"hertz\"\n",
+ "ratio1=(induc1+mutuin)/(induct+mutuin)\n",
+ "ratio1=ratio1*volgai\n",
+ "print \"ratio1 greater than 1 so oscillations possible\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 518 example 6"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "resonanting capacitance = 5.00e-14farad\n",
+ "resonant frequency = 1.42e+06hertz\n",
+ "parallel resonant frequency = 1.03e+06hertz\n",
+ "series resonant frequency = 1.01e+06hertz\n",
+ "quality factor = 3162.28\n",
+ "loop gain = 100.00\n",
+ "bias = 6.00e-05second\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "cgs=5*10**-12##farad\n",
+ "cds=1*10**-12##farad\n",
+ "conduct=10*10**-3##ampere per volt\n",
+ "rd=50*10**3##ohm\n",
+ "r=10*10**6##ohm\n",
+ "induct=0.5##henry\n",
+ "c1=0.05*10**-12##farad\n",
+ "rse=1*10**3##ohm\n",
+ "c=1*10**-12##farad\n",
+ "#(1) c11\n",
+ "c11=((((cds*cgs)/(cds+cgs))+1)*c1)/(((cds*cgs)/(cds+cgs))+1+c1)\n",
+ "print \"resonanting capacitance = %0.2e\"%((c11))+\"farad\"\n",
+ "#(2) frequency\n",
+ "freque=((sqrt(2))/(2*3.14*sqrt(induct*c11)))\n",
+ "print \"resonant frequency = %0.2e\"%((freque))+\"hertz\"\n",
+ "#(3) frequency parallel\n",
+ "\n",
+ "freque=1/(2*3.14*sqrt(((induct*c*c1))/(c+c1)))\n",
+ "print \"parallel resonant frequency = %0.2e\"%((freque))+\"hertz\"\n",
+ "#frequency series\n",
+ "freque=1/((2*3.14*sqrt(induct*c1)))\n",
+ "print \"series resonant frequency = %0.2e\"%((freque))+\"hertz\"\n",
+ "qualit=((induct/c1)**(0.5))/rse\n",
+ "print \"quality factor = %0.2f\"%((qualit))\n",
+ "#correction required in book\n",
+ "#(4) loop gain\n",
+ "abeta1=conduct*rd*cds/cgs\n",
+ "print \"loop gain = %0.2f\"%((abeta1))\n",
+ "#(5)\n",
+ "w=r*(cds+cgs)\n",
+ "print \"bias = %0.2e\"%((w))+\"second\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 519 example 7"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "frequency = 1.23e+06hertz\n",
+ "gain = 5.00\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "c=200*10**-12##farad\n",
+ "c1=1000*10**-12##farad\n",
+ "induct=100*10**-6##henry\n",
+ "#(1) frequency\n",
+ "ceq=(c*c1)/(c+c1)\n",
+ "freque=1/(2*3.14*(sqrt(induct*ceq)))\n",
+ "print \"frequency = %0.2e\"%((freque))+\"hertz\"##correction in the book\n",
+ "gaimin=c1/c\n",
+ "print \"gain = %0.2f\"%((gaimin))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 520 example 8"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "inductance = 4.02e-05henry\n"
+ ]
+ }
+ ],
+ "source": [
+ "induc1=0.4*10**-3##henry\n",
+ "c=0.004*10**-6##farad\n",
+ "freque=120*10**3##hertz\n",
+ "induct=((1/(4*3.14**2*freque**2*c)))-induc1\n",
+ "print \"inductance = %0.2e\"%((induct))+\"henry\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 520 example 9"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "frequency = 1087243.22hertz\n",
+ "ratio parallel series = 1.03\n",
+ "quality factor = 409.67\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "induct=0.33##henry\n",
+ "c=0.065*10**-12##farad\n",
+ "c1=1*10**-12##farad\n",
+ "r=5.5*10**3##ohm\n",
+ "#(1) series resonant frequency\n",
+ "freque=(1/(2*(3.14)))*sqrt(1/((induct)*c))\n",
+ "print \"frequency = %0.2f\"%((freque))+\"hertz\"\n",
+ "#(2)exceed of frequency\n",
+ "ratio1=sqrt((1+(c/c1)))\n",
+ "print \"ratio parallel series = %0.2f\"%((ratio1))\n",
+ "#correction required in the book\n",
+ "#(3) quality factor\n",
+ "qualit=(1/r)*sqrt(induct/c)\n",
+ "print \"quality factor = %0.2f\"%((qualit))"
+ ]
+ }
+ ],
+ "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.9"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}
diff --git a/Electronic_Devices_and_Circuits_by_J._Paul/Ch12_1.ipynb b/Electronic_Devices_and_Circuits_by_J._Paul/Ch12_1.ipynb
new file mode 100644
index 00000000..58504fac
--- /dev/null
+++ b/Electronic_Devices_and_Circuits_by_J._Paul/Ch12_1.ipynb
@@ -0,0 +1,351 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 12 - Power Electronic devices "
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 553 example 1"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "source resistance = 111.87 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "slope1=130\n",
+ "trivol=15##volt\n",
+ "d=0.5##watts\n",
+ "ig=sqrt(d/slope1)\n",
+ "vg=slope1*ig\n",
+ "r=(trivol-vg)/ig\n",
+ "print \"source resistance = %0.2f\"%((r)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 553 example 2"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "current = 0.010 ampere\n",
+ "input current less than required current\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import exp\n",
+ "latcur=50*10**-3##ampere\n",
+ "durpul=50*10**-6##second\n",
+ "induct=0.5##henry\n",
+ "r=20##ohm\n",
+ "voltag=100##volt\n",
+ "w=induct/r\n",
+ "inpcur=-(voltag/r)*((1)-exp(-durpul/w))\n",
+ "print \"current = %0.3f\"%(abs(inpcur)),\"ampere\"\n",
+ "print \"input current less than required current\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 554 example 3"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "min duration = 4.00e-06 second\n"
+ ]
+ }
+ ],
+ "source": [
+ "latcur=4*10**-3##ampere\n",
+ "induct=0.1##henry\n",
+ "voltag=100##volt\n",
+ "durmin=induct*latcur/voltag\n",
+ "print \"min duration = %0.2e\"%((durmin)),\"second\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 554 example 4"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "source resistance = 2000.00 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "slope1=3*10**3\n",
+ "egs=10##volt\n",
+ "d=0.012##watts\n",
+ "ig=sqrt(d/slope1)\n",
+ "vg=slope1*ig\n",
+ "r=(egs-vg)/ig\n",
+ "\n",
+ "print \"source resistance = %0.2f\"%((r)),\"ohm\"##it is not given in the book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 554 example 5"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "resistance = 14.00 ohm\n",
+ "frequency = 18750.00 hertz\n"
+ ]
+ }
+ ],
+ "source": [
+ "slope1=16\n",
+ "durmax=4*10**-6##second\n",
+ "curmin=500*10**-3##ampere\n",
+ "voltag=15##volt\n",
+ "#(1) resistance\n",
+ "vg=slope1*curmin\n",
+ "r=(voltag-vg)/curmin\n",
+ "#(2)\n",
+ "d=vg*curmin\n",
+ "freque=0.3/(d*durmax)\n",
+ "print \"resistance = %0.2f\"%((r)),\"ohm\"\n",
+ "print \"frequency = %0.2f\"%((freque)),\"hertz\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 555 example 6"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "change of voltage = 800.00 volt per microsecond\n"
+ ]
+ }
+ ],
+ "source": [
+ "c1=20*10**-12##farad\n",
+ "limcur=16*10**-3##ampere\n",
+ "w=(limcur/c1)*10**-6##convert second to microsecond\n",
+ "print \"change of voltage = %0.2f\"%((w)),\"volt per microsecond\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 555 example 7"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "current = 2121.32 ampere\n",
+ "current = 45000.00 ampere square second\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "ratcur=3000##ampere\n",
+ "freque=50##hertz\n",
+ "i=sqrt(ratcur**2/2)\n",
+ "print \"current = %0.2f\"%((i)),\"ampere\"\n",
+ "i=((ratcur)/sqrt(2))**2/(2*freque)\n",
+ "print \"current = %0.2f\"%((i)),\"ampere square second\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 556 example 9"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 8,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "max limit resistance = 1410000.00 ohm\n",
+ "min limit resistance = 2650.00 ohm\n",
+ "resistance = 4.67e+04 ohm\n",
+ "rb1 = 100.00 ohm\n",
+ "rb2 = 653.59 ohm\n",
+ "peak voltage = 15.90 volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "from math import log\n",
+ "voltag=30##volt\n",
+ "w=0.51\n",
+ "i1=10*10**-6##ampere\n",
+ "v1=3.5##volt\n",
+ "curen1=10*10**-3##ampere\n",
+ "freque=60##hertz\n",
+ "tridun=50*10**-6##second\n",
+ "pinvol=w*voltag+0.6\n",
+ "r=(voltag-pinvol)/i1\n",
+ "print \"max limit resistance = %0.2f\"%((r)),\"ohm\"\n",
+ "r=(voltag-v1)/(curen1)\n",
+ "print \"min limit resistance = %0.2f\"%((r)),\"ohm\"\n",
+ "capac1=0.5*10**-6##farad\n",
+ "r=(1/freque)*(1/(capac1*log(1/(1-w))))\n",
+ "print \"resistance = %0.2e\"%((r)),\"ohm\"\n",
+ "rb2=10**4/(w*voltag)\n",
+ "rb1=tridun/capac1\n",
+ "print \"rb1 = %0.2f\"%((rb1)),\"ohm\"\n",
+ "print \"rb2 = %0.2f\"%((rb2)),\"ohm\"\n",
+ "print \"peak voltage = %0.2f\"%((pinvol)),\"volt\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 557 example 10"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 9,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage = 7.00 volt\n",
+ "this voltage makes to off\n"
+ ]
+ }
+ ],
+ "source": [
+ "re=1*10**3##ohm\n",
+ "i1=5*10**-3##ampere\n",
+ "\n",
+ "voltag=re*i1+2\n",
+ "print \"voltage = %0.2f\"%((voltag)),\"volt\"\n",
+ "\n",
+ "\n",
+ "print \"this voltage makes to off\""
+ ]
+ }
+ ],
+ "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.9"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}
diff --git a/Electronic_Devices_and_Circuits_by_J._Paul/Ch13_1.ipynb b/Electronic_Devices_and_Circuits_by_J._Paul/Ch13_1.ipynb
new file mode 100644
index 00000000..b0a888e4
--- /dev/null
+++ b/Electronic_Devices_and_Circuits_by_J._Paul/Ch13_1.ipynb
@@ -0,0 +1,357 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter13 - Cathode Ray Oscilloscope"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber : 578 example 1"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "power to electrons = 8.0 watts\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "quanti=3*10**17#\n",
+ "voltag=10*10**3##volt\n",
+ "distan=40*10**-3##metre per minute\n",
+ "w=quanti*1.6*10**-19*voltag\n",
+ "w=w/60##per second\n",
+ "\n",
+ "print \"power to electrons = \",round((w),2),\"watts\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber : 578 example 2"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "input voltage = 9.55 volt\n",
+ "frequency = 4761.9 hertz\n",
+ "vm1coswt vm2sinwt squaring and adding gives ellipse\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "sensit=5## per centimetre\n",
+ "q=50*10**-6##second per centimetre\n",
+ "petope=5.4##centimetre\n",
+ "horiax=8.4##centimetre\n",
+ "voltag=petope*sensit#\n",
+ "voltag=voltag/((2)*sqrt(2))#\n",
+ "#one cycle\n",
+ "horiax=(horiax/2)*q#\n",
+ "freque=1/horiax#\n",
+ "print \"input voltage = \",round((voltag),2),\"volt\"\n",
+ "print \"frequency = \",round((freque),2),\"hertz\"\n",
+ "\n",
+ "\n",
+ "print \"vm1coswt vm2sinwt squaring and adding gives ellipse\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber : 579 example 3"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "velocity x = 1.874e+07 metre per second\n",
+ "velocity x = 3.10e+05 metre per second\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "voltag=1000##volt\n",
+ "#(1) velocity\n",
+ "vx=sqrt(2*1.6*10**-19*(voltag)/(9.11*10**-31))#\n",
+ "print \"velocity x = %0.3e\"%vx,\"metre per second\"\n",
+ "vox=1*10**5##metre per second intial velocity\n",
+ "vx=sqrt((vox)+((2*1.6*10**-19*voltag)/(2.01*1.66*10**-27)))#\n",
+ "\n",
+ "print \"velocity x = %0.2e\"%vx,\"metre per second\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber : 580 example 4"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "transverse magnetic field = 3.87e-04 weber per metre square\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "voltag=2000##volt\n",
+ "d=15##centimetre\n",
+ "d1=3##centimetre\n",
+ "r1=((d**2+d1**2)/(6))*10**-2##centimetre to metre\n",
+ "vox=sqrt(2*1.6*10**-19*(voltag)/(9.11*10**-31))#\n",
+ "b=vox/((1.6*10**-19*r1)/(9.11*10**-31))#\n",
+ "\n",
+ "print \"transverse magnetic field = %0.2e\"%b,\"weber per metre square\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber : 581 example 5"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "max frequency = 6.63e+08 hertz\n",
+ "duration electron between the plates = 4.53e-08 second\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "voltag=2000##volt\n",
+ "d=2*10**-2##metre\n",
+ "#(1) frequency\n",
+ "vx=sqrt(2*1.6*10**-19*(voltag)/(9.11*10**-31))#\n",
+ "durati=d/vx#\n",
+ "freque=1/(2*durati)#\n",
+ "print \"max frequency = %0.2e\"%freque,\"hertz\"\n",
+ "#(2)\n",
+ "durati=60*durati#\n",
+ "print \"duration electron between the plates = %0.2e\"%durati,\"second\"#correction in book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber : 582 example 7"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "max velocity = 1.68e+07 metre per second\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "voltag=800##volt\n",
+ "\n",
+ "\n",
+ "q=1.6*10**-19##coulomb\n",
+ "m=9.11*10**-31##kilogram\n",
+ "vox=sqrt(2*q*voltag/m)#\n",
+ "\n",
+ "print \"max velocity = %0.2e\"%vox,\"metre per second\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber : 582 example 8"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "velocity = 2.65e+07 metre per second\n",
+ "sensitivity = 3.75e-04 metre per volt\n",
+ "deflection factor = 2666.67 volt per metre\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "voltag=2000##volt\n",
+ "d=1.5*10**-2##centimetre\n",
+ "d1=5*10**-3##metre\n",
+ "distan=50*10**-2##metre\n",
+ "#(1) velocity\n",
+ "vox=sqrt(2*1.6*10**-19*(voltag)/(9.11*10**-31))#\n",
+ "#(2) sensitivity\n",
+ "defsen=distan*d/(2*d1*voltag)#\n",
+ "#deflection factor\n",
+ "g=1/defsen#\n",
+ "print \"velocity = %0.2e\"%vox,\"metre per second\"\n",
+ "print \"sensitivity = %0.2e\"%defsen,\"metre per volt\"\n",
+ "\n",
+ "print \"deflection factor = \",round((g),2),\"volt per metre\"#correction in the book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber : 582 example 9"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 8,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "velocity = 2.65e+07 metre per second\n",
+ "fc = 1.33e+08 hertz\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "voltag=2000##volt\n",
+ "d=50*10**-3##metre\n",
+ "#(1) velocity\n",
+ "vox=sqrt(2*1.6*10**-19*(voltag)/(9.11*10**-31))#\n",
+ "print \"velocity = %0.2e\"%vox,\"metre per second\"\n",
+ "#(2) fc\n",
+ "fc=vox/(4*d)#\n",
+ "\n",
+ "print \"fc = %0.2e\"%fc,\"hertz\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber : 582 example 10"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 9,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "phase angle = 30.0 degre\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import asin, degrees\n",
+ "y=2.5##divisions\n",
+ "y1=1.25##divisions\n",
+ "y=y1/y#\n",
+ "w=degrees(asin(y))\n",
+ "\n",
+ "print \"phase angle = \",round((w),2),\"degre\""
+ ]
+ }
+ ],
+ "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.9"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}
diff --git a/Electronic_Devices_and_Circuits_by_J._Paul/Ch1_1.ipynb b/Electronic_Devices_and_Circuits_by_J._Paul/Ch1_1.ipynb
new file mode 100644
index 00000000..fd90a687
--- /dev/null
+++ b/Electronic_Devices_and_Circuits_by_J._Paul/Ch1_1.ipynb
@@ -0,0 +1,992 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 1 - Semiconductor Physics"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 24 example 1"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "minority concentration = 2.25e+12 per metre square\n",
+ "shift in fermi = 0.23 volt\n",
+ "minority concentration when n doubled = 9.00e+12 per cubic metre\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import log\n",
+ "incaco=1.5*10**16##cubic metre\n",
+ "resist=2*10**3##ohm metre\n",
+ "dopcon=10**20##metre\n",
+ "q=26*10**-3##electron volt\n",
+ "#(1)\n",
+ "w=2.25*10**32/dopcon#\n",
+ "#(3)\n",
+ "shifer=q*log(dopcon/incaco)##shift in fermi level\n",
+ "ni=9*10**32#\n",
+ "#(3)\n",
+ "w1=ni/dopcon#\n",
+ "print \"minority concentration = %0.2e\"%((w)),\"per metre square\"#\n",
+ "print \"shift in fermi = %0.2f\"%((shifer)),\"volt\"#\n",
+ "print \"minority concentration when n doubled = %0.2e\"%((w1)),\"per cubic metre\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 25 example 2"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "conductivity = 7.12e+24 second per metre\n",
+ "drift velocity = 10.44 metre per second\n",
+ "density = 2.14e+28 ampere per cubic metre\n"
+ ]
+ }
+ ],
+ "source": [
+ "numfre=7.87*10**28##per cubic metre\n",
+ "molity=34.8##square centimetre/velocity second\n",
+ "e=30##volt per centimetre\n",
+ "#(1)\n",
+ "molity=molity*10**-4#q=1.6*10**-19#\n",
+ "conduc=numfre*q*molity#\n",
+ "#(2)\n",
+ "e=e*10**2#\n",
+ "veloci=(molity*e)#\n",
+ "curden=conduc*e#\n",
+ "print \"conductivity = %0.2e\"%((conduc)),\"second per metre\"#\n",
+ "print \"drift velocity = %0.2f\"%((veloci)),\"metre per second\"#\n",
+ "print \"density = %0.2e\"%((curden)),\"ampere per cubic metre\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 26 example 3"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "conductivity = 0.0224 second per centimetre\n",
+ "conductivity at extent of 1 impurity = 0.30 second per centimetre\n",
+ "conductivity acceptor to extent of 1 impurity = 1.30 second per centimetre\n"
+ ]
+ }
+ ],
+ "source": [
+ "ni=2.5*10**13##per square centimetre\n",
+ "moe=3800#square centimetre/velocity second\n",
+ "mo1=1800##square centimetre/velocity second\n",
+ "num=4.51*10**22##number of atoms\n",
+ "q=1.6*10**-19#\n",
+ "conduc=ni*q*(moe+mo1)#\n",
+ "num=num/10**7#\n",
+ "impura=(ni**2)/num#\n",
+ "ni=5*10**14#\n",
+ "condu1=ni*q*moe#\n",
+ "print \"conductivity = %0.4f\"%((conduc)),\"second per centimetre\"#\n",
+ "print \"conductivity at extent of 1 impurity = %0.2f\"%((condu1)),\"second per centimetre\"##there is mistake in book as 3.04s/cm\n",
+ "conduc=num*q*mo1#\n",
+ "print \"conductivity acceptor to extent of 1 impurity = %0.2f\"%((conduc)),\"second per centimetre\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 27 example 4"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "conductivity intrinisc at 300kelvin = 4.32e-06 second per centimetre\n",
+ "conductivity when donor atom added to extent of 1 impurity = 0.104 second per centimetre\n",
+ "conductivity when acceptor added to extent of 1 impurity = 0.040 second per centimetre\n"
+ ]
+ }
+ ],
+ "source": [
+ "ni=1.5*10**10##per cubic centimetre\n",
+ "moe=1300##square centimetre/velocity second\n",
+ "mo1=500##square centimetre/velocity second\n",
+ "w=5*10**22##atoms per cubic centimetre\n",
+ "q=1.6*10**-19#\n",
+ "#(a) conductivity intrinisc at 300kelvin\n",
+ "conduc=ni*q*(moe+mo1)##conductivity\n",
+ "u=((ni)/(5*10**14))#\n",
+ "ni=5*10**14#\n",
+ "#(b)conductivity when donor atom added to extent of 1 impurity\n",
+ "condu1=ni*q*moe#\n",
+ "print \"conductivity intrinisc at 300kelvin = %0.2e\"%((conduc)),\"second per centimetre\"#\n",
+ "print \"conductivity when donor atom added to extent of 1 impurity = %0.3f\"%((condu1)),\"second per centimetre\"#\n",
+ "#conductivity when acceptor added to extent of 1 impurity\n",
+ "conduc=ni*q*mo1#\n",
+ "print \"conductivity when acceptor added to extent of 1 impurity = %0.3f\"%((conduc)),\"second per centimetre\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 28 example 5"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "conductivity intrinisc at 300kelvin = 0.022 second per centimetre\n",
+ "conductivity with donor impurity 1 = 27.36 second per centimetre\n",
+ "conductivity with acceptor impurity 1 = 2.88e-09 second per centimetre\n",
+ "conductivity on both = 24.62 second per centimetre\n"
+ ]
+ }
+ ],
+ "source": [
+ "ni=2.5*10**13##per cubic centimetre\n",
+ "moe=3800##square centimetre/velocity second\n",
+ "mo1=1800##square centimetre/velocity second\n",
+ "w=4.5*10**22##atoms per cubic centimetre\n",
+ "q=1.6*10**-19#\n",
+ "#(1) conductivity intrinisc at 300kelvin\n",
+ "conduc=ni*q*(moe+mo1)#\n",
+ "u=10**6#\n",
+ "u=((w)/(u))#\n",
+ "#(2) conductivity with donor impurity 1\n",
+ "condu1=u*q*moe#\n",
+ "print \"conductivity intrinisc at 300kelvin = %0.3f\"%((conduc)),\"second per centimetre\"#\n",
+ "print \"conductivity with donor impurity 1 = %0.2f\"%((condu1)),\"second per centimetre\"#\n",
+ "u=10**7#u=w/u#\n",
+ "#(3) conductivity with acceptor impurity 1\n",
+ "conduc=u*q*mo1#\n",
+ "print \"conductivity with acceptor impurity 1 = %0.2e\"%((conduc)),\"second per centimetre\"#\n",
+ "u=0.9*(w/10**6)#\n",
+ "#(4) conductivity on both\n",
+ "conduc=u*q*moe#\n",
+ "print \"conductivity on both = %0.2f\"%((conduc)),\"second per centimetre\"#"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 29 example 6"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "fermi = 0.33 electron volt\n",
+ "fermi below the conduction band\n"
+ ]
+ }
+ ],
+ "source": [
+ "ferlev=0.3##electron volt\n",
+ "u=300##kelvin\n",
+ "u1=330##kelvin\n",
+ "ferlev=ferlev*u1/u#\n",
+ "print \"fermi = %0.2f\"%((ferlev)),\"electron volt\"#\n",
+ "print \"fermi below the conduction band\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 29 example 7"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "fermi = 0.17 electron volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import log\n",
+ "ferlev=0.02##electron volt\n",
+ "q=4##donor impurity added\n",
+ "w=0.025##electron volt\n",
+ "ferlev=-((log(q)-8))/40#\n",
+ "print \"fermi = %0.2f\"%((ferlev)),\"electron volt\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 30 example 8"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 8,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "resistance = 1570.39 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from sympy import symbols, solve\n",
+ "area=1.5*10**-2##centimetre square\n",
+ "w=1.6##centimetre\n",
+ "resist=20##ohm centimetre\n",
+ "durati=60*10**-6##second in book given as mili\n",
+ "quanti=8*10**15##photons per second\n",
+ "\n",
+ "\n",
+ "#(1) resistance at each photon gives a electron hole pair\n",
+ "up=1800##centimetre square per velocity second\n",
+ "un=3800##centimetre square per velocity second\n",
+ "q=1.6*10**-19##coulomb\n",
+ "ni=2.5*10**13##per cubic centimetre\n",
+ "sigma1=1/resist#\n",
+ "z1=3800#\n",
+ "z=-sigma1/q#\n",
+ "u=ni**2/up#\n",
+ "#n=poly([(z1) z u],'n')#\n",
+ "n=symbols('n')\n",
+ "expr=z1*n**2+z*n+u\n",
+ "n=solve(expr,n)[1]\n",
+ "n=7.847*10**13##n>ni taken so it is admissible\n",
+ "p1=ni**2/n#\n",
+ "volume=w*area#\n",
+ "nchang=quanti*durati/volume#\n",
+ "pchang=nchang#\n",
+ "sigm11=q*((n+nchang)*un+(pchang+p1)*up)#\n",
+ "resis1=1/sigm11#\n",
+ "r1=resis1*w/area#\n",
+ "print \"resistance = %0.2f\"%((r1)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 31 example 9"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 9,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "concentration of electron = 8660254037.84 per cubic centimetre\n",
+ "concentration of holes = 25980762113.53 per cubic centimetre\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "from math import sqrt\n",
+ "moe=1350##square centimetre/velocity second\n",
+ "mo1=450##square centimetre/velocity second\n",
+ "ni=1.5*10**10##per cubic centimetre\n",
+ "concn1=ni*((sqrt(mo1/moe)))##concentration\n",
+ "concne=((ni**2)/(concn1))\n",
+ "\n",
+ "print \"concentration of electron = %0.2f\"%((concn1)),\"per cubic centimetre\"#\n",
+ "print \"concentration of holes = %0.2f\"%((concne)),\"per cubic centimetre\"#"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 32 example 10"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 10,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "concentration of hole = 1.09e+21 per cubic centimetre\n",
+ "concentration of electron = 2.07e+11 per cubic centimetre\n"
+ ]
+ }
+ ],
+ "source": [
+ "resist=0.12##ohm metre\n",
+ "q=1.6*10**-19#\n",
+ "concn1=((1/resist)/(0.048*q))##concentration of hole\n",
+ "concne=((1.5*10**16)**(2))/concn1##concentration of electron\n",
+ "print \"concentration of hole = %0.2e\"%((concn1)),\"per cubic centimetre\"#\n",
+ "print \"concentration of electron = %0.2e\"%((concne)),\"per cubic centimetre\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 32 example 11"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 11,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "concentration of acceptor atoms = 6.25e+19 per cubic metre\n"
+ ]
+ }
+ ],
+ "source": [
+ "resist=1*10**3##ohm\n",
+ "w=20*10**-6##wide metre\n",
+ "w1=400*10**-6##long metre\n",
+ "mo1=500##square centimetre/velocity second\n",
+ "q=1.6*10**-19#\n",
+ "conduc=(resist*w*4*10**-6)/w1#\n",
+ "concentration=((1)/(conduc*mo1*q))#\n",
+ "print \"concentration of acceptor atoms = %0.2e\"%((concentration)),\"per cubic metre\"##correction in the book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 32 example 12"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 12,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "dn constants = 98.80 square metre per second\n",
+ "dp constants = 33.80 square metre per second\n"
+ ]
+ }
+ ],
+ "source": [
+ "w=0.026#\n",
+ "moe=3800##square centimetre/velocitysecond\n",
+ "mo1=1300##square centimetre/velocitysecond\n",
+ "u=(moe*w)#\n",
+ "u1=(mo1*w)#\n",
+ "print \"dn constants = %0.2f\"%((u)),\"square metre per second\"##correction in the book\n",
+ "print \"dp constants = %0.2f\"%((u1)),\"square metre per second\"##correction in the book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 33 example 13"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 13,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "distance of fermi level from center = 0.021 electron volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import log\n",
+ "w=0.026*(3/2)*log(3)/2#\n",
+ "print \"distance of fermi level from center = %0.3f\"%((w)),\" electron volt\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 33 example 14"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 14,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "resistivity = 44.64 ohm centimetre\n",
+ "resistivity equal to 45\n",
+ "resistivity = 32.42 ohm centimetre\n",
+ "resistivity equal to 32.4\n"
+ ]
+ }
+ ],
+ "source": [
+ "up=1800##centimetre square per velocity second\n",
+ "un=3800##centimetre square per velocity second\n",
+ "\n",
+ "#(1) resistivity is 45 ohm\n",
+ "q=1.6*10**-19##coulomb\n",
+ "ni=2.5*10**13#\n",
+ "sigma1=(un+up)*q*ni#\n",
+ "resist=1/sigma1#\n",
+ "print \"resistivity = %0.2f\"%((resist)),\" ohm centimetre\"#\n",
+ "print \"resistivity equal to 45\"#\n",
+ "#(2) impurity added to extent of 1 atom per 10**9\n",
+ "n=4.4*10**22/10**9\n",
+ "p1=ni**2/n#\n",
+ "sigma1=(n*un+p1*up)*q#\n",
+ "resist=1/sigma1\n",
+ "print \"resistivity = %0.2f\"%((resist)),\" ohm centimetre\"#\n",
+ "print \"resistivity equal to 32.4\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 34 example 15"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 15,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "concentration of the a free electrons = 1.05e+04\n",
+ "concentration of the a free holes = 1.00e+14\n",
+ "sample p\n",
+ "n = 1.00e+15 electrons per cubic centimetre\n",
+ "p = 1.10e+15 holes per cubic centimetre\n",
+ "essentially intrinsic\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "from sympy import symbols, solve, exp\n",
+ "nd=4*10**14##atoms per cubic centimetre\n",
+ "na=5*10**14##atoms per cubic centimetre\n",
+ "#(1) concentration\n",
+ "ni=2.5*10**13#\n",
+ "np=ni**2#\n",
+ "#p1=n+10**14\n",
+ "z=1#\n",
+ "z1=10**14#\n",
+ "u=-ni**2#\n",
+ "#n=poly([z z1 u],'q')#\n",
+ "n=symbols('n')\n",
+ "expr = z*n**2+z1*n+u\n",
+ "n = solve(expr,n)[1]\n",
+ "n=1.05*10**4#\n",
+ "print \"concentration of the a free electrons = %0.2e\"%((n))\n",
+ "p1=n+10**14#\n",
+ "print \"concentration of the a free holes = %0.2e\"%((p1))\n",
+ "#(2)\n",
+ "print \"sample p\"#\n",
+ "a=ni**2/(300**3*exp(-(0.785/0.026)))#\n",
+ "w=400##kelvin\n",
+ "ni=sqrt(a*w**3*exp(-0.786/(8.62*10**-5*w)))#\n",
+ "ni=((n)*(n+10**14))/10**3#\n",
+ "n=ni-0.05*10**15#\n",
+ "print \"n = %0.2e\"%((n)),\"electrons per cubic centimetre\"\n",
+ "p1=n+10**14#\n",
+ "print \"p = %0.2e\"%((p1)),\"holes per cubic centimetre\"\n",
+ "\n",
+ "print \"essentially intrinsic\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 35 example 16"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 16,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "concentration of n = 6.00e+08 electrons per cubic centimetre\n",
+ "concentration of holes = 1.04e+18 holes per cubic centimetre\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "w=300##kelvin\n",
+ "conduc=300##ohm centimetre inverse\n",
+ "u=1800#\n",
+ "p=conduc/(u*1.6*10**-19)##concentration holes\n",
+ "n=(2.5*10**13)**2/(p)#\n",
+ "print \"concentration of n = %0.2e\"%((n)),\"electrons per cubic centimetre\"\n",
+ "print \"concentration of holes = %0.2e\"%((p)),\"holes per cubic centimetre\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 35 example 17"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 17,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "current density = 0.17 ampere per square centimetre\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "from sympy import symbols, solve\n",
+ "nd=10**14##atoms per cubic centimetre\n",
+ "na=5*10**13##atoms per cubic centimetre\n",
+ "un=3800#\n",
+ "up=1800#\n",
+ "q=1.6*10**-19##coulomb\n",
+ "resist=80##ohm metre\n",
+ "e1=5##volt per metre\n",
+ "w=nd-na#\n",
+ "ni=(un+up)*q*resist#\n",
+ "n=symbols('n')\n",
+ "#p1=oly([1 w -ni**2],'q')#\n",
+ "expr = n**2+w*n-ni**2\n",
+ "##p1=taken as 3.65*19**12\n",
+ "p1=solve(expr, p1)\n",
+ "p1=3.65*10**12#\n",
+ "n=p1+w#\n",
+ "j=(n*un+p1*up)*q*e1#\n",
+ "print \"current density = %0.2f\"%((j)),\"ampere per square centimetre\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 36 example 18"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 18,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "resistivity = 1.25 ohm centimetre\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "na=1*10**16##per cubic centimetre correction in the book\n",
+ "ni=1.48*10**10##per cubic centimetre\n",
+ "un=0.13*10**4##centimetre square per velocity second\n",
+ "u=0.05*10**4##centimetre square per velocity second\n",
+ "n=ni**2/na#\n",
+ "q=1/(1.6*10**-19*(un*n+(u*na)))#\n",
+ "print \"resistivity = %0.2f\"%((q)),\"ohm centimetre\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 37 example 19"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 19,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage across sample = 9.38 volt\n",
+ "drift velocity = 37.50 metre per second\n",
+ "transverse force per coulomb = 1.88 newton per coulomb\n",
+ "transverse electric field = 1.88 volt per metre\n",
+ "hall voltage = 0.02 volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "e1=750##volt per metre\n",
+ "b=0.05##metre square per velocity second\n",
+ "un=0.05##metre square per velocity second\n",
+ "up=0.14##metre square per velocity second\n",
+ "#(1) voltage\n",
+ "w=1.25*10**-2##metre\n",
+ "v1=e1*w#\n",
+ "print \"voltage across sample = %0.2f\"%((v1)),\"volt\"#\n",
+ "#(2) drift velocity\n",
+ "vd=un*e1#\n",
+ "print \"drift velocity = %0.2f\"%((vd)),\"metre per second\"#\n",
+ "#transverse force per coulomb\n",
+ "f1=vd*b#\n",
+ "print \"transverse force per coulomb = %0.2f\"%((f1)),\"newton per coulomb\"#\n",
+ "#(4) transverse electric field\n",
+ "e1=vd*b#\n",
+ "print \"transverse electric field = %0.2f\"%((e1)),\"volt per metre\"#\n",
+ "#(5) hall voltage\n",
+ "q=0.9*10**-2#\n",
+ "vh=e1*q\n",
+ "print \"hall voltage = %0.2f\"%((vh)),\"volt\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 37 example 20"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 20,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "resistivity at 300kelvin = 2.31e+05 ohm centimetre\n",
+ "resistivity at impurity of 1 atom included per 10**5 atoms = 0.010 ohm centimetre\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "un=1300##centimetre square per velocity second\n",
+ "#at 300kelvin\n",
+ "ni=1.5*10**10#\n",
+ "u=500##centimetre square per velocity second\n",
+ "conduc=1.6*10**-19*1.5*10**10*(un+u)#\n",
+ "q=1/conduc#\n",
+ "#impurity of 1 atom included per 10**5 atoms\n",
+ "print \"resistivity at 300kelvin = %0.2e\"%((q)),\"ohm centimetre\"#\n",
+ "n=5*10**22/10**5#\n",
+ "p=ni**2/n#\n",
+ "q=1/(1.6*10**-19*(un*n+(u*p)))\n",
+ "\n",
+ "print \"resistivity at impurity of 1 atom included per 10**5 atoms = %0.3f\"%((q)),\"ohm centimetre\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 38 example 21"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 21,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "ec-ef = -0.20\n",
+ "ec-ef = 0.04 electron volt ef above ec\n",
+ "impurities included per germanium atoms = 0.0002\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "from math import sqrt, log, log10\n",
+ "n=4.4*10**22#\n",
+ "nd=n/10**7#\n",
+ "w=300##kelvin\n",
+ "nc=4.82*10**15*w**(3/2)/1/sqrt(8)#\n",
+ "ec_ef1=-0.026*log((nc/(nd)))#\n",
+ "print \"ec-ef = %0.2f\"%((ec_ef1))\n",
+ "#(2) impurities included inratio 1 to 10**3\n",
+ "n=4.4*10**22#\n",
+ "nd=n/(10**3)#\n",
+ "ec_ef1=-0.026*log(nc/nd)#\n",
+ "print \"ec-ef = %0.2f\"%((ec_ef1)),\"electron volt ef above ec\"#\n",
+ "q=log10(nd/nc)/log10(10)#\n",
+ "print \"impurities included per germanium atoms = 0.0002\"#"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 39 example 22"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 22,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "ef-ec = 0.15 electron volt\n",
+ "ef-ec = 0.03 electron volt\n",
+ "temperature = 240.33 kelvin\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "from math import log\n",
+ "n=5*10**22##atoms per cubic centimetre\n",
+ "#(1) 1 atom per 10**6\n",
+ "m=0.8##metre\n",
+ "na=n/10**6#\n",
+ "w=300##kelvin\n",
+ "nv=4.82*10**15*(m)**(3/2)*w**(3/2)#\n",
+ "ef_ec=0.026*log(nv/na)#\n",
+ "print \"ef-ec = %0.2f\"%((ef_ec)),\"electron volt\"#\n",
+ "#(2) impurity included 10*10**3 per atom\n",
+ "na=n/(10*10**3)#\n",
+ "ef_ec=0.026*log(nv/na)#\n",
+ "print \"ef-ec = %0.2f\"%((ef_ec)),\"electron volt\"#\n",
+ "#(3) condition to concide ec=ef\n",
+ "na=4.81*10**15#\n",
+ "w=(nv/na)**(2/3)#\n",
+ "print \"temperature = %0.2f\"%((w)),\"kelvin\"##correction in the book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 40 example 23 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 23,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "hall voltage = 0.17 volt\n",
+ "remains the same but there change in polarity\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "#figure is not given in the book\n",
+ "nd=10**7##per cubic centimetre\n",
+ "na=10**17##per cubic centimetre\n",
+ "voltag=0.1*3800*10**-4*1500*3*10**-3#\n",
+ "print \"hall voltage = %0.2f\"%((voltag)),\"volt\"#\n",
+ "print \"remains the same but there change in polarity\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 40 example 24"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 24,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "mobilty = 0.12 metre square per velocity second\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "vh=60*10**-3##volt\n",
+ "w=6*10**-3##metre\n",
+ "bz=0.1##weber per metre square\n",
+ "i1=10*10**-6##ampere\n",
+ "resist=300000*10**-2##ohm metre\n",
+ "#(1)\n",
+ "#mobility\n",
+ "rh=vh*w/(bz*i1)#\n",
+ "u1=rh/resist#\n",
+ "print \"mobilty = %0.2f\"%((u1)),\"metre square per velocity second\""
+ ]
+ }
+ ],
+ "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.9"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}
diff --git a/Electronic_Devices_and_Circuits_by_J._Paul/Ch2_1.ipynb b/Electronic_Devices_and_Circuits_by_J._Paul/Ch2_1.ipynb
new file mode 100644
index 00000000..c4421823
--- /dev/null
+++ b/Electronic_Devices_and_Circuits_by_J._Paul/Ch2_1.ipynb
@@ -0,0 +1,851 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 2 - Semiconductor Diodes"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 99 example 1"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "ratio of reverse saturation current = 4963.36\n"
+ ]
+ }
+ ],
+ "source": [
+ "q=0.01##centimetre\n",
+ "sigma1=1##ohm centimetre inverse\n",
+ "q1=0.01##centimetre\n",
+ "sigm11=0.01##ohm centimetre inverse\n",
+ "iratio=(0.0224**2*2.11*20)*3.6**2/((3.11*(4.3**2*10**-6)**2*2.6*20*10**3))#\n",
+ "for q in range(0,2):\n",
+ " if q==1:\n",
+ " un=3800#\n",
+ " up=1500#\n",
+ " q=1.6*10**-19#\n",
+ " ni=2.5*10#\n",
+ " else:\n",
+ " q=1.6*10**-19#\n",
+ " up=500\n",
+ " un=1300#\n",
+ " ni=1.5*10\n",
+ "\n",
+ " \n",
+ " b=un/up#\n",
+ " sigmai=(un+up)*q*ni#\n",
+ "\n",
+ "print \"ratio of reverse saturation current = %0.2f\"%((iratio))\n",
+ "##correction required in the book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 100 example 2"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "reverse current ratio = 7.79e-09\n"
+ ]
+ }
+ ],
+ "source": [
+ "sigma1=0.01##ohm centimetre inverse\n",
+ "area11=4*10**-3##metre square\n",
+ "q=0.01*10**-2##metre\n",
+ "un=1300.0#\n",
+ "up=500.0#\n",
+ "ni=1.5*10**15##per cubic centimetre\n",
+ "sigma1=(un+up)*1.6*10**-19*ni#\n",
+ "iratio=(4*10**-10*0.026*sigma1**2*2.6*2/10**-4)/3.6**2#\n",
+ "print \"reverse current ratio = %0.2e\"%((iratio))\n",
+ "##correction required in the book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 100 example 3"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "reverse saturation current = 3.48e-06 ampere\n"
+ ]
+ }
+ ],
+ "source": [
+ "a=4*10**-4##metre square\n",
+ "sigmap=1#\n",
+ "sigman=0.1#\n",
+ "de=0.15#\n",
+ "vtem=26*10**-3#\n",
+ "i=(a*vtem*((2.11)*(0.224))/((3.22)**(2)))*((1/de*sigman)+(1/de*sigmap))#\n",
+ "print \"reverse saturation current = %0.2e\"%(i),\"ampere\"#correction in the book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 101 example 4"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage at which the reverse saturation current at saturate = -0.06 volt\n",
+ "reverse saturation current = -6.84 ampere\n",
+ "reverse saturation current 0.10 = 0.000 ampere\n",
+ "reverse saturation current 0.20 = 0.022 ampere\n",
+ "reverse saturation current 0.30 = 1.026 ampere\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import log, exp\n",
+ "w=0.9#\n",
+ "voltaf=0.05##volt\n",
+ "revcur=10*10**-6##ampere\n",
+ "#(1) voltage\n",
+ "volrev=0.026*(log((-w+1)))##voltage at which the reverse saturation current at saturate\n",
+ "resacu=((exp(voltaf/0.026)-1)/((exp(-voltaf/0.026)-1)))##reverse saturation current\n",
+ "print \"voltage at which the reverse saturation current at saturate = %0.2f\"%((volrev)),\"volt\"\n",
+ "print \"reverse saturation current = %0.2f\"%((resacu)),\"ampere\"\n",
+ "u=0.1#\n",
+ "for q in range(0,3):\n",
+ " reverc=revcur*(exp((u/0.026))-1)\n",
+ " print \"reverse saturation current %0.2f\"%((u)),\" = %0.3f\"%((reverc)),\"ampere\"\n",
+ " u=u+0.1#\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 103 example 6"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "capacitance = 7.08e-11 farad\n"
+ ]
+ }
+ ],
+ "source": [
+ "a=1*10**-6##metre square\n",
+ "w=2*10**-6##thick centimetre\n",
+ "re=16#\n",
+ "eo=8.854*10**-12#\n",
+ "c=(eo*re*a)/w#\n",
+ "print \"capacitance = %0.2e\"%(c),\"farad\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 105 example 7"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "width of depletion layer at -10.00 = 7.73e-06 metre\n",
+ "width of depletion layer at -0.10 = 1.33e-06 metre\n",
+ "width of depletion layer at 0.10 = 7.65e-07 metre\n",
+ "capacitance at -10.00 = 1.57e-11 farad\n",
+ "capacitance at -0.10 = 9.13e-11 farad\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "volbar=0.2##barrier voltage for germanium volt\n",
+ "na=3*10**20##atoms per metre\n",
+ "#(1) width of depletion layer at 10 and 0.1 volt\n",
+ "\n",
+ "for q in [-10, -0.1, 0.1]:\n",
+ " w=2.42*10**-6*sqrt((0.2-(q)))#\n",
+ " print \"width of depletion layer at %0.2f\"%((q)),\" = %0.2e\"%((w)),\"metre\"#for -0.1volt correction in the book\n",
+ "\n",
+ "#(d) capacitance\n",
+ "for q in [-10, -0.1]:\n",
+ " capaci=0.05*10**-9/sqrt(0.2-q)#\n",
+ " print \"capacitance at %0.2f\"%((q)),\" = %0.2e\"%((capaci)),\"farad\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 104 example 8"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "maximum forward current = 2.22 ampere\n",
+ "forward diode resistance = 0.40 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "p=2##watts\n",
+ "voltaf=900*10**-3##volt\n",
+ "i1=p/voltaf#\n",
+ "r1=voltaf/i1#\n",
+ "print \"maximum forward current = %0.2f\"%(i1),\"ampere\"\n",
+ "\n",
+ "\n",
+ "print \"forward diode resistance = %0.2f\"%(r1),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 108 example 11"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 8,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "alpha = 104.86 degree\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import atan, degrees\n",
+ "r=250##ohm\n",
+ "c=40*10**-6##farad\n",
+ "alpha1=180-degrees(atan(377*r*c))\n",
+ "print \"alpha = %0.2f\"%(alpha1),\"degree\" "
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 109 example 12"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 9,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "inductance = 3022899.27 henry\n",
+ "output voltage = 31.03 volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "i1=0.1##current in ampere\n",
+ "vms=40##rms voltage in volts\n",
+ "c=40*10**-6##capacitance in farad\n",
+ "r1=50##resistance in ohms\n",
+ "ripple=0.0001#\n",
+ "induct=((1.76/c)*sqrt(0.472/ripple))##inductance\n",
+ "outv=(2*sqrt(2)*vms)/3.14-i1*r1##output voltage\n",
+ "print \"inductance = %0.2f\"%(induct),\"henry\"#correction in the book\n",
+ "print \"output voltage = %0.2f\"%(outv),\"volt\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 109 example 14"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 10,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "ripple voltage = 0.093 volt\n",
+ "ripple voltage including filters = 118.49 volt\n",
+ "ripple voltage = 0.0040 volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "voltag=40##volt\n",
+ "i1=0.2##ampere\n",
+ "c1=40*10**-6##farad\n",
+ "c2=c1#\n",
+ "induct=2##henry\n",
+ "#(1) ripple\n",
+ "vdc=2*sqrt(2)*voltag/3.14#\n",
+ "r1=vdc/i1#\n",
+ "induc1=r1/1130#\n",
+ "v1=voltag/(3*3.14**3*120**2*4*induct*c1)#\n",
+ "print \"ripple voltage = %0.3f\"%((v1)),\"volt\"\n",
+ "#(2) with two filter\n",
+ "v1=4*voltag/((3*3.14**5)*(16*120**2*induct**2*c1**2))#\n",
+ "print \"ripple voltage including filters = %0.2f\"%((v1)),\"volt\"#correction in the book\n",
+ "#(3)ripple voltage\n",
+ "v1=4*voltag/(5*3.14*1.414*2*3.14*240*240*3.14*induct*c1)#\n",
+ "v1=v1/20#\n",
+ "print \"ripple voltage = %0.4f\"%((v1)),\"volt\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 111 example 15"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 11,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage and ripple with load\n",
+ "vdc = 250.21 volt\n",
+ "ripple = 3.13e-02\n",
+ "capacitance connected across load\n",
+ "vdc = 497.91 volt\n",
+ "ripple = 3.76e-02\n",
+ "filter containing two inductors and capacitors in parallel\n",
+ "vdc = 250.00 volt\n",
+ "ripple = 6.48e-04\n",
+ "two filter\n",
+ "vdc = 250.00 volt\n",
+ "ripple = 4.76e-06\n",
+ "vdc = 358.26 volt\n",
+ "ripple = 1.61e-04\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "from math import sqrt\n",
+ "voltag=375##volt\n",
+ "r1=2000##ohm\n",
+ "induct=20##henry\n",
+ "c1=16*10**-6##farad\n",
+ "r11=100##ohm\n",
+ "r=200##ohm\n",
+ "#(1) voltage and ripple with load\n",
+ "print \"voltage and ripple with load\"\n",
+ "r=r+r11+400#\n",
+ "vdc=((2*sqrt(2)*voltag/3.14))/1.35#\n",
+ "ripple=r1/(3*sqrt(2)*(377)*induct*2)#\n",
+ "print \"vdc = %0.2f\"%((vdc)),\"volt\"\n",
+ "print \"ripple = %0.2e\"%((ripple))\n",
+ "#(2) capacitance connected across load\n",
+ "print \"capacitance connected across load\"\n",
+ "vdc=sqrt(2)*voltag/(1+1/(4*(60)*r1*2*c1))#\n",
+ "ripple=1/(4*sqrt(3)*(60)*r1*2*c1)#\n",
+ "print \"vdc = %0.2f\"%((vdc)),\"volt\"\n",
+ "print \"ripple = %0.2e\"%((ripple))\n",
+ "#(3) filter containing two inductors and capacitors in parallel\n",
+ "print \"filter containing two inductors and capacitors in parallel\"\n",
+ "vdc=250##volt\n",
+ "ripple=0.83*10**-6/(2*induct*2*c1)##correction in the book\n",
+ "print \"vdc = %0.2f\"%((vdc)),\"volt\"\n",
+ "print \"ripple = %0.2e\"%((ripple))\n",
+ "#(4) two filter\n",
+ "print \"two filter\"\n",
+ "vdc=250#\n",
+ "ripple=sqrt(2)/(3*16*3.14**2*60**2*induct*c1)**2##correction in the book\n",
+ "print \"vdc = %0.2f\"%((vdc)),\"volt\"\n",
+ "print \"ripple = %0.2e\"%((ripple))\n",
+ "vdc=sqrt(2)*voltag/(1+(4170/(r1*16))+(r/r1))#\n",
+ "ripple=3300/(16**2*2*20*r1)#\n",
+ "print \"vdc = %0.2f\"%((vdc)),\"volt\"\n",
+ "print \"ripple = %0.2e\"%((ripple))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 112 example 16"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 12,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "output voltage = 362.14 volt\n",
+ "ripple voltage = 1.46e-03\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "capaci=4##farad\n",
+ "induct=20##henry\n",
+ "i1=50*10**-3##ampere\n",
+ "resist=200##ohm\n",
+ "maxvol=300*sqrt(2)#\n",
+ "vdc=maxvol-((4170/capaci)*(i1))-(i1*resist)#\n",
+ "ripple=(3300*i1)/((capaci**2)*(induct)*353)#\n",
+ "print \"output voltage = %0.2f\"%((vdc)),\"volt\"\n",
+ "print \"ripple voltage = %0.2e\"%((ripple))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 113 example 17"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 13,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "inductance of filter = 4.98 henry\n",
+ "resistance of filter = 250.00 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "voltag=25##volt\n",
+ "c1=10*10**-6##farad\n",
+ "i1=100*10**-3##ampere\n",
+ "ripple=0.001#\n",
+ "w=754##radians\n",
+ "#(1) inductance and resistance\n",
+ "\n",
+ "\n",
+ "r1=voltag/i1#\n",
+ "induct=40/(sqrt(2)*w**2*(c1))#\n",
+ "print \"inductance of filter = %0.2f\"%((induct)),\"henry\"#correction in the book\n",
+ "print \"resistance of filter = %0.2f\"%((r1)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 113 example 18"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 14,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "current = 2.83e-04 ampere\n",
+ "current at 100celsius rise\n",
+ "current = 6.81e-04 ampere\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import exp\n",
+ "resacu=0.1*10**-12##ampere\n",
+ "u=20+273##kelvin\n",
+ "voltaf=0.55##volt\n",
+ "w=1.38*10**-23#\n",
+ "q=1.6*10**-19#\n",
+ "for z in range(1,3):\n",
+ " if z==2 :\n",
+ " u=100+273#\n",
+ " print \"current at 100celsius rise\"\n",
+ " \n",
+ " voltag=w*u/q#\n",
+ " i1=(10**-13)*(exp((voltaf/voltag))-1)#\n",
+ " if z==2:\n",
+ " i1=(256*10**-13)*((exp(voltaf/voltag)-1))#\n",
+ " \n",
+ " print \"current = %0.2e\"%((i1)),\"ampere\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 114 example 19"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 15,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "thermal voltage = 0.026 volt\n",
+ "barrier voltage = 0.535 volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import log\n",
+ "na=10*22##atoms per cubic metre\n",
+ "nd=1.2*10**21##donor per cubic metre\n",
+ "voltag=1.38*10**-23*(273+298)/(1.6*10**-19)##correction in the book\n",
+ "voltag=0.026#\n",
+ "ni=1.5*10**16#\n",
+ "ni=ni**2#\n",
+ "v1=voltag*log((na*nd)/(ni))#\n",
+ "print \"thermal voltage = %0.3f\"%((voltag)),\"volt\"\n",
+ "print \"barrier voltage = %0.3f\"%(abs(v1)),\"volt\"#correction in the book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 114 example 20"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 16,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "current = 9.16e-06 ampere\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import exp\n",
+ "i1=2*10**-7##ampere\n",
+ "voltag=0.026##volt\n",
+ "i=i1*((exp(0.1/voltag)-1))#\n",
+ "print \"current = %0.2e\"%((i)),\"ampere\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 115 example 21"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 17,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "resistance at 150mvolt = 80.74 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import exp\n",
+ "resacu=1*10**-6##ampere\n",
+ "voltaf=150*10**-3##volt\n",
+ "w=8.62*10**-5#\n",
+ "voltag=0.026##volt\n",
+ "u=300##kelvin\n",
+ "uw=u*w#\n",
+ "resist=(uw)/((resacu)*exp(voltaf/voltag))#\n",
+ "print \"resistance at 150mvolt = %0.2f\"%((resist)),\"ohm\"#correction in the book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 115 example 22"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 18,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "change in barrier = 0.18 volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import log\n",
+ "dopfac=1000#\n",
+ "w=300##kelvin\n",
+ "q=0.026*log(dopfac)#\n",
+ "print \"change in barrier = %0.2f\"%((q)),\"volt\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 116 example 23"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 19,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "depletion capacitance = 1.09e-11 farad\n",
+ "capacitance = 3.85e-07 farad\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "area12=1*10**-8##metre square\n",
+ "volre1=-1##reverse voltage\n",
+ "capac1=5*10**-12##farad\n",
+ "volbu1=0.9##volt\n",
+ "voltag=0.5##volt\n",
+ "i1=10*10**-3##ampere\n",
+ "durmin=1*10**-6##ssecond\n",
+ "#(1) capacitance\n",
+ "capac1=capac1*sqrt((volre1-volbu1)/(voltag-volbu1))#\n",
+ "print \"depletion capacitance = %0.2e\"%((capac1)),\"farad\"\n",
+ "#(2) capacitance\n",
+ "capac1=i1*durmin/(0.026)#\n",
+ "\n",
+ "print \"capacitance = %0.2e\"%((capac1)),\"farad\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 116 example 24"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 20,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "potential germanium = 0.34 volt\n",
+ "potential silicon = 0.74 volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import log\n",
+ "quantg=4*10**22##atoms per cubic centimetre\n",
+ "quants=5*10**22##atoms per cubic centimetre\n",
+ "w=2.5*10**13##per cubic centimetre\n",
+ "w1=1.5*10**10##per cubic centimetre\n",
+ "for q in [quantg, quants]:\n",
+ " na=2*q/(10**8)\n",
+ " nd=500*na#\n",
+ " if q==quantg :\n",
+ " w=w#\n",
+ " voltag=0.026*log(na*nd/w**2)#\n",
+ " print \"potential germanium = %0.2f\"%((voltag)),\"volt\"\n",
+ " \n",
+ " if q==quants:\n",
+ " w=w1#\n",
+ " voltag=0.026*log(na*nd/w**2)#\n",
+ " print \"potential silicon = %0.2f\"%((voltag)),\"volt\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 117 example 25"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 21,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "electrons density = 9.62e+20 per cubic metre\n",
+ "holes density = 1.25e+23 per cubic metre\n"
+ ]
+ }
+ ],
+ "source": [
+ "u=0.05##metre square per velocity second correction in the book\n",
+ "un=0.13##metre square per velocity second\n",
+ "condun=20##second per metre conductivity of n region\n",
+ "condup=1000##second per metre conductivity of p region\n",
+ "p=condup/(1.6*10**-19*u)#\n",
+ "no=condun/(1.6*10**-19*un)#\n",
+ "print \"electrons density = %0.2e\"%((no)),\"per cubic metre\"\n",
+ "print \"holes density = %0.2e\"%((p)),\"per cubic metre\"#others to find is not in the book"
+ ]
+ }
+ ],
+ "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.9"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}
diff --git a/Electronic_Devices_and_Circuits_by_J._Paul/Ch3_1.ipynb b/Electronic_Devices_and_Circuits_by_J._Paul/Ch3_1.ipynb
new file mode 100644
index 00000000..3939306a
--- /dev/null
+++ b/Electronic_Devices_and_Circuits_by_J._Paul/Ch3_1.ipynb
@@ -0,0 +1,261 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 3 - Special Semiconductor Diodes "
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 138 example 1"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "resistance range from 196.00 to 217.78 ohms\n",
+ "resistance range at 50 from 146.00 to 167.78 ohms\n"
+ ]
+ }
+ ],
+ "source": [
+ "#zener diode\n",
+ "voltag=5.2##volts\n",
+ "w=260*10**-3##watts\n",
+ "appv=15##voltsw1=50##watts\n",
+ "imax=w/voltag*0.1#\n",
+ "#to maitain a constant voltage\n",
+ "imax1=(w/voltag)-imax#\n",
+ "resmin=(appv-voltag)/(w/voltag)#\n",
+ "resmax=(appv-voltag)/imax1#\n",
+ "#load 50\n",
+ "resmax1=((9.8)/(45*10**-3))-50#\n",
+ "resmin1=((9.8)/(50*10**-3))-50#\n",
+ "res50=resmax1-resmin1#\n",
+ "print \"resistance range from %0.2f\"%(resmin),\" to %0.2f\"%(resmax),\"ohms\"\n",
+ "print \"resistance range at 50 from %0.2f\"%(resmin1),\" to %0.2f\"%(resmax1),\"ohms\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 139 example 2"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage drop = 5.67volts\n"
+ ]
+ }
+ ],
+ "source": [
+ "i1=20*10**-3##ampere\n",
+ "i=30*10**-3##ampere\n",
+ "v1=5.6##volts\n",
+ "v=5.65##volts\n",
+ "#condition\n",
+ "u=35*10**-3##ampere\n",
+ "voltag=5*u+5.5#\n",
+ "print \"voltage drop = %0.2f\"%(voltag)+\"volts\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 139 example 3 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "fi0 = 4.96\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import log\n",
+ "v=4.3##volt\n",
+ "q=4##volt\n",
+ "dop=10**17##per cubic centimetre\n",
+ "fi0=0.254*log(dop/(5.1*10**10))#\n",
+ "fi01=0.407+q+0.55#\n",
+ "print 'fi0 = %0.2f'%(fi01)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 140example 4 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "current = 9.95e-05 ampere\n",
+ "resistance = 1.61e+05 ohm\n",
+ "r1 = 1.60e+05 ohm\n",
+ "r2 = 4.02e+04 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "v1=20##volt\n",
+ "i1=((v1)/(200+1))*10**-3#\n",
+ "print 'current = %0.2e'%(i1),'ampere'\n",
+ "#greater than 20\n",
+ "vone=16#\n",
+ "r=vone/i1#\n",
+ "r1=r-1*10**3#\n",
+ "r11=200*10**3-r1#\n",
+ "print 'resistance = %0.2e'%(r),'ohm'\n",
+ "print \"r1 = %0.2e\"%((r1)),\"ohm\"\n",
+ "print \"r2 = %0.2e\"%((r11)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 142 example 6 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "maximum current = 0.035 ampere\n",
+ "v1 minimum = 262.50 volt\n",
+ "v1 maximum = 393.75 volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "v1=150##volt\n",
+ "vone=300#volt\n",
+ "idmax=40*10**-3##ampere\n",
+ "idmin=5*10**-3##ampere\n",
+ "r=(vone-v1)/idmax#\n",
+ "imax=idmax-idmin#\n",
+ "print 'maximum current = %0.3f'%(imax),'ampere'\n",
+ "#minimum\n",
+ "zq=1#\n",
+ "while (zq<=2):\n",
+ " if zq==1 :\n",
+ " ione=25*10**-3#\n",
+ " i1=ione+idmin#\n",
+ " vmin=(i1*r)+v1#\n",
+ " print 'v1 minimum = %0.2f'%(vmin),'volt'\n",
+ " else:\n",
+ " ione=25*10**-3#\n",
+ " i1=ione+idmax#\n",
+ " vmin=(i1*r)+v1#\n",
+ " print 'v1 maximum = %0.2f'%(vmin),'volt'\n",
+ " \n",
+ " \n",
+ " zq=zq+1#\n",
+ " "
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 142 example 7"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "width = 2.22e-08 metre\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "q=4.5*10**22##atoms per cubic metre\n",
+ "na=q/(10**4)#\n",
+ "eo=0.026*24.16#\n",
+ "e=1.6*10**-19#\n",
+ "W=sqrt((4*16*0.628)/(36*3.14*10**9*na*10**6*e))#\n",
+ "print 'width = %0.2e'%(W),'metre'"
+ ]
+ }
+ ],
+ "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.9"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}
diff --git a/Electronic_Devices_and_Circuits_by_J._Paul/Ch4_1.ipynb b/Electronic_Devices_and_Circuits_by_J._Paul/Ch4_1.ipynb
new file mode 100644
index 00000000..de047efc
--- /dev/null
+++ b/Electronic_Devices_and_Circuits_by_J._Paul/Ch4_1.ipynb
@@ -0,0 +1,1732 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 4 - Bipolar Junction Transistor"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 201 example 1"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "r1 = 19990.91 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "alpha=0.98#\n",
+ "vbe=0.7##base emitter voltage volt\n",
+ "ie=-4*10**-3##emitter current\n",
+ "vc=12##colector voltage volt\n",
+ "colr=3.3*10**3##ohms\n",
+ "colCurrent=ie*(-alpha)#\n",
+ "baseCurrent=0.02*ie#\n",
+ "vbn=vbe+(-4*10**-3*100)#\n",
+ "i2=-vbn/(10*10**3)#\n",
+ "i1=-(baseCurrent+i2)#\n",
+ "vcn=(vc-((colCurrent+i1)*colr))#\n",
+ "v1=vcn-0.9#\n",
+ "r1=v1/i1#\n",
+ "print \"r1 = %0.2f\"%(abs(r1)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 202 example 2"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "rb = 21500.00 ohm\n",
+ "rc = 700.00 ohm\n",
+ "rb at emitter resistance 100ohm = 18950.00 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "colvoltag=12##volts\n",
+ "vbe=5##volts\n",
+ "colcur=10*10**-3##ampere\n",
+ "vce=5##volts\n",
+ "beta1=50#\n",
+ "ib=colcur/beta1#\n",
+ "rb=(vbe-0.7)/ib#\n",
+ "rc=(12-vbe)/colcur#\n",
+ "#when 100ohm included\n",
+ "print \"rb = %0.2f\"%(rb),\"ohm\"\n",
+ "print \"rc = %0.2f\"%(rc),\"ohm\"\n",
+ "rb=(vce-0.7-(colcur+ib)*beta1)/ib#\n",
+ "\n",
+ "print \"rb at emitter resistance 100ohm = %0.2f\"%(rb),\"ohm\"#correction in the book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 205 example 5"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "max resistance = 76562.50 ohm\n",
+ "baseresistance = 100000.00 ohm\n",
+ "temperature = 46.70 celsius\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import log\n",
+ "#given\n",
+ "reveri=2*10**-6##ampere at 25\n",
+ "icb=2*10**-6*2**5##ampere at 75\n",
+ "basevoltag=5##volt\n",
+ "#(1)\n",
+ "rb=(-0.1+basevoltag)/(icb)#\n",
+ "print \"max resistance = %0.2f\"%((rb)),\"ohm\"#correction in the book\n",
+ "#(2)\n",
+ "basevoltag=1#\n",
+ "rb=100*10**3#\n",
+ "reveri=(-0.1+basevoltag)/rb#\n",
+ "q=reveri/(2*10**-6)#\n",
+ "w=q**10#\n",
+ "u=log(w)\n",
+ "t=25+(u/log((2)))#\n",
+ "print \"baseresistance = %0.2f\"%((rb)),\"ohm\"\n",
+ "print \"temperature = %0.2f\"%((t)),\"celsius\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 205 example 6"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "min resistance = 3769.23 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "#given\n",
+ "vbe=0.8##volt\n",
+ "beta1=100#\n",
+ "vce=0.2##volt\n",
+ "rb=200*10**3##ohm\n",
+ "bascur=(6-vbe)/rb#\n",
+ "colres=(10-vce)/(beta1*bascur)#\n",
+ "print \"min resistance = %0.2f\"%((colres)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 206 example 7"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "in saturation mode\n",
+ "vo = 3.51 volt\n",
+ "emitter resistance < 688.58 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "beta1=100#\n",
+ "colres=3*10**3##collector resistance #ohm\n",
+ "rb=8*10**3##ohm\n",
+ "r1=500##ohm\n",
+ "voltag=5##volt\n",
+ "#(1)\n",
+ "ib=(-voltag+0.7)/((1+beta1)*r1+(rb))#\n",
+ "ic=beta1*ib#\n",
+ "vce=(-10-ic*(colres)+r1*(ib+ic))#\n",
+ "vcb=vce+0.7#\n",
+ "#(2)\n",
+ "volmin=-0.2+abs(ib+ic)*r1#\n",
+ "re=-(0.7+rb*ib+voltag)/((1+(beta1))*ib)#\n",
+ "print \"in saturation mode\"\n",
+ "print \"vo = %0.2f\"%((volmin)),\"volt\"#correction in the book\n",
+ "print \"emitter resistance < %0.2f\"%((re)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 207 example 9"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "the operating point at vbb = 1.00 volt ic = 2.50e-03 ampere vce = 7.00 volt\n",
+ "the operating point at vbb = 12.00 volt ic = 5.95e-03 ampere vce = -176.33 volt\n",
+ "beta at saturation = 6.32\n"
+ ]
+ }
+ ],
+ "source": [
+ "vcc=12##volt\n",
+ "rb=12*10**3##ohm\n",
+ "colres=2*10**3##ohm\n",
+ "beta1=100#\n",
+ "vb=0.7##volt\n",
+ "vce=0.1##volt\n",
+ "\n",
+ "for q in range(1,3):\n",
+ " if q==1:\n",
+ " vbb=1\n",
+ " else:\n",
+ " vbb=12\n",
+ " \n",
+ " ib=(vbb-vb)/rb\n",
+ " ic=beta1*ib\n",
+ " ie=ic+ib\n",
+ " vce=vcc-ic*colres\n",
+ " if q==2 :\n",
+ " ic=(vcc-0.1)/colres\n",
+ " \n",
+ "\n",
+ " print \"the operating point at vbb = %0.2f\"%((vbb)),\"volt ic = %0.2e\"%((ic)),\"ampere vce = %0.2f\"%((vce)),\" volt\"\n",
+ "\n",
+ "beta1=ic/ib#\n",
+ "\n",
+ "print \"beta at saturation = %0.2f\"%((beta1))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 208 example 11"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "current = 1.00e-03 ampere\n"
+ ]
+ }
+ ],
+ "source": [
+ "vbe=0.65##volt\n",
+ "colres=2*10**3##ohm\n",
+ "voltag=10##volt\n",
+ "i1=voltag/10#\n",
+ "q=(1.65-vbe)/(1*10**3)#\n",
+ "\n",
+ "\n",
+ "print \"current = %0.2e\"%((q)),\"ampere\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 208 example 12"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 8,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "vce = 5.70 volt\n",
+ "collector current = 1.05e-03 ampere\n"
+ ]
+ }
+ ],
+ "source": [
+ "vcc=12##volt\n",
+ "r1=10*10**3##ohm\n",
+ "colres=1*10**3##ohm\n",
+ "re=5*10**3##ohm\n",
+ "rb=5*10**3##ohm\n",
+ "beta1=100#\n",
+ "vbe=0.7##volt\n",
+ "basvol=vcc*10/20#\n",
+ "ib=((basvol-vbe)/(rb+beta1*rb))#\n",
+ "ic=beta1*ib#\n",
+ "vce=vcc-ic*(colres+re)#\n",
+ "print \"vce = %0.2f\"%((vce)),\"volt\"\n",
+ "print \"collector current = %0.2e\"%((ic)),\"ampere\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 209 example 13"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 9,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "r1 = 4.22 times r2\n",
+ "if r2 is 1200ohm\n",
+ "r1 = 5061.77 ohm\n",
+ "r2 = 1200.00 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "colres=330##ohm\n",
+ "re=0.1*10**3##ohm\n",
+ "vcc=12##volt\n",
+ "vce=0.2##volt\n",
+ "revcur=18*10**-3#ampere\n",
+ "ib=0.3*10**-3##ampere\n",
+ "stability=10#\n",
+ "beta1=100#\n",
+ "colres=0.330##ohm\n",
+ "re=0.1*10**3##ohm\n",
+ "vbe=0.2#\n",
+ "rb=(((1+beta1)*re)/10-((1+beta1)*re))/(1-10.1)#\n",
+ "vb=2+ib*rb#\n",
+ "w=vcc/vb#\n",
+ "q=w-1#\n",
+ "r1=1.2*10**3#\n",
+ "r=q*1.2*10**3#\n",
+ "print \"r1 = %0.2f\"%((q)),\"times r2\"\n",
+ "print \"if r2 is 1200ohm\"\n",
+ "print \"r1 = %0.2f\"%((r)),\"ohm\"\n",
+ "\n",
+ "print \"r2 = %0.2f\"%((r1)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 210 example 14"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 10,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "collector current = 2.49e-03 ampere\n",
+ "emitter current = 2.52e-03 ampere\n",
+ "collector current with ib = 2.47e-03 ampere\n",
+ "emitter current = 2.50e-03 ampere\n",
+ "error = 7.94e-03\n"
+ ]
+ }
+ ],
+ "source": [
+ "alpha1=0.99#\n",
+ "ib=25*10**-6##ampere\n",
+ "icb=200*10**-9##ampere\n",
+ "beta1=alpha1/(1-alpha1)#\n",
+ "ic=beta1*ib+(beta1+1)*icb#\n",
+ "print \"collector current = %0.2e\"%((ic)),\"ampere\"\n",
+ "ie1=(ic-icb)/alpha1#\n",
+ "print \"emitter current = %0.2e\"%((ie1)),\"ampere\"\n",
+ "ic=beta1*ib#\n",
+ "print \"collector current with ib = %0.2e\"%((ic)),\"ampere\"\n",
+ "ie=ic/alpha1#\n",
+ "print \"emitter current = %0.2e\"%((ie)),\"ampere\"\n",
+ "w=(ie1-ie)/ie1#\n",
+ "print \"error = %0.2e\"%((w))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 211 example 15"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 11,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "resistance = 381879.22 ohm\n",
+ "stability = 22.62\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "vcc=26##volt\n",
+ "colres=20*10**3##ohm\n",
+ "re=470##ohm\n",
+ "beta1=45#\n",
+ "vce=8##volt\n",
+ "ib=(vcc-vce)/((1+beta1)*(colres+re))#\n",
+ "ic=beta1*ib#\n",
+ "r1=((vcc-colres*(ib+ic)-re*(ib+ic)-(0.7)))/ib#\n",
+ "print \"resistance = %0.2f\"%((r1)),\"ohm\"\n",
+ "stability=(1+beta1)/(1+(beta1*re)/(re+colres))#\n",
+ "print \"stability = %0.2f\"%((stability))\n",
+ "#correction required in the book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 211 example 16"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 12,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "current = 6.69e-04 ampere\n",
+ "vce = 2.69 volt\n",
+ "resistance = 6.90e+02 ohm\n",
+ "current = 6.36e-04 ampere\n",
+ "vce = 2.63 volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "vcc=1.5#volt in book should be changed as 1.5\n",
+ "colres=1.5*10**3##ohm\n",
+ "emresi=0.27*10**3##ohm\n",
+ "r1=2.7*10**3##ohm\n",
+ "r=2.7*10**3##ohm\n",
+ "beta1=45#\n",
+ "basre1=690##ohm\n",
+ "voltag=r*vcc/(r*r1)#\n",
+ "basres=(r*r1)/(r+r1)#\n",
+ "vbe=0.2#\n",
+ "for q in range (1,3):\n",
+ " if q==2 :\n",
+ " print \"resistance = %0.2e\"%((basre1)),\"ohm\"\n",
+ " basres=basres+basre1\n",
+ " \n",
+ " bascur=(((voltag+vbe)))/(basres+(45*(emresi)))\n",
+ " colcur=beta1*bascur\n",
+ " vce=(vcc+colcur*colres+(bascur+colcur)*emresi)\n",
+ " print \"current = %0.2e\"%((colcur)),\"ampere\"\n",
+ " print \"vce = %0.2f\"%((vce)),\"volt\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 212 example 17"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 13,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "base resistance = 62500.00 ohm\n",
+ "stability = 26.00\n"
+ ]
+ }
+ ],
+ "source": [
+ "beta1=25#\n",
+ "colres=2.5*10**3##ohm\n",
+ "vcc=10##volt\n",
+ "vce=-5##volt\n",
+ "ic=-(vcc+vce)/colres#\n",
+ "ib=ic/beta1#\n",
+ "rb=vce/ib#\n",
+ "stability=(1+beta1)/((1+beta1)*((colres)/(colres+rb)))#\n",
+ "print \"base resistance = %0.2f\"%((rb)),\"ohm\"#correction in book\n",
+ "print \"stability = %0.2f\"%((stability))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 212 example 18"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 14,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "junction temperature = 51.00 celsius\n"
+ ]
+ }
+ ],
+ "source": [
+ "therre=8##celsius per watts\n",
+ "tepera=27##celsius ambient temperature\n",
+ "potran=3##watt\n",
+ "tejunc=tepera+(therre*potran)#\n",
+ "print \"junction temperature = %0.2f\"%((tejunc)),\"celsius\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 213 example 19"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 15,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "dissipation = 9.75 watt\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "ambtep=40##celsius\n",
+ "juntep=160##celsius\n",
+ "hs_a=8#\n",
+ "j_c=5#\n",
+ "c_a=85#\n",
+ "j_a=(j_c)+(c_a*hs_a)/(c_a+hs_a)#\n",
+ "podiss=(juntep-ambtep)/j_a#\n",
+ "print \"dissipation = %0.2f\"%((podiss)),\"watt\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 213 example 21"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 16,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "alpha = 0.99\n",
+ "beta = 199.00\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "emicur=1*10**-3##ampere\n",
+ "colcur=0.995*10**-3##ampere\n",
+ "alpha1=colcur/emicur#\n",
+ "beta1=alpha1/(1-alpha1)#\n",
+ "print \"alpha = %0.2f\"%((alpha1))\n",
+ "print \"beta = %0.2f\"%((beta1))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 213 example 22"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 17,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "alpha = 0.99\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "beta1=100#\n",
+ "alpha1=beta1/(beta1+1)#\n",
+ "\n",
+ "print \"alpha = %0.2f\"%((alpha1))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 213 example.23"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 18,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "ic = 0.0067 ampere\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "rb=200*10**3##ohm\n",
+ "rc=2*10**3##ohm\n",
+ "vcc=20##volt\n",
+ "ib=(vcc)/(rb+200*rc)#\n",
+ "ic=200*ib#\n",
+ "print \"ic = %0.4f\"%((ic)),\"ampere\"\n",
+ "#correction required in book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 214 example 24"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 19,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "collector current = 9.81e-04 ampere\n",
+ "base current = 1.90e-05 ampere\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "alpha1=0.98#\n",
+ "revcur=1*10**-6##ampere\n",
+ "emicur=1*10**-3##ampere\n",
+ "colcur=alpha1*emicur+revcur#\n",
+ "bascur=emicur-colcur#\n",
+ "print \"collector current = %0.2e\"%((colcur)),\"ampere\"\n",
+ "print \"base current = %0.2e\"%((bascur)),\"ampere\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 214 example 25"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 20,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "vce = 8.00 volt\n",
+ "emitter resistance = 50.00 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "colcur=100*10**-3##ampere\n",
+ "ouresi=20##ohm\n",
+ "r=200##ohm\n",
+ "r1=100##ohm\n",
+ "vcc=15##volt\n",
+ "basvol=((r1)/(r+r1))*vcc#\n",
+ "em1res=basvol/colcur#\n",
+ "vce=vcc-(ouresi+em1res)*colcur#\n",
+ "print \"vce = %0.2f\"%((vce)),\"volt\"\n",
+ "print \"emitter resistance = %0.2f\"%((em1res)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 214 example 26"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 21,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "emitter current = 0.019 ampere\n",
+ "collector to emitter = 3.112 volt\n",
+ "collector to emitter = -15.18 volt\n",
+ "collector current = 0.005 ampere\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "colres=1*10**3##ohm\n",
+ "beta1=50#\n",
+ "vbe=0.3##volt\n",
+ "vcc=6##volt\n",
+ "rb=10*10**3##ohm\n",
+ "re=100##ohm\n",
+ "em1cur=((vcc-vbe)*(beta1+1))/((rb+((beta1+1)*re)))#\n",
+ "for q in range(1,3):\n",
+ " if q==2 :\n",
+ " colres=1*10**3#\n",
+ " vce=vcc-(colres+re)*em1cur#\n",
+ " ic=vcc/(colres+re)#\n",
+ " print \"collector to emitter = %0.2f\"%((vce)),\"volt\"\n",
+ " print \"collector current = %0.3f\"%((ic)),\"ampere\"\n",
+ " \n",
+ " if q==1 :\n",
+ " colres=50#\n",
+ " rb=100#\n",
+ " vce=vcc-(colres+rb)*em1cur#\n",
+ " print \"emitter current = %0.3f\"%((em1cur)),\"ampere\"\n",
+ " print \"collector to emitter = %0.3f\"%((vce)),\"volt\"\n",
+ " "
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 216 example 27"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 22,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "resistance = 3928.57 ohm\n",
+ "resistance r1 = 51281.87 ohm\n",
+ "resistance r2 = 34645.75 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "beta1=99#\n",
+ "stability=5#\n",
+ "vbe=0.2##volt\n",
+ "colres=2.5*10**3##ohm\n",
+ "vce=6##volt\n",
+ "ven=5.5##volt\n",
+ "vcc=15##volt\n",
+ "vcn=vce+ven#\n",
+ "colvol=vcc-vcn##voltage across collector resistance\n",
+ "ic=colvol/colres#\n",
+ "ib=ic/beta1#\n",
+ "colre1=ven/ic#\n",
+ "rb=stability*colre1/(1-(stability/(1+beta1)))##correction in the book taken collector resistance as 3.13*10**3ohm but it is 3.93*10**3ohm\n",
+ "v1=(ib*rb)+(vbe)+((ib+ic)*colre1)#\n",
+ "r=rb*vcc/v1#\n",
+ "r1=r*v1/(vcc-v1)#\n",
+ "print \"resistance = %0.2f\"%((colre1)),\"ohm\"\n",
+ "print \"resistance r1 = %0.2f\"%((r)),\"ohm\"\n",
+ "print \"resistance r2 = %0.2f\"%((r1)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 216 example 28"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 23,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "base current = -4.22e-05 ampere\n",
+ "collector current = -2.11e-03 ampere\n",
+ "emitter current = -2.15e-03 ampere\n",
+ "vcb = 5.99 volt\n",
+ "the collector base junction is reverse biased the transistor in active region\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "beta1=50#\n",
+ "vbb=5##volt\n",
+ "rb=10*10**3##ohm\n",
+ "colres=800##ohm\n",
+ "re=1.8*10**3##ohm\n",
+ "vcc=5##volt\n",
+ "ib=(0.7-vbb)/((rb)+(beta1+1)*re)##correction in book\n",
+ "re=beta1*ib#\n",
+ "ie=(ib+re)#\n",
+ "vce=vcc-colres*re-re*ie#\n",
+ "vcb=(vce-0.7)#\n",
+ "print \"base current = %0.2e\"%((ib)),\"ampere\"\n",
+ "print \"collector current = %0.2e\"%((re)),\"ampere\"\n",
+ "print \"emitter current = %0.2e\"%((ie)),\"ampere\"\n",
+ "print \"vcb = %0.2f\"%((vcb)),\"volt\"#correction in book\n",
+ "print \"the collector base junction is reverse biased the transistor in active region\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 217 example 29"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 24,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "collector current = 9.49e-04 ampere\n",
+ "collector emitter voltage = 6.31 volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "r=40*10**3##ohm\n",
+ "r1=5*10**3##ohm\n",
+ "colres=r1#\n",
+ "beta1=50#\n",
+ "em1res=1*10**3##ohm\n",
+ "vcc=12##volt\n",
+ "rth=r*r1/(r+r1)#\n",
+ "v1=r1*vcc/(r1+r)#\n",
+ "bascur=(v1-0.3)/(rth+(beta1*em1res))#\n",
+ "colcur=beta1*bascur#\n",
+ "vce=vcc-(colres+em1res)*colcur#\n",
+ "print \"collector current = %0.2e\"%((colcur)),\"ampere\"\n",
+ "print \"collector emitter voltage = %0.2f\"%((vce)),\"volt\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 217 example 30"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 25,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ " base resistance = 49500 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "colcur=8*10**-3##ampere\n",
+ "re=500##ohm\n",
+ "vce=3##volt\n",
+ "beta1=80#\n",
+ "vcc=9##volt\n",
+ "ib=colcur/beta1#\n",
+ "rb=(vcc-(1+beta1)*(ib*re))/ib#\n",
+ "print \" base resistance = %0.f\"%((rb)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 217 example 31"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 26,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "base current = 9.08e-06 ampere\n",
+ "collector current = 9.08e-04 ampere\n",
+ "emitter current = 9.17e-04 ampere\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "vcc=10##volt\n",
+ "basres=1*10**6##ohm\n",
+ "colres=2*10**3##ohm\n",
+ "em1res=1*10**3##ohm\n",
+ "beta1=100#\n",
+ "bascur=vcc/(basres+(beta1+1)*(em1res))#\n",
+ "colcur=beta1*bascur#\n",
+ "em1cur=colcur+bascur#\n",
+ "print \"base current = %0.2e\"%((bascur)),\"ampere\"\n",
+ "print \"collector current = %0.2e\"%((colcur)),\"ampere\"#correction in book\n",
+ "print \"emitter current = %0.2e\"%((em1cur)),\"ampere\"#correction in book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 218 example 32"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 27,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "collector current = 1.98e-03 ampere\n",
+ "emitter current = -2.00e-03 ampere\n",
+ "collector emitter voltage = 5.34 volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "alpha1=0.99#\n",
+ "rebacu=1*10**-11##ampere\n",
+ "colres=2*10**3##ohm\n",
+ "vcc=10##volt\n",
+ "bascur=20*10**-6##ampere\n",
+ "beta1=alpha1/(1-alpha1)#\n",
+ "i1=(1+beta1)*rebacu#\n",
+ "colcur=beta1*bascur+i1#\n",
+ "em1cur=-(bascur+colcur)#\n",
+ "vcb=vcc-colcur*colres#\n",
+ "vce=vcb-0.7#\n",
+ "print \"collector current = %0.2e\"%((colcur)),\"ampere\"\n",
+ "print \"emitter current = %0.2e\"%((em1cur)),\"ampere\"\n",
+ "print \"collector emitter voltage = %0.2f\"%((vce)),\"volt\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 220 example 33"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 28,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "base current = 2.15e-05 ampere\n",
+ "collector current = 2.15e-03 ampere\n",
+ "emitter current = 2.17e-03 ampere\n",
+ "base current = 2.56e-05 ampere\n",
+ "collector current = 2.56e-03 ampere\n",
+ "emitter current = 2.59e-03 ampere\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "beta1=100#\n",
+ "revcur=20*10**-9##ampere\n",
+ "colres=3*10**3##ohm\n",
+ "rb=200*10**3##ohm\n",
+ "vbb=5##volt\n",
+ "vcc=11##volt\n",
+ "em1res=2*10**3##ohm\n",
+ "ib=(vbb-0.7)/rb#\n",
+ "ic=beta1*ib#\n",
+ "ie=ib+ic#\n",
+ "print \"base current = %0.2e\"%((ib)),\"ampere\"\n",
+ "print \"collector current = %0.2e\"%((ic)),\"ampere\"\n",
+ "print \"emitter current = %0.2e\"%((ie)),\"ampere\"#question asked only currents\n",
+ "#2*10**3 ohm added to emitter\n",
+ "ib=-(0.7-vcc)/(rb+((1+beta1)*em1res))#\n",
+ "ic=beta1*ib#\n",
+ "ie=ib+ic#\n",
+ "print \"base current = %0.2e\"%((ib)),\"ampere\"#correction in book\n",
+ "print \"collector current = %0.2e\"%((ic)),\"ampere\"\n",
+ "print \"emitter current = %0.2e\"%((ie)),\"ampere\"#question asked only currents"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 221 example 34"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 29,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "emitter current = 2.00e-03 ampere\n",
+ "collector current = 2.00e-03 ampere\n",
+ "voltage = 10.00 volt\n",
+ "vcb = 2.00 volt\n",
+ "emitter resistance = 6000.00 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "em1cur=2*10**-3##ampere\n",
+ "v1=12##volt\n",
+ "vcc=12##volt\n",
+ "format(12)#\n",
+ "colres=5*10**3##ohm\n",
+ "em1res=v1/em1cur#\n",
+ "colcur=em1cur#\n",
+ "voltag=colcur*colres##ic*r\n",
+ "v1=vcc-(colres*colcur)#\n",
+ "print \"emitter current = %0.2e\"%((em1cur)),\"ampere\"\n",
+ "print \"collector current = %0.2e\"%((colcur)),\"ampere\"\n",
+ "print \"voltage = %0.2f\"%((voltag)),\"volt\"\n",
+ "print \"vcb = %0.2f\"%(abs(v1)),\"volt\"\n",
+ "print \"emitter resistance = %0.2f\"%((em1res)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 221 example 35"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 30,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "resistance at 0.0 volt 80000.00 ohm\n",
+ "resistance at 0.70 volt 66000.00 ohm\n",
+ "vbb at 12volt\n",
+ "resistance at 0.00 volt 240000.00 ohm\n",
+ "resistance at 0.70 volt 226000.00 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "vbb=4##volt\n",
+ "ib=50*10**-6##ampere\n",
+ "for q in [0, 0.7, 4, 12]:\n",
+ " if q==0 :\n",
+ " rb=(vbb-q)/ib#\n",
+ " print \"resistance at %0.1f\"%((q)),\"volt %0.2f\"%((rb)),\"ohm\"\n",
+ " elif q==0.7:\n",
+ " rb=(vbb-q)/ib\n",
+ " print \"resistance at %0.2f\"%((q)),\"volt %0.2f\"%((rb)),\"ohm\"\n",
+ " elif q==4:\n",
+ " print \"vbb at 12volt\"\n",
+ " q=0\n",
+ " vbb=12\n",
+ " rb=(vbb-q)/ib\n",
+ " print \"resistance at %0.2f\"%((q)),\"volt %0.2f\"%((rb)),\"ohm\"\n",
+ " else:\n",
+ " q=0.7#\n",
+ " vbb=12#\n",
+ " rb=(vbb-q)/ib#\n",
+ " \n",
+ " \n",
+ " print \"resistance at %0.2f\"%((q)),\"volt %0.2f\"%((rb)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 222 example 36"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 31,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "beta = 99.96\n",
+ "ie = 0.005 ampere\n",
+ "alpha = 1.00\n",
+ "ib = 9.80e-05 ampere\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "ic=5.2*10**-3##ampere\n",
+ "ib=50*10**-6##ampere\n",
+ "icb=2*10**-6##ampere\n",
+ "beta1=(ic-icb)/(ib+icb)#\n",
+ "print \"beta = %0.2f\"%((beta1))\n",
+ "ie=ib+ic#\n",
+ "\n",
+ "print \"ie = %0.3f\"%((ie)),\"ampere\"\n",
+ "alpha1=(ic-icb)/ic#\n",
+ "print \"alpha = %0.2f\"%((alpha1))\n",
+ "\n",
+ "\n",
+ "\n",
+ "ic=10*10**-3##ampere\n",
+ "ib=(ic-(beta1+1)*(icb))/beta1#\n",
+ "\n",
+ "\n",
+ "print \"ib = %0.2e\"%((ib)),\"ampere\"\n",
+ "#correction required in the book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 222 example 37"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 32,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "collector current at beta 160.00 = 1.07e-03 ampere\n",
+ "vce at beta 160.00 = -5.69 volt\n",
+ "collector current at beta 80.00 = 1.07e-03 ampere\n",
+ "vce at beta 80.00 = -3.03 volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "beta1=160\n",
+ "vb=-0.8##volt\n",
+ "re=2.5*10**3##ohm\n",
+ "vcc=10##volt\n",
+ "for q in [160, 80]:\n",
+ " ib=(vcc-vb)*10**2/((re)*(1+q)*400)#\n",
+ " ic=q*ib#\n",
+ " colres=1.5*10**3##ohm\n",
+ " print \"collector current at beta %0.2f\"%((q)),\" = %0.2e\"%((ic)),\"ampere\"\n",
+ " #correction required in the book\n",
+ " ie=(1+beta1)*ib#\n",
+ " vce=-(vcc-colres*ic-re*ie)#\n",
+ " print \"vce at beta %0.2f\"%((q)),\" = %0.2f\"%((vce)),\"volt\"\n",
+ " #correction required in the book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 222 example 38"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 33,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "rb = 630000.00 ohm\n",
+ "stability = 56.51\n",
+ "new point\n",
+ "ic = 6.42e-04 ampere\n",
+ "vce = 8.79 volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "vb=0.7##volt\n",
+ "vce=7##volt\n",
+ "ic=1*10**-3##ampere\n",
+ "vcc=12##volt\n",
+ "beta1=100#\n",
+ "colres=(vcc-vce)/ic#\n",
+ "ib=ic/beta1#\n",
+ "#rb\n",
+ "rb=(vcc-vb-ic*colres)/ib#\n",
+ "print \"rb = %0.2f\"%((rb)),\" ohm\"\n",
+ "#stability\n",
+ "stability=(1+beta1)/(1+beta1*(colres/(colres+rb)))#\n",
+ "print \"stability = %0.2f\"%((stability))\n",
+ "#beta=50\n",
+ "beta1=50#\n",
+ "print \"new point\"\n",
+ "ib=(vcc-vb)/(beta1*colres+rb)#\n",
+ "ic=beta1*ib#\n",
+ "print \"ic = %0.2e\"%((ic)),\" ampere\"\n",
+ "vce=vcc-(ic*colres)#\n",
+ "print \"vce = %0.2f\"%((vce)),\" volt\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 223 example 39"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 34,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "new point\n",
+ "vce = 4.21 volt\n",
+ "ic = 1.93e-03 ampere\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "vcc=16##volt\n",
+ "colres=3*10**3##ohm\n",
+ "re=2*10**3##ohm\n",
+ "r1=56*10**3##ohm\n",
+ "r2=20*10**3##ohm\n",
+ "alpha1=0.985#\n",
+ "vb=0.3##volt\n",
+ "#coordinates\n",
+ "beta1=alpha1/(1-alpha1)#\n",
+ "v1=vcc*r2/(r1+r2)#\n",
+ "rb=r2/(r1+r2)#\n",
+ "ic=(v1-vb)/((rb/beta1)+(re/beta1)+re)#\n",
+ "print \"new point\"\n",
+ "print \"vce = %0.2f\"%((v1)),\" volt\"\n",
+ "print \"ic = %0.2e\"%((ic)),\" ampere\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 224 example 40"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 35,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "re = 1300.00 ohm\n",
+ "r1 = 26233.18 ohm\n",
+ "r2 = 3725.66 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "vce=12##volt\n",
+ "ic=2*10**-3##ampere\n",
+ "vcc=24##volt\n",
+ "vb=0.7##volt\n",
+ "beta1=50#\n",
+ "colres=4.7*10**3##ohm\n",
+ "#re\n",
+ "re=((vcc-vce)/(ic))-colres#\n",
+ "print \"re = %0.2f\"%((re)),\" ohm\"\n",
+ "#r1\n",
+ "ib=ic/beta1#\n",
+ "v1=ib*3.25*10**3+vb+(ib+1.5*10**3)#\n",
+ "r1=3.25*18*10**3/2.23#\n",
+ "print \"r1 = %0.2f\"%((r1)),\" ohm\"\n",
+ "#r2\n",
+ "r2=26.23*2.23*10**3/(18-2.3)#\n",
+ "print \"r2 = %0.2f\"%((r2)),\" ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 225 example 41"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 36,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "ib = 2.87e-05 ampere\n",
+ "ic = 3.58e-03 ampere\n",
+ "ie = 3.61e-03 ampere\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "colres=3*10**3##ohm\n",
+ "rb=150*10**3##ohm\n",
+ "beta1=125#\n",
+ "vcc=10##volt\n",
+ "v1=5##volt\n",
+ "vb=0.7##volt\n",
+ "ib=(v1-vb)/rb#\n",
+ "print \"ib = %0.2e\"%((ib)),\" ampere\"\n",
+ "ic=beta1*ib#\n",
+ "ie=ic+ib#\n",
+ "print \"ic = %0.2e\"%((ic)),\" ampere\"\n",
+ "print \"ie = %0.2e\"%((ie)),\" ampere\"#correction in the book in question to find only currents"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 226 example 42"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 37,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "re = 1033.33 ohm\n",
+ "rb = 4485.11 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "beta1=50#\n",
+ "vb=0.6##volt\n",
+ "vcc=18##volt\n",
+ "colres=4.3*10**3##ohm\n",
+ "ic=1.5*10**-3##ampere\n",
+ "vce=10##volt\n",
+ "stability=4#\n",
+ "r1=(vcc-vce)/ic#\n",
+ "re=r1-colres#\n",
+ "w=(beta1+1)*(stability)*re/(1+beta1-stability)#\n",
+ "print \"re = %0.2f\"%((re)),\"ohm\"\n",
+ "print \"rb = %0.2f\"%((w)),\"ohm\"#correction in the book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 226 example 43"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 38,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "r1 = 3.8*r2\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "re=100##ohm\n",
+ "beta1=100#\n",
+ "rb=1*10**3##ohm\n",
+ "stability=(1+beta1)/(1+beta1*(re/(re+rb)))#\n",
+ "r1=3.8#r2\n",
+ "print \"r1 = 3.8*r2\"#correction in the book not given in question"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 228 example 45"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 39,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "rb at 75 celsius = 14062.50 ohm\n",
+ "icb = 1.80e-05 ampere\n",
+ "temperature at which current till max = 58.40 celsius\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "from math import log10\n",
+ "icb=2*10**-6##ampere\n",
+ "vbb=1##volt\n",
+ "r1=50*10**3##ohm\n",
+ "#current increases every 10celsius rb at 75celsius\n",
+ "vb=-0.1##volt\n",
+ "icb=2**6*10**-6##at 75celsius\n",
+ "rb=(vb+vbb)/icb#\n",
+ "print \"rb at 75 celsius = %0.2f\"%((rb)),\"ohm\"\n",
+ "icb=(vb+vbb)/r1#\n",
+ "print \"icb = %0.2e\"%((icb)),\"ampere\"\n",
+ "w=(log10(icb*10**6)*20/log10(2))-25#\n",
+ "print \"temperature at which current till max = %0.2f\"%((w)),\"celsius\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 228 example 46"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 40,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "min collector resistance = 4558.14 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "vb=0.8##volt\n",
+ "beta1=100#\n",
+ "vce=0.2##volt\n",
+ "vcc=10##volt\n",
+ "rb=200*10**3##ohm\n",
+ "#collector resistance\n",
+ "ib=(5-0.7)/rb#\n",
+ "colres=(vcc-vce)/(beta1*ib)#\n",
+ "print \"min collector resistance = %0.2f\"%((colres)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 229 example 47"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 41,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "ib2 = 4.00e-03 ampere\n",
+ "ie1 = -4.00e-03 ampere\n",
+ "ic2 = 9.60e-02 ampere\n",
+ "ib1 = 8.00e-05 ampere\n",
+ "ic1 = 3.92e-03 ampere\n",
+ "ic = 9.99e-02 ampere\n",
+ "ic/ib = 1249.00\n",
+ "ic/ie = -1.00\n",
+ "vce = 12.01 volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "alpha1=0.98#\n",
+ "alph11=0.96#\n",
+ "vcc=24##volt\n",
+ "colres=120##ohm\n",
+ "ie=100*10**-3##ampere\n",
+ "beta1=alpha1/(1-alpha1)#\n",
+ "bet11=alph11/(1-alph11)#\n",
+ "ib2=ie/(1+bet11)#\n",
+ "ie1=-ib2#\n",
+ "print \"ib2 = %0.2e\"%((ib2)),\"ampere\"\n",
+ "print \"ie1 = %0.2e\"%((ie1)),\"ampere\"\n",
+ "\n",
+ "\n",
+ "ic2=bet11*ib2#\n",
+ "ib1=ib2/(1+beta1)#\n",
+ "ic1=beta1*ib1#\n",
+ "print \"ic2 = %0.2e\"%((ic2)),\"ampere\"\n",
+ "print \"ib1 = %0.2e\"%((ib1)),\"ampere\"\n",
+ "print \"ic1 = %0.2e\"%((ic1)),\"ampere\"\n",
+ "ic=ic1+ic2#\n",
+ "vce=vcc-ic*colres#\n",
+ "ib=ib1#\n",
+ "w=ic/ib#\n",
+ "q=-ic/ie#\n",
+ "print \"ic = %0.2e\"%((ic)),\"ampere\"\n",
+ "print \"ic/ib = %0.2f\"%((w))\n",
+ "print \"ic/ie = %0.2f\"%((q))\n",
+ "#correction required in the book\n",
+ "print \"vce = %0.2f\"%((vce)),\"volt\""
+ ]
+ }
+ ],
+ "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.9"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}
diff --git a/Electronic_Devices_and_Circuits_by_J._Paul/Ch5_1.ipynb b/Electronic_Devices_and_Circuits_by_J._Paul/Ch5_1.ipynb
new file mode 100644
index 00000000..0176b717
--- /dev/null
+++ b/Electronic_Devices_and_Circuits_by_J._Paul/Ch5_1.ipynb
@@ -0,0 +1,1346 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 5 - BJT Amplifier"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 283 example 1"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage gain = -50.00\n",
+ "input resistance = 2600.00 ohm\n",
+ "ce removed\n",
+ "voltage gain = -50.00\n",
+ "input resistance = 12600.00 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "ic=1*10**-3##ampere\n",
+ "vcc=5##volt\n",
+ "colres=2*10**3##ohm\n",
+ "r1=1.4*10**3##ohm\n",
+ "re=100##ohm\n",
+ "beta1=100\n",
+ "rb=100##ohm\n",
+ "v1=0.026\n",
+ "c1=25*10**-6##farad\n",
+ "g1=ic/v1\n",
+ "freque=10*10**3##hertz\n",
+ "xc=1/(2*freque*3.14*c1)\n",
+ "volgai=-beta1*colres/(r1+0.1*10**3+2.5*10**3)\n",
+ "print \"voltage gain = %0.2f\"%((volgai))\n",
+ "ri=(0.1+2.5)*10**3-((xc.imag)*(1+beta1))\n",
+ "print \"input resistance = %0.2f\"%((ri)),\"ohm\"\n",
+ "#ce removed\n",
+ "volgai=-beta1*colres/((r1+0.1*10**3+2.5*10**3)+(101/1000)*10**3*100)\n",
+ "print \"ce removed\"\n",
+ "print \"voltage gain = %0.2f\"%((volgai))\n",
+ "ri=(0.1+2.5)*10**3+100*101/1000*10**3\n",
+ "print \"input resistance = %0.2f\"%((ri)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 285 example 2"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage gain = 260.00 <180\n",
+ "voltage gain reduced ce removed\n",
+ "when cb is short circuited the voltage gain increased\n"
+ ]
+ }
+ ],
+ "source": [
+ "ic=1.3*10**-3##ampere\n",
+ "colres=2*10**3##ohm\n",
+ "re=500##ohm\n",
+ "v1=0.026##volt\n",
+ "beta1=100\n",
+ "vcc=15##volt\n",
+ "c1=10*10**-6##farad\n",
+ "ib=ic/beta1\n",
+ "ri=0.01/ib\n",
+ "volgai=beta1*colres*ib/0.01\n",
+ "print \"voltage gain = %0.2f\"%((volgai)),\"<180\"\n",
+ "print \"voltage gain reduced ce removed\"\n",
+ "print \"when cb is short circuited the voltage gain increased\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 286 example 3"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "current gain = -11.62\n",
+ "voltage gain = -46.46\n",
+ "transconductance = -0.01 ampere per volt\n",
+ "transresistance = -46464.08 ohm\n",
+ "input resistance = 1042.65 ohm\n",
+ "output resistance = 3636.00 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "colres=4*10**3##ohm\n",
+ "r1=4*10**3##ohm\n",
+ "\n",
+ "rb=20*10**3##ohm\n",
+ "r=1*10**3##ohm\n",
+ "hie=1.1*10**3##ohm\n",
+ "\n",
+ "#current gain\n",
+ "ri=rb*hie/(rb+hie)\n",
+ "curgai=(1/2.04)*(rb/(rb+(hie)))*(-50*colres/(colres+(r1)))\n",
+ "print \"current gain = %0.2f\"%((curgai))\n",
+ "#voltage gain\n",
+ "volgai=curgai*r1/r\n",
+ "print \"voltage gain = %0.2f\"%((volgai))\n",
+ "#transconductance\n",
+ "conduc=volgai/r1\n",
+ "print \"transconductance = %0.2f\"%((conduc)),\"ampere per volt\"\n",
+ "#transresistance\n",
+ "resist=volgai*r\n",
+ "print \"transresistance = %0.2f\"%((resist)),\"ohm\"\n",
+ "#input resistance\n",
+ "print \"input resistance = %0.2f\"%((ri)),\"ohm\"\n",
+ "#output resistance\n",
+ "resist=40*10**3*colres/(40*10**3+colres)\n",
+ "\n",
+ "\n",
+ "\n",
+ "print \"output resistance = %0.2f\"%((resist)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 287 example 4"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "rb = 235000.00 ohm\n",
+ "rb including emitter resistance = 230000.00 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "ib=20*10**-6##ampere\n",
+ "beta1=500\n",
+ "re=10##ohm correction in the book\n",
+ "r1=4.7*10**2##ohm correction in the book\n",
+ "ic=ib*beta1\n",
+ "voltag=ic*r1##voltage drop at 4.7*10**3ohm\n",
+ "vc=(10-voltag)\n",
+ "rb=(vc-0.6)/ib\n",
+ "print \"rb = %0.2f\"%((rb)),\"ohm\"\n",
+ "#re included\n",
+ "voltag=ic*re##voltage drop at re\n",
+ "vb=(0.6+voltag)\n",
+ "rb=(vc-vb)/ib\n",
+ "print \"rb including emitter resistance = %0.2f\"%((rb)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 288 example 5"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage gain with fedback = 73.92 decibel\n",
+ "beta = 1.20e-04\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "from math import log10\n",
+ "av=12480\n",
+ "fedbac=8##decibel\n",
+ "volgai=20*log10(av)##gain without fedback\n",
+ "volga1=volgai-fedbac\n",
+ "beta1=((av/5000)-1)/av\n",
+ "\n",
+ "print \"voltage gain with fedback = %0.2f\"%((volga1)),\"decibel\"\n",
+ "print \"beta = %0.2e\"%((beta1))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 288 example 6"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "collector current = 3.00e-03 ampere\n",
+ "emitter current = 3.00e-03 ampere\n",
+ "base current = 3.00e-05 ampere\n"
+ ]
+ }
+ ],
+ "source": [
+ "beta1=100\n",
+ "r1=1.5*10**3##ohm\n",
+ "vcc=10##volt\n",
+ "r=100*10**3##ohm\n",
+ "vb=((vcc)/(r+10*10**3))*10*10**3\n",
+ "ie=0.3/100\n",
+ "ib=ie/beta1\n",
+ "print \"collector current = %0.2e\"%((ie)),\"ampere\"\n",
+ "print \"emitter current = %0.2e\"%((ie)),\"ampere\"\n",
+ "print \"base current = %0.2e\"%((ib)),\"ampere\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 268 example 7"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage gain = -125.00\n",
+ "power gain = 6250.00\n",
+ "error without hoe = 10.00\n",
+ "error = 21.00\n"
+ ]
+ }
+ ],
+ "source": [
+ "hie=800##ohm\n",
+ "he=50*10**-6##mho\n",
+ "hfe=-55\n",
+ "z1=2*10**3##ohm\n",
+ "curgai=hfe/(1+he*z1)\n",
+ "zi=hie\n",
+ "volgai=curgai*z1/zi\n",
+ "powgai=volgai*curgai\n",
+ "#if hoe neglected\n",
+ "av=137.5\n",
+ "hfe=-55\n",
+ "w=((av-abs(volgai))*100)/abs(volgai)\n",
+ "ap=hfe*(-av)\n",
+ "w1=((ap-powgai)*100)/powgai\n",
+ "print \"voltage gain = %0.2f\"%((volgai))\n",
+ "\n",
+ "\n",
+ "print \"power gain = %0.2f\"%((powgai))\n",
+ "print \"error without hoe = %0.2f\"%((w))\n",
+ "print \"error = %0.2f\"%((w1))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 289 example 8"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 8,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "emitter current = 1.92e-03 ampere\n",
+ "vc = 18.12 volt\n",
+ "collector emitter voltage = 8.53 volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "rb=5*10**3##ohm\n",
+ "vcc=20##volt\n",
+ "r=10*10**3##ohm\n",
+ "colres=5*10**3##ohm\n",
+ "vb=vcc*r/(r+r)\n",
+ "beta1=50\n",
+ "v1=0.6##volt\n",
+ "ib=(vb-v1)/(1+beta1*colres)\n",
+ "ic=beta1*ib\n",
+ "vc=vcc-ic*1*10**3\n",
+ "vce=vc-rb*(ic+ib)\n",
+ "print \"emitter current = %0.2e\"%((ic+ib)),\"ampere\"\n",
+ "print \"vc = %0.2f\"%((vc)),\"volt\"\n",
+ "print \"collector emitter voltage = %0.2f\"%((vce)),\"volt\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 290 example 9"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 9,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage gain = 395.49\n"
+ ]
+ }
+ ],
+ "source": [
+ "hib=25##ohm\n",
+ "hfb=0.999\n",
+ "hob=10**-6##ohm\n",
+ "colres=10*10**3##ohm\n",
+ "#voltage gain\n",
+ "curgai=hfb/(1+hob*colres)\n",
+ "zi=hib+hob*colres*curgai\n",
+ "volgai=curgai*colres/(zi)\n",
+ "print \"voltage gain = %0.2f\"%((volgai))\n",
+ "#correction required in the book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 290 example 10"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 10,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage gain = 1.00\n",
+ "input resistance = 101050.00 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "re=1*10**3##ohm\n",
+ "hie=100##ohm\n",
+ "hfe=100\n",
+ "#voltage gain\n",
+ "volgai=1/((1+(hie/(2*(1+hfe)*re))))\n",
+ "#ri\n",
+ "ri=(hie/2)+(1+hfe)*re\n",
+ "print \"voltage gain = %0.2f\"%((volgai))\n",
+ "print \"input resistance = %0.2f\"%((ri)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 292 example 11"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 11,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "emitter current = 4.16e-03 ampere\n",
+ "vce = 11.68 volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "beta1=90\n",
+ "re=2*10**3##ohm\n",
+ "rb=240*10**3##ohm\n",
+ "vcc=20\n",
+ "ib=(vcc-0.7)/(rb+(1+beta1)*(re))\n",
+ "ic=beta1*ib\n",
+ "vce=vcc-(ib+ic)*re\n",
+ "print \"emitter current = %0.2e\"%((ib+ic)),\"ampere\"\n",
+ "print \"vce = %0.2f\"%((vce)),\"volt\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 292 example 12"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 12,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage gain = -313.90\n",
+ "current gain = -100.55\n",
+ "impedance = 86666.67 ohm\n",
+ "parameters using approxmiate\n",
+ "voltage gain = -323.12\n",
+ "current gain = -110.00\n",
+ "impedance = 86666.67 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "hfe=110\n",
+ "hie=1.6*10**3##ohm\n",
+ "hoe=20*10**-6##ohm\n",
+ "colres=4.7*10**3##ohm\n",
+ "hre=2*10**-4\n",
+ "r1=470*10**3##ohm\n",
+ "curgai=-hfe/(1+hoe*colres)\n",
+ "ri=hie+hre*curgai*colres\n",
+ "volgai=curgai*colres/ri\n",
+ "y1=hoe-((hfe*hre)/(hie+1*10**3))\n",
+ "z1=1/y1\n",
+ "print \"voltage gain = %0.2f\"%((volgai))\n",
+ "print \"current gain = %0.2f\"%((curgai))\n",
+ "print \"impedance = %0.2f\"%((z1)),\"ohm\"\n",
+ "r0=z1*colres/(z1+colres)\n",
+ "curgai=-hfe\n",
+ "ri=hie\n",
+ "print \"parameters using approxmiate\"\n",
+ "volgai=curgai*(colres)/ri\n",
+ "print \"voltage gain = %0.2f\"%((volgai))\n",
+ "#correction required in the book\n",
+ "print \"current gain = %0.2f\"%((curgai))\n",
+ "print \"impedance = %0.2f\"%((z1)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 293 example 13"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 13,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "input resistance = 1.00e+07 ohm\n",
+ "voltage gain = 1.00\n",
+ "current gain = -10000.00\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "re=1*10**3##ohm\n",
+ "hie=1000##ohm\n",
+ "hfe=99\n",
+ "#inptut resistance\n",
+ "ri=hie+((1+hfe)*(hie+1+hfe*re))\n",
+ "\n",
+ "\n",
+ "print \"input resistance = %0.2e\"%((ri)),\"ohm\"##correction in the book\n",
+ "#voltage gain\n",
+ "volgai=((1+hfe)*(1+hfe)*re)/ri\n",
+ "print \"voltage gain = %0.2f\"%((volgai))\n",
+ "\n",
+ "\n",
+ "#current gain\n",
+ "curgai=-((1+hfe)*(1+hfe))\n",
+ "\n",
+ "\n",
+ "print \"current gain = %0.2f\"%((curgai))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 294 example 14"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 14,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage gain = 250.00 <180\n",
+ "input impedance = 2000.00 ohm\n",
+ "current gain = 100.00\n"
+ ]
+ }
+ ],
+ "source": [
+ "hie=2*10**3##ohm\n",
+ "beta1=100\n",
+ "colres=5*10**3##ohm\n",
+ "volgai=beta1*colres/hie\n",
+ "print \"voltage gain = %0.2f\"%((volgai)),\"<180\"\n",
+ "print \"input impedance = %0.2f\"%((hie)),\"ohm\"\n",
+ "print \"current gain = %0.2f\"%((beta1))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 294 example 15"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 15,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage gain = 253.29\n",
+ "input impedance = 1546.39\n",
+ "coordinates ic = 1.14e-03 ampere vce = 8.30 volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "colres=4.7*10**3##ohm\n",
+ "beta1=150\n",
+ "r1=12*10**3##ohm\n",
+ "vcc=15##volt\n",
+ "re=1.2*10**3##ohm\n",
+ "rac=colres*r1/(colres+r1)\n",
+ "r=2*10**3##ohm\n",
+ "#voltage gain\n",
+ "volgai=beta1*rac/r\n",
+ "print \"voltage gain = %0.2f\"%((volgai))\n",
+ "r1=75*10**3##ohm\n",
+ "r2=7.5*10**3##ohm\n",
+ "#input impedance\n",
+ "zin=(r1*r2)/(r1+r2)\n",
+ "zin=zin*r/(zin+r)\n",
+ "print \"input impedance = %0.2f\"%((zin))\n",
+ "#coordinates\n",
+ "vb=vcc*r2/(r1+r2)\n",
+ "ie=vb/re\n",
+ "vce=vcc-((colres+re)*(ie))\n",
+ "print \"coordinates ic = %0.2e\"%((ie)),\"ampere vce = %0.2f\"%((vce)),\"volt\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 296 example 16"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 16,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "current gain = 57.14\n",
+ "input impedance = 115485.71 ohm\n",
+ "voltage gain = 0.99\n",
+ "output resistance = 32558.14 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "r1=2000##ohm\n",
+ "r=900##ohm\n",
+ "hie=1200##ohm\n",
+ "hre=2*10**-4\n",
+ "hfe=60\n",
+ "hoe=25*10**-6##ampere per volt\n",
+ "curgai=(hfe)/(1+hoe*r1)\n",
+ "print \"current gain = %0.2f\"%((curgai))\n",
+ "ri=hie+(curgai*r1)\n",
+ "print \"input impedance = %0.2f\"%((ri)),\"ohm\"\n",
+ "volgai=curgai*r1/ri\n",
+ "print \"voltage gain = %0.2f\"%((volgai))\n",
+ "admita=1/ri\n",
+ "admita=hoe-(-hfe*hre)/(hie+r)\n",
+ "r=1/admita\n",
+ "print \"output resistance = %0.2f\"%((r)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 296 example 17"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 17,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage gain = -609.86\n",
+ "current gain = -60.00\n",
+ "input impedance = 501.75 ohm\n",
+ "output impedance = 5100.00 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "hfe=60\n",
+ "hie=500##ohm\n",
+ "ic=3*10**-3##ampere\n",
+ "zi=hie\n",
+ "rb=220*10**3##ohm\n",
+ "colres=5.1*10**3##ohm\n",
+ "z=colres\n",
+ "volgai=-hfe*colres/hie\n",
+ "curgai=-hfe\n",
+ "vcc=12##volt\n",
+ "ib=(vcc-0.6)/rb\n",
+ "ie=hfe*ib\n",
+ "re=0.026/ie\n",
+ "zi=hfe*re\n",
+ "z=colres\n",
+ "volgai=-colres/re\n",
+ "curgai=-hfe\n",
+ "print \"voltage gain = %0.2f\"%((volgai))\n",
+ "print \"current gain = %0.2f\"%((curgai))\n",
+ "print \"input impedance = %0.2f\"%((zi)),\"ohm\"\n",
+ "print \"output impedance = %0.2f\"%((z)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 297 example 18"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 18,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "input impedance = 1817.30 ohm\n",
+ "output impedance = 4000.00 ohm\n",
+ "voltage gain = -125.00\n",
+ "current gain = -56.79\n",
+ "parameters in re\n",
+ "input impedance = 1745.41 ohm\n",
+ "output impedance = 4000.00 ohm\n",
+ "voltage gain = -134.07\n",
+ "current gain = -58.50\n"
+ ]
+ }
+ ],
+ "source": [
+ "hie=3.2*10**3##ohm\n",
+ "hfe=100\n",
+ "r=40*10**3##ohm\n",
+ "r1=4.7*10**3##ohm\n",
+ "colres=4*10**3##ohm\n",
+ "rb=r*r1/(r+r1)\n",
+ "zi=hie*rb/(hie+rb)\n",
+ "z=colres\n",
+ "re=1.2*10**3##ohm\n",
+ "volgai=-hfe*colres/hie\n",
+ "print \"input impedance = %0.2f\"%((zi)),\"ohm\"\n",
+ "print \"output impedance = %0.2f\"%((z)),\"ohm\"\n",
+ "print \"voltage gain = %0.2f\"%((volgai))\n",
+ "curgai=-hfe*rb/(rb+hie)\n",
+ "print \"current gain = %0.2f\"%((curgai))\n",
+ "hie=833\n",
+ "#(1) load open\n",
+ "vi=1\n",
+ "ib=vi/hie\n",
+ "volgai=hfe*ib*1.5*10**3\n",
+ "#load closed\n",
+ "hoe=50\n",
+ "r2=2*10**3##ohm\n",
+ "ib=vi/(r2+hie)\n",
+ "vb=1.682\n",
+ "ib=(vb-0.6)/(rb+(1+hfe)*(re))\n",
+ "ic=hfe*ib\n",
+ "ie=ic+ib\n",
+ "re=0.026/ie\n",
+ "zi=rb*hfe*re/((rb)+(hfe*re))\n",
+ "print \"parameters in re\"\n",
+ "print \"input impedance = %0.2f\"%((zi)),\"ohm\"\n",
+ "z=colres\n",
+ "print \"output impedance = %0.2f\"%((z)),\"ohm\"\n",
+ "volgai=colres/(-re)\n",
+ "print \"voltage gain = %0.2f\"%((volgai))\n",
+ "curgai=-hfe*rb/(rb+hfe*re)\n",
+ "print \"current gain = %0.2f\"%((curgai))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 299 example 19"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 19,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage gain = -0.006\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "hfe=120\n",
+ "hie=0.02##ohm\n",
+ "r1=5.8*10**3##ohm\n",
+ "r=27*10**3##ohm\n",
+ "colres=1.5*10**3##ohm\n",
+ "re=330*10**3##ohm\n",
+ "vcc=10##volt\n",
+ "vb=vcc*r1/(r1+r)\n",
+ "rb=(r*r1)/(r+r1)\n",
+ "ib=(vb-0.7)/(rb+((1+hfe)*re))\n",
+ "volgai=-hfe*ib*2*10**3\n",
+ "print \"voltage gain = %0.3f\"%((volgai))\n",
+ "#correction required in the book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 300 example 20"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 20,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "upper frequency voltage gain = 7.21e+06 hertz\n",
+ "upper current gain = 3.61e+06 hertz\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "freque=6*10**6##hertz\n",
+ "hfe=50\n",
+ "r1=500##ohm\n",
+ "g=0.04\n",
+ "rbb=100##ohm\n",
+ "\n",
+ "\n",
+ "c1=10*10**-12##farad\n",
+ "r=1000##ohm\n",
+ "rbe=hfe/g\n",
+ "ce=g/(2*3.14*freque)\n",
+ "c1=ce+c1*(1+g*r)\n",
+ "hie=rbb+rbe\n",
+ "resist=(r1+rbb)*rbe/(r1+rbb+rbe)\n",
+ "frequ2=1/(2*3.14*resist*c1)\n",
+ "curgai=-hfe*r1/(r1+hie)\n",
+ "volgai=(-hfe*r)/(r1+hie)\n",
+ "q=volgai*frequ2\n",
+ "print \"upper frequency voltage gain = %0.2e\"%(abs(q)),\"hertz\"##correction in the book\n",
+ "q=curgai*frequ2\n",
+ "print \"upper current gain = %0.2e\"%(abs(q)),\"hertz\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 301 example 21"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 21,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "current gain = -48.78\n",
+ "input resistance = 990.24 ohm\n",
+ "voltage gain = -49.26\n",
+ "output resistance = 51428.57 ohm\n",
+ "approximate\n",
+ "current gain = -50.00\n",
+ "input resistance = 1000.00 ohm\n",
+ "voltage gain = -50.00\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "hie=1*10**3##ohm\n",
+ "hre=2*10**-4\n",
+ "hoe=25*10**-6##ampere per volt\n",
+ "hfe=50\n",
+ "colres=1*10**3##ohm\n",
+ "curgai=-hfe/(1+hoe*colres)\n",
+ "print \"current gain = %0.2f\"%((curgai))\n",
+ "ri=hie-hfe*hre/(hoe+1/colres)\n",
+ "print \"input resistance = %0.2f\"%((ri)),\"ohm\"\n",
+ "volgai=curgai*colres/ri\n",
+ "print \"voltage gain = %0.2f\"%((volgai))\n",
+ "y1=hoe-((hfe*hre)/(hie+800))\n",
+ "r1=1/y1\n",
+ "print \"output resistance = %0.2f\"%((r1)),\"ohm\"\n",
+ "#approximate\n",
+ "print \"approximate\"\n",
+ "curgai=-hfe\n",
+ "print \"current gain = %0.2f\"%((curgai))\n",
+ "ri=hie\n",
+ "print \"input resistance = %0.2f\"%((ri)),\"ohm\"\n",
+ "volgai=-hfe*colres/hie\n",
+ "print \"voltage gain = %0.2f\"%((volgai))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 301 example 22"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 22,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage gain = 174.11\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "rb1=7.5*10**3##ohm\n",
+ "rb2=6.8*10**3##ohm\n",
+ "\n",
+ "rb3=3.3*10**3##ohm\n",
+ "re=1.3*10**3##ohm\n",
+ "colres=2.2*10**3##ohm\n",
+ "beta1=120\n",
+ "vcc=18##volt\n",
+ "vb1=rb3*vcc/(rb3+rb2+rb1)\n",
+ "ie1=(vb1-0.7)/(re)\n",
+ "re1=0.026/ie1\n",
+ "re2=0.026/ie1\n",
+ "volgai=colres/re2\n",
+ "print \"voltage gain = %0.2f\"%((volgai))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 302 example 23"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 23,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "forced beta = 114.29\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "vcc=5##volt\n",
+ "colres=250##ohm\n",
+ "v1=5##volt\n",
+ "rb=25*10**3##ohm\n",
+ "beta1=200\n",
+ "vbs=0.8##volt\n",
+ "vcon=0.3##volt\n",
+ "icon=(vcc-vcon)/colres\n",
+ "ibon=icon/beta1\n",
+ "ibs=(v1-vbs)/rb\n",
+ "ic=(vcc-0.2)/colres\n",
+ "beta1=ic/ibs\n",
+ "print \"forced beta = %0.2f\"%((beta1))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 303 example 24"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 24,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "resistance r1 = 40847.46 ohm\n",
+ "resistance r3 = 2197.00 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "vb=0.6##volt\n",
+ "beta1=100\n",
+ "ic=1*10**-3##ampere\n",
+ "vce=2.5##volt\n",
+ "re=300##ohm\n",
+ "vcc=5##volt\n",
+ "ib=ic/beta1\n",
+ "ie=ic+ib\n",
+ "ve=ie*re\n",
+ "vce=vce+ve\n",
+ "r3=(vcc-vce)/ic\n",
+ "vb=ve+vb\n",
+ "r1=(vcc-vb)/(vb/(10*10**3)+(ib))\n",
+ "print \"resistance r1 = %0.2f\"%((r1)),\"ohm\"\n",
+ "print \"resistance r3 = %0.2f\"%((r3)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 304 example 25"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 25,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "input impedance q1 = 1.75e+04 ohm\n",
+ "input impedance q2 = 3.50e+06 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "vce2=7.5##volt\n",
+ "vb=0.7##volt\n",
+ "beta1=200\n",
+ "v1=25##volt\n",
+ "r1=10*10**3##ohm\n",
+ "vcc=15##volt\n",
+ "i1=(vcc-vb)/r1\n",
+ "r=(vcc-vce2)/i1\n",
+ "z1=beta1*v1/i1\n",
+ "z=v1/i1\n",
+ "print \"input impedance q1 = %0.2e\"%((z)),\"ohm\"##correction in the book\n",
+ "print \"input impedance q2 = %0.2e\"%((z1)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 305 example 26"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 26,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "make input = 0\n",
+ "ground dc\n",
+ "output resistance = 19.61 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "beta1=99\n",
+ "r1=1*10**3##ohm\n",
+ "g=beta1/r1\n",
+ "r=r1*((r1+r1)/(100))/((r1+((r1+r1)/(100))))\n",
+ "print \"make input = 0\"\n",
+ "print \"ground dc\"\n",
+ "print \"output resistance = %0.2f\"%((r)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 305 example 27"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 27,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "output resistance = 1000.00 ohm\n",
+ "input resistance very low\n",
+ "voltage gain = 19.23\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "ic=0.5*10**-3##ampere\n",
+ "rb=100*10**3##ohm\n",
+ "v1=0.026##volt\n",
+ "r1=50##ohm\n",
+ "colres=1*10**3##ohm\n",
+ "g=ic/v1\n",
+ "volgai=g*colres\n",
+ "print \"output resistance = %0.2f\"%((colres)),\"ohm\"\n",
+ "print \"input resistance very low\"##not given in the book\n",
+ "print \"voltage gain = %0.2f\"%((volgai))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 306 example 28"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 28,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "current gain = -12.27\n",
+ "voltage gain = -49.07\n",
+ "transconductance = -0.01 ampere per volt\n",
+ "transresistance = -490686.77 ohm\n",
+ "input resistance = 990.99 ohm\n",
+ "output resistance = 4444.44 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "re=4*10**3##ohm\n",
+ "r1=4*10**3##ohm\n",
+ "hie=1.1*10**3##ohm\n",
+ "resist=10*10**3##ohm\n",
+ "hfe=50\n",
+ "rb=10*10**3##ohm\n",
+ "r=1*10**3##ohm\n",
+ "colres=5*10**3##ohm\n",
+ "#(1) current gain\n",
+ "ri=rb*hie/(rb+hie)\n",
+ "curgai=(1/2.04)*((rb)/(rb+hie))*((-hfe*colres)/(colres+r1))\n",
+ "print \"current gain = %0.2f\"%((curgai))\n",
+ "#(2) voltage gain\n",
+ "volgai=curgai*r1/r\n",
+ "print \"voltage gain = %0.2f\"%((volgai))\n",
+ "#(3) tranconductance\n",
+ "conduc=volgai/r1\n",
+ "print \"transconductance = %0.2f\"%((conduc)),\"ampere per volt\"\n",
+ "#transresistance\n",
+ "resist=resist*volgai\n",
+ "print \"transresistance = %0.2f\"%((resist)),\"ohm\"\n",
+ "print \"input resistance = %0.2f\"%((ri)),\"ohm\"\n",
+ "r=(40*10**3*colres)/(40*10**3+colres)\n",
+ "print \"output resistance = %0.2f\"%((r)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 307 example 29"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 29,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "base resistance = 235000.00 ohm\n",
+ "base resistance with re\n",
+ "base resistance = 230000.00 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "beta1=500\n",
+ "ib=20*10**-6##ampere\n",
+ "re=100##ohm\n",
+ "ic=beta1*ib\n",
+ "vc=ic*0.47*10**3##voltage drop across collector resistance\n",
+ "v1=(10-vc)\n",
+ "vb=v1-0.6\n",
+ "rb=vc/ib\n",
+ "print \"base resistance = %0.2f\"%((rb)),\"ohm\"\n",
+ "ve=re*ic\n",
+ "print \"base resistance with re\"\n",
+ "b=0.6+0.1\n",
+ "rb=(v1-b)/ib\n",
+ "print \"base resistance = %0.2f\"%((rb)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 308 example 30"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 30,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "collector current = 3.00e-03 ampere\n",
+ "base current = 3.00e-05 ampere\n",
+ "emitter current = 3.00e-03 ampere\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "beta1=100\n",
+ "re=100##ohm\n",
+ "vcc=10##volt\n",
+ "colres=1.5*10**3##ohm\n",
+ "r=100*10**3##ohm\n",
+ "r1=10*10**3##ohm\n",
+ "vb=vcc*r1/(r1+r)\n",
+ "ie=0.3/re\n",
+ "ib=ie/beta1\n",
+ "print \"collector current = %0.2e\"%((ie)),\"ampere\"\n",
+ "print \"base current = %0.2e\"%((ib)),\"ampere\"\n",
+ "print \"emitter current = %0.2e\"%((ie)),\"ampere\""
+ ]
+ }
+ ],
+ "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.9"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}
diff --git a/Electronic_Devices_and_Circuits_by_J._Paul/Ch6_1.ipynb b/Electronic_Devices_and_Circuits_by_J._Paul/Ch6_1.ipynb
new file mode 100644
index 00000000..4ac77cf6
--- /dev/null
+++ b/Electronic_Devices_and_Circuits_by_J._Paul/Ch6_1.ipynb
@@ -0,0 +1,246 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 6 - BJT at High Frequency"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 337 example 1"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "transconductance g = 0.38 ampere/volt\n",
+ "input conductance gbe = 3.85e-03 ampere/volt\n",
+ "feedback conductance gbc = 3.85e-07 ampere/volt\n",
+ "base spread resistance rbb = 240.00 ohm\n",
+ "output conductance = 1.15e-06 ampere/volt\n",
+ "transition capacitance cbe = 1.22e-09 farad\n",
+ "rbc = 2.60e+06 ohm\n",
+ "rce = 8.67e+05 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "colcur=10*10**-3##ampere\n",
+ "vce=10##volt\n",
+ "hie=500##ohm\n",
+ "hoe=4*10**-5\n",
+ "hfe=100\n",
+ "hre=1*10**-4\n",
+ "fqu=50*10**6##hertz\n",
+ "q=3*10**12##farad\n",
+ "voltag=26*10**-3##volt\n",
+ "g=colcur/voltag\n",
+ "gbe=g/hfe\n",
+ "gbc=gbe*hre\n",
+ "rbb=hie-260\n",
+ "oucond=hoe-(1+hfe)*gbc\n",
+ "cbe=g/(2*3.14*fqu)\n",
+ "rbc=1/gbc\n",
+ "rce=1/oucond\n",
+ "print \"transconductance g = %0.2f\"%((g)),\"ampere/volt\"\n",
+ "print \"input conductance gbe = %0.2e\"%((gbe)),\"ampere/volt\"\n",
+ "print \"feedback conductance gbc = %0.2e\"%((gbc)),\"ampere/volt\"\n",
+ "print \"base spread resistance rbb = %0.2f\"%((rbb)),\"ohm\"\n",
+ "print \"output conductance = %0.2e\"%((oucond)),\"ampere/volt\"\n",
+ "print \"transition capacitance cbe = %0.2e\"%((cbe)),\"farad\"\n",
+ "print \"rbc = %0.2e\"%((rbc)),\"ohm\"##correction as 2.6mega ohm\n",
+ "print \"rce = %0.2e\"%((rce)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 337 example 2"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "fbeta = 1.00 hertz\n",
+ "f = 100.00 hertz\n",
+ "cbe = 3.06e-04 farad\n",
+ "rbe = 520.00 ohm\n",
+ "rbb = 80.00 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "colcur=5*10**-3##ampere\n",
+ "vce=10##volt\n",
+ "hfe=100\n",
+ "hie=600##ohm\n",
+ "cugain=10\n",
+ "fqu=10*10**6##hertz\n",
+ "\n",
+ "tracat=3*10**-12##farad\n",
+ "voltag=26*10**-3##volt\n",
+ "fbeta1=((((hfe**2)/(cugain**2))-1)/fqu**2)**(1/2)\n",
+ "fbeta1=1/fbeta1\n",
+ "fq1=hfe*fbeta1\n",
+ "cbe=colcur/(2*3.14*fq1*voltag)\n",
+ "rbe=hfe/(colcur/voltag)\n",
+ "rbb=hie-rbe\n",
+ "print \"fbeta = %0.2f\"%((fbeta1)),\"hertz\"\n",
+ "print \"f = %0.2f\"%((fq1)),\"hertz\"\n",
+ "print \"cbe = %0.2e\"%((cbe)),\"farad\"\n",
+ "print \"rbe = %0.2f\"%((rbe)),\"ohm\"\n",
+ "print \"rbb = %0.2f\"%((rbb)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 338 example 3"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "cde = 8.18e-12 farad\n",
+ "frequency = 1.50e+09 hertz\n"
+ ]
+ }
+ ],
+ "source": [
+ "w=1*10**-4##centimetre\n",
+ "em1cur=2*10**-3##ampere\n",
+ "q=47\n",
+ "voltag=26*10**-3##volt\n",
+ "cde=(em1cur*w**2)/(voltag*2*q)\n",
+ "fq1=(em1cur)/(2*3.14*cde*voltag)\n",
+ "print \"cde = %0.2e\"%((cde)),\"farad\"\n",
+ "print \"frequency = %0.2e\"%((fq1)),\"hertz\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 339 example 6"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "re = 13.00 ohm\n",
+ "falpha = 5.99e+07 hertz\n",
+ "cde = 2.05e-10 farad\n",
+ "w = 2.66e-09 second\n"
+ ]
+ }
+ ],
+ "source": [
+ "w=5*10**-4##centimetre\n",
+ "em1cur=2*10**-3##ampere\n",
+ "q=47\n",
+ "voltag=26*10**-3##volt\n",
+ "re=voltag/em1cur\n",
+ "fq1=2*q/(w**2*2*3.14)\n",
+ "cde=(em1cur*w**2)/(voltag*2*q)\n",
+ "w=(w**2)/(2*q)\n",
+ "print \"re = %0.2f\"%((re)),\"ohm\"\n",
+ "print \"falpha = %0.2e\"%((fq1)),\"hertz\"\n",
+ "print \"cde = %0.2e\"%((cde)),\"farad\"\n",
+ "print \"w = %0.2e\"%((w)),\"second\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber example 8"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "f = 1.50e+13 hertz\n",
+ "cde = 1.64e-15 farad\n"
+ ]
+ }
+ ],
+ "source": [
+ "w=10**-6##centimetre\n",
+ "em1cur=4*10**-3##ampere\n",
+ "voltag=26*10**-3##volt\n",
+ "q=47\n",
+ "cde=(em1cur*w**2)/(voltag*2*q)\n",
+ "fq1=(em1cur)/(2*3.14*cde*voltag)\n",
+ "print \"f = %0.2e\"%((fq1)),\"hertz\"\n",
+ "print \"cde = %0.2e\"%((cde)),\"farad\"##correction required in the book."
+ ]
+ }
+ ],
+ "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.9"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}
diff --git a/Electronic_Devices_and_Circuits_by_J._Paul/Ch7_1.ipynb b/Electronic_Devices_and_Circuits_by_J._Paul/Ch7_1.ipynb
new file mode 100644
index 00000000..51287177
--- /dev/null
+++ b/Electronic_Devices_and_Circuits_by_J._Paul/Ch7_1.ipynb
@@ -0,0 +1,326 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 7 - Field Effect Transistor"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 370 example 1"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "vgs = 0.70 volt\n",
+ "id = 1.51e-03 ampere\n",
+ "vds = 11.23 volt\n",
+ "voltage gain = -21.25\n"
+ ]
+ }
+ ],
+ "source": [
+ "from sympy import symbols, solve\n",
+ "rd=12*10**3##ohm\n",
+ "r=1*10**6##ohm\n",
+ "resour=470##ohm\n",
+ "vdd=30##volt\n",
+ "idss=3*10**-3##ampere\n",
+ "vd=2.4##volt\n",
+ "v = symbols('v')\n",
+ "vgs=[0.24, 2.175, 1.41]\n",
+ "expr = vgs[0]*v**2+vgs[1]*v+vgs[2]\n",
+ "vgs=-solve(expr,v)[1]\n",
+ "vgs=0.7\n",
+ "id=idss*((1-(vgs/vd)))**2\n",
+ "vds=vdd-id*(rd+resour)\n",
+ "g=(2*idss/vd)*(1-((vgs/vd)))\n",
+ "volgai=-g*rd\n",
+ "print \"vgs = %0.2f\"%((vgs)),\"volt\"\n",
+ "print \"id = %0.2e\"%((id)),\"ampere\"\n",
+ "print \"vds = %0.2f\"%((vds)),\"volt\"\n",
+ "print \"voltage gain = %0.2f\"%((volgai))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 371 example 2"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "r1 = 2000.00 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from __future__ import division\n",
+ "idss=1*10**-3##ampere\n",
+ "pinvol=1##volt\n",
+ "q=10##volt\n",
+ "rd=56*10**3##ohm\n",
+ "vdd=24##volt\n",
+ "dracur=(vdd-q)/rd\n",
+ "vgs=0.5\n",
+ "r1=vgs/dracur\n",
+ "print \"r1 = %0.2f\"%((r1)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 372 example 4"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "id = 2.25e-03 ampere\n",
+ "vds = 10.50 volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "ids=4*10**-3##ampere\n",
+ "vp=4##volt\n",
+ "r=1.3*10**3#ohm\n",
+ "r1=200*10**3##ohm\n",
+ "vdd=60##volt\n",
+ "drares=18*10**3##ohm\n",
+ "soresi=4*10**3##ohm\n",
+ "rth=(r*r1)/(r+r1)\n",
+ "vth=r1*(1-vdd)/(1500*10**3)\n",
+ "id=-2.25*10**-3\n",
+ "vds=-vdd-(drares+soresi)*id\n",
+ "print \"id = %0.2e\"%(abs(id)),\"ampere\"\n",
+ "print \"vds = %0.2f\"%(abs(vds)),\"volt\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 373 example 5"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "source resistance = 156.25 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "idss=10*10**-3##ampere\n",
+ "pinvol=-1##volt\n",
+ "ids=6.4*10**-3##ampere\n",
+ "vgs=-(sqrt(ids/idss)-(1))*pinvol\n",
+ "r=pinvol/ids\n",
+ "print \"source resistance = %0.2f\"%(abs(r)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 374 example 6"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "duration = 1.39e-07 second\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import log\n",
+ "v1=2##volt\n",
+ "vgs=4##volt\n",
+ "voltag=5##volt\n",
+ "q=5*10**-3##ampere per volt square\n",
+ "id=q*(vgs-v1)\n",
+ "durati=10**-7*log(4)\n",
+ "\n",
+ "print \"duration = %0.2e\"%((durati)),\"second\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 7 example 7"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "max transconductance = 4.00e-04 mho\n"
+ ]
+ }
+ ],
+ "source": [
+ "idss=1*10**-3##ampere\n",
+ "pinvol=-5##volt\n",
+ "tracon=(2*idss)/abs(pinvol)\n",
+ "print \"max transconductance = %0.2e\"%((tracon)),\"mho\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 376 example 8"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "vgs = 3.24 volt\n",
+ "rd = 13527.86 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "vdd=10##volt\n",
+ "beta1=10**-4##ampere per square volt\n",
+ "ids=0.5*10**-3##ampere\n",
+ "voltag=1##volt\n",
+ "vgs=(sqrt(ids/beta1)+(1))\n",
+ "rd=(vdd-vgs)/ids\n",
+ "\n",
+ "print \"vgs = %0.2f\"%((vgs)),\"volt\"\n",
+ "print \"rd = %0.2f\"%((rd)),\"ohm\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 376 example 9"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 8,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "point 10.75 >2.00 volt\n",
+ "vds greater than 2volt the point in pinch\n"
+ ]
+ }
+ ],
+ "source": [
+ "v1=2##volt\n",
+ "ids=4*10**-3##ampere\n",
+ "\n",
+ "rd=910##ohm\n",
+ "r1=3*10**3##ohm\n",
+ "r=12*1**6##ohm\n",
+ "r11=8.57*10**6##ohm\n",
+ "vdd=24##volt\n",
+ "vg=vdd*(r11/(r+(r11)))\n",
+ "id=3.39*10**-3\n",
+ "vgsq=vg-id*r1\n",
+ "vdsq=vdd-id*(rd+r1)\n",
+ "vdgq=vdsq-vgsq\n",
+ "print \"point %0.2f\"%(vdsq),\">%0.2f\"%(v1),\"volt\"\n",
+ "print \"vds greater than 2volt the point in pinch\""
+ ]
+ }
+ ],
+ "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.9"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}
diff --git a/Electronic_Devices_and_Circuits_by_J._Paul/Ch8_1.ipynb b/Electronic_Devices_and_Circuits_by_J._Paul/Ch8_1.ipynb
new file mode 100644
index 00000000..b498973e
--- /dev/null
+++ b/Electronic_Devices_and_Circuits_by_J._Paul/Ch8_1.ipynb
@@ -0,0 +1,256 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 8 - FET Amplifier"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 399 example 1"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage gain = -12.00\n",
+ "voltage gain = -11.99\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "freque=5*10**3##hertz\n",
+ "#(1)\n",
+ "g=2*10**-3##ampere per volt\n",
+ "rd=10*10**3##ohm\n",
+ "r1=30*10**3##ohm\n",
+ "r12=r1*r1/(r1+r1)\n",
+ "volgai=-(g*r12*rd)/(r12+rd)\n",
+ "print \"voltage gain = %0.2f\"%((volgai))\n",
+ "#correction : r12 should be taken as 15*10**3ohm in book\n",
+ "#(2) capacitance included\n",
+ "c=0.025*10**-6##farad\n",
+ "frequ1=1/((2*3.14*(((rd*r1)/(rd+r1))+r1))*c)\n",
+ "volgai=(volgai/(sqrt((1+(frequ1/freque)**2))))\n",
+ "\n",
+ "print \"voltage gain = %0.2f\"%((volgai))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 400 example 2"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage gain -18.00\n"
+ ]
+ }
+ ],
+ "source": [
+ "rd=80*10**3##ohm\n",
+ "r1=8*10**3##ohm\n",
+ "rd12=5*10**3##ohm\n",
+ "rd1=rd*r1/(rd+r1)\n",
+ "u=30\n",
+ "volgai=-(u*rd1)/(rd1+rd12)\n",
+ "\n",
+ "print \"voltage gain %0.2f\"%((volgai))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 401 example 3"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage gain = -1.18\n"
+ ]
+ }
+ ],
+ "source": [
+ "r1=60*10**3##ohm\n",
+ "volgai=-17.7\n",
+ "rg=80*10**3##ohm\n",
+ "volgai=((volgai*rg)/(1-volgai))/((rg/(1-volgai))+r1)\n",
+ "print \"voltage gain = %0.2f\"%((volgai))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 405 example 6"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "r1 = 500.00 ohm\n",
+ "effective input resistance = 1.25 r3ohm\n",
+ "r2 = 1500.00 ohm\n",
+ "voltage gain = 0.98 av`\n"
+ ]
+ }
+ ],
+ "source": [
+ "vds=14##volt\n",
+ "idq=3*10**-3##ampere\n",
+ "vdd=20##volt\n",
+ "g=2*10**-2\n",
+ "rd=50*10**3##ohm\n",
+ "vgs=-1.5##volt\n",
+ "w=(vdd-vds)/idq\n",
+ "r1=-vgs/idq\n",
+ "r2=w-r1\n",
+ "inpres=1/(1-(0.8*((r1)/(r1+r2))))\n",
+ "volgai=(r1+r2)/(r1+r2+(1/(g)))\n",
+ "print \"r1 = %0.2f\"%((r1)),\"ohm\"\n",
+ "print \"effective input resistance = %0.2f\"%((inpres)),\"r3ohm\"\n",
+ "print \"r2 = %0.2f\"%((r2)),\"ohm\"\n",
+ "\n",
+ "\n",
+ "print \"voltage gain = %0.2f\"%((volgai)),\"av`\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 405 example 7"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "output voltage = -186.17 volt\n"
+ ]
+ }
+ ],
+ "source": [
+ "rg=40*10**3##ohm\n",
+ "voltag=(1-6*50)*3.3*10**3/(5.3*10**3)\n",
+ "\n",
+ "print \"output voltage = %0.2f\"%((voltag)),\"volt\"#\n",
+ "#correction required in the book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 406 example 9"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage gain = -25.00\n",
+ "frequency = 1.59e+07 hertz\n",
+ "output capacitance = 2.00e-12 farad\n",
+ "req = 5000.00 ohm\n"
+ ]
+ }
+ ],
+ "source": [
+ "u=50\n",
+ "rd=10*10**3##ohm\n",
+ "cgs=5*10**-12##farad\n",
+ "cgd=2*10**-12##farad\n",
+ "cds=2*10**-12##farad\n",
+ "freque=3##decibel\n",
+ "g=u/rd\n",
+ "volgai=-u*rd/(rd+rd)\n",
+ "req=rd*rd/(rd+rd)\n",
+ "frequ1=1/(2*3.14*cgd*req)\n",
+ "print \"voltage gain = %0.2f\"%((volgai))\n",
+ "#correction required in book\n",
+ "print \"frequency = %0.2e\"%((frequ1)),\"hertz\"\n",
+ "capac1=cgd*(1+g)\n",
+ "print \"output capacitance = %0.2e\"%((capac1)),\"farad\"\n",
+ "print \"req = %0.2f\"%((req)),\"ohm\"\n"
+ ]
+ }
+ ],
+ "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.9"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}
diff --git a/Electronic_Devices_and_Circuits_by_J._Paul/Ch9_1.ipynb b/Electronic_Devices_and_Circuits_by_J._Paul/Ch9_1.ipynb
new file mode 100644
index 00000000..522ff62b
--- /dev/null
+++ b/Electronic_Devices_and_Circuits_by_J._Paul/Ch9_1.ipynb
@@ -0,0 +1,296 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 9 - Multistage Amplifier"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 424 example 1"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "frequency1 = 50982.45 hertz\n",
+ "frequency2 = 196145.92 hertz\n",
+ "frequency = 269258240.36 hertz\n",
+ "frequency = 76822.13 hertz\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "from __future__ import division\n",
+ "#(1) frequency\n",
+ "freque=100*10**3*sqrt(2**(1/3)-(1))\n",
+ "frequ2=100*10**3/sqrt(2**(1/3)-(1))\n",
+ "print \"frequency1 = %0.2f\"%((freque)),\"hertz\"\n",
+ "print \"frequency2 = %0.2f\"%((frequ2)),\"hertz\"\n",
+ "#(2)frequency\n",
+ "freq11=100*10**6##hertz\n",
+ "freq12=150*10**6##hertz\n",
+ "freq13=200*10**6##hertz\n",
+ "freq21=100*10**3##hertz\n",
+ "freq22=150*10**3##hertz\n",
+ "freq23=200*10**3##hertz\n",
+ "frequ1=sqrt(freq11**2+freq12**2+freq13**2)\n",
+ "print \"frequency = %0.2f\"%((frequ1)),\"hertz\"##correction in the book 269.25mega hertz\n",
+ "frequ1=1/sqrt((1/(freq21**2))+(1/(freq22**2))+(1/(freq23**2)))\n",
+ "print \"frequency = %0.2f\"%((frequ1)),\"hertz\"##correction in the book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 424 example 2"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "coupling capacitance = 5.48e-06 /r`\n"
+ ]
+ }
+ ],
+ "source": [
+ "freque=60##hertz\n",
+ "frequ1=freque*0.484\n",
+ "cb=1/(frequ1*2*3.14*10**3)\n",
+ "print \"coupling capacitance = %0.2e\"%((cb)),\"/r`\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 425 example 3"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "cb = 6.28e-08 farad\n",
+ "cb = 8.92e-08 farad\n",
+ "gain of each stage = 1.06e-03\n"
+ ]
+ }
+ ],
+ "source": [
+ "g=10*10**-3##ampere per volt\n",
+ "rd=5.5*10**3##ohm\n",
+ "rg=1*10**6##ohm\n",
+ "#(1) cb frequency 1decibel to 10hertz\n",
+ "ri=rg\n",
+ "r1=(rd*8*10**3)/(rd+8*10**3)\n",
+ "cb=10**-6/(3.14*5.07)\n",
+ "print \"cb = %0.2e\"%((cb)),\"farad\"\n",
+ "#(2) cb\n",
+ "cb=(cb*(5)/(3.52))\n",
+ "print \"cb = %0.2e\"%((cb)),\"farad\"\n",
+ "#(3) gain\n",
+ "a1=g**2*(3.26**2)\n",
+ "print \"gain of each stage = %0.2e\"%((a1))\n",
+ "#correction required in the book"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 427 example 4"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "upper frequency = 78895.46 hertz\n",
+ "lower frequency = 20408.16 hertz\n"
+ ]
+ }
+ ],
+ "source": [
+ "freque=40*10**3##hertz\n",
+ "frequ1=freque/0.507\n",
+ "print \"upper frequency = %0.2f\"%((frequ1)),\"hertz\"\n",
+ "frequ1=freque/1.96\n",
+ "print \"lower frequency = %0.2f\"%((frequ1)),\"hertz\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 427 example 5"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "overal voltage gain = 62.01 decibel\n",
+ "lower frequency of each = 31.70 hertz\n",
+ "lower frequency overal = 62.13 hertz\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import log10\n",
+ "g=2.6*10**-3##ampere per volt\n",
+ "rd=7.7*10**3##ohm\n",
+ "rd1=12*10**3##ohm\n",
+ "cb=0.005*10**-6##farad\n",
+ "#(1) voltage gain\n",
+ "volgai=g*((1/rd)+1/rd1+1/(1*10**3))\n",
+ "volgai=(20*(log10(10.8)))*3\n",
+ "print \"overal voltage gain = %0.2f\"%((volgai)),\"decibel\"##correction in the book\n",
+ "#(2) lower frequency\n",
+ "r=rd*rd1/(rd+rd1)\n",
+ "freque=1/((2*3.14)*(r+1*10**6)*cb)\n",
+ "print \"lower frequency of each = %0.2f\"%((freque)),\"hertz\"\n",
+ "#(3) overal lower frequency\n",
+ "freque=freque*1.96\n",
+ "print \"lower frequency overal = %0.2f\"%((freque)),\"hertz\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 429 example 6"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "voltage gain = 2851.60\n",
+ "cb = 2.61e-06 farad\n",
+ "cb <= 1.64e-05 farad\n"
+ ]
+ }
+ ],
+ "source": [
+ "hfe=50\n",
+ "hie=1.1*10**3##ohm\n",
+ "#(1) gain\n",
+ "r1=2*10**3##ohm\n",
+ "volgai=-hfe*r1/(hie)\n",
+ "r11=25*10**3*hie/(25*10**3+hie)\n",
+ "r11=r1*r11/(r1+r11)\n",
+ "volga1=-hfe*r11/hie\n",
+ "volgai=volgai*volga1\n",
+ "print \"voltage gain = %0.2f\"%((volgai))\n",
+ "freque=20##hertz\n",
+ "ri=25*10**3*hie/(25*10**3+hie)\n",
+ "cb=1/(2*3.14*(ri+r1)*(freque))\n",
+ "print \"cb = %0.2e\"%((cb)),\"farad\"\n",
+ "cb=1/(2*3.14*3.05*10**3*10/3.14)\n",
+ "print \"cb <= %0.2e\"%((cb)),\"farad\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## PageNumber 432 example 8"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "theta1 = 5.71\n",
+ "phase constant 10f1<=f<=0.1f11\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import atan, degrees\n",
+ "theta1=degrees(atan(0.1))\n",
+ "print \"theta1 = %0.2f\"%((theta1))\n",
+ "print \"phase constant 10f1<=f<=0.1f11\""
+ ]
+ }
+ ],
+ "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.9"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}
diff --git a/Electronic_Devices_and_Circuits_by_J._Paul/screenshots/4CollCurr_1.png b/Electronic_Devices_and_Circuits_by_J._Paul/screenshots/4CollCurr_1.png
new file mode 100644
index 00000000..e8e0b539
--- /dev/null
+++ b/Electronic_Devices_and_Circuits_by_J._Paul/screenshots/4CollCurr_1.png
Binary files differ
diff --git a/Electronic_Devices_and_Circuits_by_J._Paul/screenshots/4MaxNBasRes_1.png b/Electronic_Devices_and_Circuits_by_J._Paul/screenshots/4MaxNBasRes_1.png
new file mode 100644
index 00000000..7ad2da7d
--- /dev/null
+++ b/Electronic_Devices_and_Circuits_by_J._Paul/screenshots/4MaxNBasRes_1.png
Binary files differ
diff --git a/Electronic_Devices_and_Circuits_by_J._Paul/screenshots/4saturationMode_1.png b/Electronic_Devices_and_Circuits_by_J._Paul/screenshots/4saturationMode_1.png
new file mode 100644
index 00000000..d3931c3f
--- /dev/null
+++ b/Electronic_Devices_and_Circuits_by_J._Paul/screenshots/4saturationMode_1.png
Binary files differ