summaryrefslogtreecommitdiff
path: root/sample_notebooks/vedantharish
diff options
context:
space:
mode:
Diffstat (limited to 'sample_notebooks/vedantharish')
-rwxr-xr-xsample_notebooks/vedantharish/Chapter1.ipynb323
-rwxr-xr-xsample_notebooks/vedantharish/Chapter1_1.ipynb318
2 files changed, 641 insertions, 0 deletions
diff --git a/sample_notebooks/vedantharish/Chapter1.ipynb b/sample_notebooks/vedantharish/Chapter1.ipynb
new file mode 100755
index 00000000..e0d93a7e
--- /dev/null
+++ b/sample_notebooks/vedantharish/Chapter1.ipynb
@@ -0,0 +1,323 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:436cc68a3a8c24e3b7ac0015b43ecd16f91e5c0db4fe34a46ea3f2fb33073dd6"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 1: Semiconductor Diodes"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.1(a), Page No.: 29"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Variable Declaration\n",
+ "V=0.5 #voltage of diode in V\n",
+ "I=2 #current of diode in mA\n",
+ "\n",
+ "#Calculation\n",
+ "R=(V/I)*1000 #resistance of diode,\n",
+ " #converting current in Ampere from mA in calculation\n",
+ "\n",
+ "#Result\n",
+ "print \"Resistance is \", R ,\"ohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistance is 250.0 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.1(b), Page No.: 29"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Variable Declaration\n",
+ "V=0.8 #voltage of diode in V\n",
+ "I=20 #current of diode in mA\n",
+ "\n",
+ "#Calculation\n",
+ "R=(V/I)*1000 #resistance of diode,\n",
+ " #converting current in Ampere from mA in calculation\n",
+ "\n",
+ "#Result\n",
+ "print \"Resistance is \", R ,\"ohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistance is 40.0 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.1(c), Page No.:29"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Variable Declaration\n",
+ "V= -10 #voltage of diode in V\n",
+ "I= -1 #current of diode in microAmpere\n",
+ "\n",
+ "#Calculation\n",
+ "R=(V/I)*1000*1000 #resistance of diode,\n",
+ " #converting current in Ampere from microAmpere in calculation\n",
+ "R=V/I*(1000/1000)*(1000/1000)#converting ohm into Mega-ohm \n",
+ "#Result\n",
+ "print \"Resistance is \", R ,\"Mega-ohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistance is 10 Mega-ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.2(a), Page NO.:31"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Variable Declaration\n",
+ "I=2 #diode current in mA\n",
+ "I1=4 #diode current choosen by 2 mA swing above given diode current of 2 mA.\n",
+ "I2=0 #diode current choosen by 2 mA swing below given diode current of 2 mA.\n",
+ "V1=0.76 #diode voltage at I1= 4 mA.\n",
+ "V2=0.65 #diode voltage at I2= 0 mA.\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "R=((V1-V2)/(I1-I2))*1000 #R is AC resistance,\n",
+ " #V1-V2 is change in voltage and I1-I2 is chnage in current.\n",
+ " #multiplying by 1000 for converting current into A from mA.\n",
+ "#RESULT\n",
+ "print \"Ac resistance is\",R,\"ohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ac resistance is 27.5 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.2(b),Page No.:31"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Variable Declaration\n",
+ "I=25 #diode current in mA\n",
+ "I1=30 #diode current choosen by 5 mA swing above given diode current of 25 mA.\n",
+ "I2=20 #diode current choosen by 5 mA swing below given diode current of 25 mA.\n",
+ "V1=0.8 #diode voltage at I1= 30 mA.\n",
+ "V2=0.78 #diode voltage at I2= 20 mA.\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "R=((V1-V2)/(I1-I2))*1000 #R is AC resistance,\n",
+ " #V1-V2 is change in voltage and I1-I2 is chnage in current.\n",
+ " #multiplying by 1000 for converting current into A from mA.\n",
+ "#RESULT\n",
+ "print \"Ac resistance is\",R,\"ohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ac resistance is 2.0 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.2(c), Page No.:32"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Variable Declaration\n",
+ "\n",
+ "I1=2 #diode current in mA. \n",
+ "V1=0.7 #diode voltage in V.\n",
+ "\n",
+ "I2=25 #diode current in mA.\n",
+ "V2=0.79 #diode voltage in V.\n",
+ "\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "R1=(V1/I1)*1000 #R1 is DC resistance, \n",
+ " #multiplying by 1000 for converting current into A from mA.\n",
+ "\n",
+ "R2=(V2/I2)*1000 #R2 is DC rresistance \n",
+ " #mulipying by 1000 for converting current into A from mA.\n",
+ "\n",
+ "#RESULT\n",
+ "print \"Dc resistance at 2 mA is\",R1,\"ohm, which far exceeds AC resistance of 27.5 ohm\"\n",
+ "\n",
+ "print \"DC resistance at 25 mA is\",R2,\"ohm, which far exceeds AC resistance of 2 ohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Dc resistance at 2 mA is 350.0 ohm, which far exceeds AC resistance of 27.5 ohm\n",
+ "DC resistance at 25 mA is 31.6 ohm, which far exceeds AC resistance of 2 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.3, Page No.: 48-49"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Variable Declaration\n",
+ "\n",
+ "V=10 #zener voltage in V.\n",
+ "T=0.072 #Temperature coefficient.\n",
+ "T1=100 #given temperature in celsius.\n",
+ "To=25 #reference temperature in celsius\n",
+ "\n",
+ "#calculation\n",
+ "\n",
+ "V1=(T*V*(T1-To))/100 #nominal voltage for zener diode in V.\n",
+ "\n",
+ " #Temperature coefficient is positive.\n",
+ " #new zener voltage is defined by V2.\n",
+ "V2=V+V1\n",
+ "\n",
+ "#RESULT\n",
+ "\n",
+ "print \"Voltage for zener diode is\",V2,\"V\"\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Voltage for zener diode is 10.54 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/sample_notebooks/vedantharish/Chapter1_1.ipynb b/sample_notebooks/vedantharish/Chapter1_1.ipynb
new file mode 100755
index 00000000..2a2734b5
--- /dev/null
+++ b/sample_notebooks/vedantharish/Chapter1_1.ipynb
@@ -0,0 +1,318 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:3b07252198e90cfd9ac3c1a323508af3c3781f3c224f206ef55b7d5cdbd305fc"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 1: Semiconductor Diodes"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.1(a), Page No.: 29"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Variable Declaration\n",
+ "V=0.5 #voltage of diode in V\n",
+ "I=2 #current of diode in mA\n",
+ "\n",
+ "#Calculation\n",
+ "R=(V/I)*1000 #resistance of diode,\n",
+ " #converting current in Ampere from mA in calculation\n",
+ "\n",
+ "#Result\n",
+ "print \"Resistance is \", R ,\"ohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistance is 250.0 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.1(b), Page No.: 29"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Variable Declaration\n",
+ "V=0.8 #voltage of diode in V\n",
+ "I=20 #current of diode in mA\n",
+ "\n",
+ "#Calculation\n",
+ "R=(V/I)*1000 #resistance of diode,\n",
+ " #converting current in Ampere from mA in calculation\n",
+ "\n",
+ "#Result\n",
+ "print \"Resistance is \", R ,\"ohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistance is 40.0 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.1(c), Page No.:29"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Variable Declaration\n",
+ "V= -10 #voltage of diode in V\n",
+ "I= -1 #current of diode in microAmpere\n",
+ "\n",
+ "#Calculation\n",
+ "R=(V/I)*1000*1000 #resistance of diode,\n",
+ " #converting current in Ampere from microAmpere in calculation\n",
+ "R=V/I*(1000/1000)*(1000/1000)#converting ohm into Mega-ohm \n",
+ "#Result\n",
+ "print \"Resistance is \", R ,\"Mega-ohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistance is 10 Mega-ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.2(a), Page NO.:31"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Variable Declaration\n",
+ "I=2 #diode current in mA\n",
+ "I1=4 #diode current choosen by 2 mA swing above given diode current of 2 mA.\n",
+ "I2=0 #diode current choosen by 2 mA swing below given diode current of 2 mA.\n",
+ "V1=0.76 #diode voltage at I1= 4 mA.\n",
+ "V2=0.65 #diode voltage at I2= 0 mA.\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "R=((V1-V2)/(I1-I2))*1000 #R is AC resistance,\n",
+ " #V1-V2 is change in voltage and I1-I2 is chnage in current.\n",
+ " #multiplying by 1000 for converting current into A from mA.\n",
+ "#RESULT\n",
+ "print \"Ac resistance is\",R,\"ohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ac resistance is 27.5 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.2(b),Page No.:31"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Variable Declaration\n",
+ "I=25 #diode current in mA\n",
+ "I1=30 #diode current choosen by 5 mA swing above given diode current of 25 mA.\n",
+ "I2=20 #diode current choosen by 5 mA swing below given diode current of 25 mA.\n",
+ "V1=0.8 #diode voltage at I1= 30 mA.\n",
+ "V2=0.78 #diode voltage at I2= 20 mA.\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "R=((V1-V2)/(I1-I2))*1000 #R is AC resistance,\n",
+ " #V1-V2 is change in voltage and I1-I2 is chnage in current.\n",
+ " #multiplying by 1000 for converting current into A from mA.\n",
+ "#RESULT\n",
+ "print \"Ac resistance is\",R,\"ohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ac resistance is 2.0 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.2(c), Page No.:32"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Variable Declaration\n",
+ "\n",
+ "I1=2 #diode current in mA. \n",
+ "V1=0.7 #diode voltage in V.\n",
+ "\n",
+ "I2=25 #diode current in mA.\n",
+ "V2=0.79 #diode voltage in V.\n",
+ "\n",
+ "\n",
+ "#Calculation\n",
+ "\n",
+ "R1=(V1/I1)*1000 #R1 is DC resistance, \n",
+ " #multiplying by 1000 for converting current into A from mA.\n",
+ "\n",
+ "R2=(V2/I2)*1000 #R2 is DC rresistance \n",
+ " #mulipying by 1000 for converting current into A from mA.\n",
+ "\n",
+ "#RESULT\n",
+ "print \"Dc resistance at 2 mA is\",R1,\"ohm, which far exceeds AC resistance of 27.5 ohm\"\n",
+ "\n",
+ "print \"DC resistance at 25 mA is\",R2,\"ohm, which far exceeds AC resistance of 2 ohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Dc resistance at 2 mA is 350.0 ohm, which far exceeds AC resistance of 27.5 ohm\n",
+ "DC resistance at 25 mA is 31.6 ohm, which far exceeds AC resistance of 2 ohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.3, Page No.: 48-49"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "\n",
+ "#Variable Declaration\n",
+ "\n",
+ "V=10 #zener voltage in V.\n",
+ "T=0.072 #Temperature coefficient.\n",
+ "T1=100 #given temperature in celsius.\n",
+ "To=25 #reference temperature in celsius\n",
+ "\n",
+ "#calculation\n",
+ "\n",
+ "V1=(T*V*(T1-To))/100 #nominal voltage for zener diode in V.\n",
+ "\n",
+ " #Temperature coefficient is positive.\n",
+ " #new zener voltage is defined by V2.\n",
+ "V2=V+V1\n",
+ "\n",
+ "#RESULT\n",
+ "\n",
+ "print \"Voltage for zener diode is\",V2,\"V\"\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Voltage for zener diode is 10.54 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file