summaryrefslogtreecommitdiff
path: root/sample_notebooks
diff options
context:
space:
mode:
Diffstat (limited to 'sample_notebooks')
-rwxr-xr-xsample_notebooks/AlokDadlani/ALOK_DADLANI_1.ipynb181
-rwxr-xr-xsample_notebooks/AshvaniKumar/CH2.ipynb300
-rwxr-xr-xsample_notebooks/MayurSabban/ChapterNo04.ipynb257
-rwxr-xr-xsample_notebooks/MohdAsif/Chapter5.ipynb247
-rwxr-xr-xsample_notebooks/MohdRizwan/Chapter8.ipynb253
-rwxr-xr-xsample_notebooks/MohdRizwan/Chapter8_1.ipynb253
-rwxr-xr-xsample_notebooks/Mohdarif/Chapter2.ipynb239
-rwxr-xr-xsample_notebooks/NishthaRani/CH8(1).ipynb378
-rwxr-xr-xsample_notebooks/NishthaRani/CH8.ipynb378
-rwxr-xr-xsample_notebooks/SINDHUARROJU/Chapter10.ipynb410
-rwxr-xr-xsample_notebooks/Suhaib Alam/chapter-4.ipynb380
-rwxr-xr-xsample_notebooks/Suhaib Alam/chapter-4_1.ipynb380
-rwxr-xr-xsample_notebooks/yashwanth kumarmada/sample_notes.ipynb414
-rwxr-xr-xsample_notebooks/yashwanth kumarmada/sample_notes_1.ipynb480
14 files changed, 4550 insertions, 0 deletions
diff --git a/sample_notebooks/AlokDadlani/ALOK_DADLANI_1.ipynb b/sample_notebooks/AlokDadlani/ALOK_DADLANI_1.ipynb
new file mode 100755
index 00000000..fb112015
--- /dev/null
+++ b/sample_notebooks/AlokDadlani/ALOK_DADLANI_1.ipynb
@@ -0,0 +1,181 @@
+{
+ "metadata": {
+ "celltoolbar": "Raw Cell Format",
+ "name": "",
+ "signature": "sha256:3b06b8823767b3825269a747c05fd26d974c2716df62f30b0a870614bf61c112"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Introduction To Special Relativity And Space Science (By S.P. Singh)"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "CHAPTER NUMBER 1 : Interference Diffraction and Polarization"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "EXAMPLE 1.1 : (PAGE NUMBER 46)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "#Given that\n",
+ "D=80# separation between source and screen in cm\n",
+ "d=0.18# separation between sources in cm \n",
+ "n=4# order of fringe\n",
+ "x_n=1.08# distance from central bright fringe in cm \n",
+ "print \"Standard formula used x_n= n*lambda1*D/d \"\n",
+ "\n",
+ "lambda1=d*x_n/(D*n)*1e7\n",
+ "print \"Wavelength of light used is\" ,lambda1, \"Angstrom.\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Standard formula used x_n= n*lambda1*D/d \n",
+ "Wavelength of light used is 6075.0 Angstrom.\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "EXAMPLE NUMBER 1.2 : (PAGE NUMBER 47)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "#Given that\n",
+ "beta=0.0320#fringe width in cm\n",
+ "D=100# separation between source and screen in cm\n",
+ "d=0.184# separation between sources in cm \n",
+ "print \" Standard formula used beta=lambda1*D/d \"\n",
+ "lambda1=d*beta/D*1e8\n",
+ "print \"Wavelength of light used is\" ,lambda1,\"Angstrom.\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Standard formula used beta=lambda1*D/d \n",
+ "Wavelength of light used is 5888.0 Angstrom.\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "EXAMPLE NUMBER 1.3 : (Page Number 47)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ " #Given that\n",
+ "beta=0.02 #fringe width in cm\n",
+ "D=100 # separation between source and screen in cm\n",
+ "u=30 # separation between slit and convex lens in cm\n",
+ "I=0.7 # separation between two images of slits on screen in cm\n",
+ "print\" Standard formula used beta=lambda1*D/d \" \n",
+ "v=100-u\n",
+ "O=I*u/v\n",
+ "d=O\n",
+ "lambda1=d*beta/D*1e8\n",
+ "print\" Wavelength of light used is\",lambda1, \"Angstrom.\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Standard formula used beta=lambda1*D/d \n",
+ " Wavelength of light used is 6000.0 Angstrom.\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "EXAMPLE NUMBER 1.4 : (Page Number 47)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "#Given that\n",
+ "x_n=1.88# fringe separation of nth fringe from central fringe in cm \n",
+ "N=20# order of fringe\n",
+ "beta=0.02#fringe width in cm\n",
+ "D=120# separation between source and eyepiece in cm\n",
+ "d=0.076# separation between sources in cm \n",
+ "print \" Standard formula used beta= lambda1*D/d \"\n",
+ "beta=x_n/N # calculation of angle formed\n",
+ "lambda1=d*beta/D*1e8 # calculation of Wavelength of light\n",
+ "print \" Wavelength of light used is\", round(lambda1,4) , \"Angstrom.\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Standard formula used beta= lambda1*D/d \n",
+ " Wavelength of light used is 5953.3333 Angstrom.\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/sample_notebooks/AshvaniKumar/CH2.ipynb b/sample_notebooks/AshvaniKumar/CH2.ipynb
new file mode 100755
index 00000000..66f57963
--- /dev/null
+++ b/sample_notebooks/AshvaniKumar/CH2.ipynb
@@ -0,0 +1,300 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:e3537477beffef32716056a02b1119855be97d741374cf7c8e1075a3a804210f"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Ch-2, Optical Fibers & its types"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Exa 2.1 ; page 146"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "#Given data :\n",
+ "n1=1.40 #refractive index\n",
+ "delta=1 #relative refractive index difference in %\n",
+ "#Formula : n2/n1=1-delta\n",
+ "n2=n1*(1-delta/100) #refractive index(unitless)\n",
+ "print \"Refractive index of cladding is\",n2"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Refractive index of cladding is 1.386\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Exa 2.2 ; page 149"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "from numpy import sin, arcsin, pi\n",
+ "#Given data :\n",
+ "fi_o=22 #in Degree\n",
+ "delta=3 #relative refractive index difference in %\n",
+ "#Part (a) :\n",
+ "#Formula : NA=sin(fi_o).....(max)\n",
+ "NA=sin(fi_o*pi/180) #Numerical Aperture(Unitless)\n",
+ "print \"Numerical Aperture : \",round(NA,2)\n",
+ "#Part (b) :\n",
+ "#Formula : n2/n1=1-delta\n",
+ "#Let say, n2/n1=n2byn1\n",
+ "n2byn1=(1-delta/100) #refractive index(unitless)\n",
+ "#Formula : sin(fi_C)=n2/n1 \n",
+ "fi_c=arcsin(n2byn1) #in degree\n",
+ "print \"Critical Angle at core cladding interface is\",round(fi_c,2),\"Degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Numerical Aperture : 0.37\n",
+ "Critical Angle at core cladding interface is 1.33 Degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Exa 2.3; page 156"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "from numpy import sqrt\n",
+ "#Given data :\n",
+ "delta=0.45 #relative refractive index difference in %\n",
+ "fi_o=0.115 #in Radian\n",
+ "c=3*10**8 #speed of light in m/s\n",
+ "#Formula : NA=sin(fi_o).....(max)\n",
+ "NA=sin(fi_o) #Numerical Aperture(Unitless)\n",
+ "#Formula : NA=n1*sqrt(2*delta)\n",
+ "n1=NA/sqrt(2*delta/100) #unitless\n",
+ "#Formula : n1=c/v \n",
+ "v=c/n1 #in m/s\n",
+ "print \"Speed of light in fibre core is \",round(v,2),\" m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Speed of light in fibre core is 248028935.21 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Exa 2.4; page 157"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "from numpy import sqrt, pi\n",
+ "#Given data :\n",
+ "n1=1.5 #Unitless\n",
+ "delta=1 #relative refractive index difference in %\n",
+ "lamda=1.3 #in um\n",
+ "N=1100 #No. of modes\n",
+ "#Formula : v=2*%pi*a*n1*NA/lambda \n",
+ "#NA=sqrt(2*delta)\n",
+ "#v=sqrt(2*N)\n",
+ "a=(sqrt(2*N)*lamda)/(2*pi*n1*sqrt(2*delta/100)) #Normalized frequency\n",
+ "d=2*a # um\n",
+ "print \"Diameter of the fiber core is\",round(d,2),\"um\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Diameter of the fiber core is 91.5 um\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Exa 2.5; page 159"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "from numpy import sin, pi\n",
+ "#Given data :\n",
+ "\n",
+ "n1=1.52 #unitless\n",
+ "fi_o=8 #in Degree\n",
+ "#Formula : sin(fi_o)=n1*sqrt(2*delta)\n",
+ "delta=(sin(fi_o*pi/180)/n1)**2/2 #Relative refractive index\n",
+ "delta*=100 # in %\n",
+ "print \"The value of relative refractive index difference is \",round(delta,2),\"%\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The value of relative refractive index difference is 0.42 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Exa 2.6; page 162"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "from numpy import pi, sqrt\n",
+ "#Given data :\n",
+ "N=700 #No. of modes\n",
+ "d=30 #in um\n",
+ "a=d/2 #in um\n",
+ "NA=0.62 #Numerical Aperture\n",
+ "#Formula : v=2*sqrt(N) and v=2*%pi*a*NA/lambda\n",
+ "lamda=2*pi*a*NA/(2*sqrt(N)) #in um\n",
+ "print \"Wavelength of light propagating in fibre is\",round(lamda,2),\" micro meter\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Wavelength of light propagating in fibre is 1.1 micro meter\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Exa 2.7;page 165"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "from numpy import pi, sqrt\n",
+ "#Given data :\n",
+ "n1=1.5 #unitless\n",
+ "alfa=2 #characteristic index profile\n",
+ "d=40 #in um\n",
+ "a=d/2 #in um\n",
+ "#Part (a) :\n",
+ "lamda=1.3 #in um\n",
+ "delta=1 \n",
+ "#Formula : v=2*%pi*a*NA/lambda=2*%pi*a*(n1*sqrt(2*delta))/lambda\n",
+ "v=2*pi*a*(n1*sqrt(2*delta/100))/lamda #Unitless\n",
+ "print \"Normalized Frequency for single mode transmission : \",round(v,2) \n",
+ "#Part (b) :\n",
+ "#Formula : N=(alfa/alfa+2)*(v**2/2)\n",
+ "N=(alfa/(alfa+2))*(v**2/2) #No. of guided modes\n",
+ "print \"No. of guided modes propagating in the fibre is %d\" %N"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Normalized Frequency for single mode transmission : 20.51\n",
+ "No. of guided modes propagating in the fibre is 105"
+ ]
+ },
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/sample_notebooks/MayurSabban/ChapterNo04.ipynb b/sample_notebooks/MayurSabban/ChapterNo04.ipynb
new file mode 100755
index 00000000..c6f434bb
--- /dev/null
+++ b/sample_notebooks/MayurSabban/ChapterNo04.ipynb
@@ -0,0 +1,257 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 02 : Capacitance Of Transmission Lines"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.1, Page No 75"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "#initialisation of variables\n",
+ "D = 20.0 #in ft\n",
+ "f = 60.0 #in Hz\n",
+ "\n",
+ "#From Table A.1 and A.3\n",
+ "d = 0.642 \t\t\t#in inches\n",
+ "X_a = 0.1074e6 \t\t#in ohm-mi\n",
+ "X_d = 0.0889e6 \t\t#in ohm-mi\n",
+ "\n",
+ "#finding radius\n",
+ "r = d/(2*12) \t\t#divided by 12 convert in to ft\n",
+ "\n",
+ "#Calculations\n",
+ "print('Calculations using conductor spacing and radius')\n",
+ "X_c = 1.779 * math.log(D/r)/f\n",
+ "B_c = 1 / X_c\n",
+ "print(\" Capactive reatance = %.4fe6 ohm mi to neutral \" %X_c)\n",
+ "print(\" Capactive susceptance = %.4fe-6 mho/mi to neutral \" %B_c)\n",
+ "\n",
+ "#calculations using capacitive reactance at 1-ft spacing and spacing factor\n",
+ "print('Calculations using capacitive reactance at 1-ft spacing and spacing factor')\n",
+ "X_c1 = X_a + X_d\n",
+ "print(\" Capactive reatance = %.4fe6 ohm mi per conductor \" %(X_c1/10**6))\n",
+ "X_c11 = 2 * X_c1\n",
+ "B_c1 = 1 / X_c11\n",
+ "\n",
+ "#Results\n",
+ "print(\" Line-to-line capactive reatance = %.4fe6 ohm mi \" %(X_c11/10**6))\n",
+ "print(\" Line-to-line capactive susceptance = %.4fe-6 mho mi \" %(B_c1*10**6))"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Calculations using conductor spacing and radius\n",
+ " Capactive reatance = 0.1962e6 ohm mi to neutral \n",
+ " Capactive susceptance = 5.0970e-6 mho/mi to neutral \n",
+ "Calculations using capacitive reactance at 1-ft spacing and spacing factor\n",
+ " Capactive reatance = 0.1963e6 ohm mi per conductor \n",
+ " Line-to-line capactive reatance = 0.3926e6 ohm mi \n",
+ " Line-to-line capactive susceptance = 2.5471e-6 mho mi \n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.2, Page No 80"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "#initialisation of variables\n",
+ "D_12 = 20.0\t\t\t#in ft\n",
+ "D_23 = D_12\n",
+ "D_31 = 38.0\t\t\t#in ft\n",
+ "f = 60.0\t\t\t#in Hz\n",
+ "V = 220e3\t\t\t#in volts\n",
+ "l = 175\t\t\t\t#in mi\n",
+ "k = 8.85e-12\t\t#permittivity in F/m\n",
+ "#From tables A.1 and A.3\n",
+ "d = 1.108#in inches\n",
+ "X_a1 = 0.0912e6#in ohm mi\n",
+ "X_d1 = 0.0952e6#in ohm mi\n",
+ "\n",
+ "#Calculations\n",
+ "r = d / ( 2 * 12)#division by 12 to convert in to ft\n",
+ "D_eq = (D_12*D_23*D_31)**(1.0/3)\n",
+ "C_n = (2*math.pi*k)/math.log(D_eq/r)\n",
+ "X_c = 1.0/(2*math.pi*f*C_n*1609)\t\t#division by 1609 to convert to ohm mi\n",
+ "\n",
+ "print(\" Capacitance = %.4fe-12 F/m \" %(C_n*1e12))\n",
+ "print(\" Capacitive reactance = %.4fe6 ohm mi \" %(X_c/1e6))\n",
+ "\n",
+ "#Calculations From tables\n",
+ "X_c1 = X_a1 + X_d1\n",
+ "print('Using capacitive reactance at 1-ft spacing and spacing factor')\n",
+ "print(\" Capacitive reactance = %.4fe6 ohm mi \" %(X_c1/1e6))\n",
+ "X_c_l = X_c1/l\t\t\t#Capacitive reactance for 175mi\n",
+ "I_chg = 2*math.pi*f*V*C_n*1609/math.sqrt(3.0)\n",
+ "I_chg_l = I_chg * l\n",
+ "Q =math.sqrt(3)*V*I_chg_l\n",
+ "\n",
+ "\n",
+ "#Results\n",
+ "print('For a lenght of 175mi')\n",
+ "print(\" Capacitive reactance = %.4f ohm to neutral \" %X_c_l)\n",
+ "print(\" Charging current per mile = %.3f A/mi \" %I_chg)\n",
+ "print('For a lenght of 175mi')\n",
+ "print(\" Charging current = %.0f A \" %I_chg_l)\n",
+ "print(\" Total charging megavolt-amperes = %.1f Mvar \" %(Q/1e6))\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Capacitance = 8.8472e-12 F/m \n",
+ " Capacitive reactance = 0.1863e6 ohm mi \n",
+ "Using capacitive reactance at 1-ft spacing and spacing factor\n",
+ " Capacitive reactance = 0.1864e6 ohm mi \n",
+ "For a lenght of 175mi\n",
+ " Capacitive reactance = 1065.1429 ohm to neutral \n",
+ " Charging current per mile = 0.682 A/mi \n",
+ "For a lenght of 175mi\n",
+ " Charging current = 119 A \n",
+ " Total charging megavolt-amperes = 45.5 Mvar \n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.3, Page No 85"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "#initialisation of variables\n",
+ "d = 0.45 #in m\n",
+ "k = 8.85e-12 #in F/m\n",
+ "D_ab = 8 #in m\n",
+ "D_bc = D_ab\n",
+ "D_ca = 16 #in m\n",
+ "f = 60 #in Hz\n",
+ "\n",
+ "#From tables\n",
+ "D = 1.382 #in inches\n",
+ "\n",
+ "#Calculations\n",
+ "r = D*0.3048/(2.0*12) #divison by 12 to convert in to ft\n",
+ " #multiplication by 0.3048 to convert ft to m\n",
+ "D_b_sC = math.sqrt( r * d)\n",
+ "D_eq = (D_ab * D_bc * D_ca)**(1/3)\n",
+ "C_m = 2* math.pi*k/math.log(D_eq / D_b_sC)\n",
+ "X_c = 1e-3/(2*math.pi*f*C_m) #1e-3 #to convert m to km\n",
+ "\n",
+ "#Results\n",
+ "print(\" Capacitance = %.3fe-12 F/m \" %(C_m * 1e12))\n",
+ "print(\" Capacitive reactance = %.4fe6 ohm km per phase to neutral\" %(X_c/1e6))"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Capacitance = 22.972e-12 F/m \n",
+ " Capacitive reactance = 0.1155e6 ohm km per phase to neutral\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4 Page No 85"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "#initialisation of variables\n",
+ "f = 60.0\t\t#in Hz\n",
+ "k = 8.85e-12\t#in F/m\n",
+ "D_eq = 16.1\t\t#in ft\n",
+ "D_a_a1 = 26.9\n",
+ "D_b_b1 = 21.0\n",
+ "D_c_c1 = D_a_a1 #in ft\n",
+ "\n",
+ "#From Table A.1\n",
+ "d = 0.680#in inches\n",
+ "\n",
+ "#calculations\n",
+ "r = d /(2*12)\n",
+ "D_p_sC = (math.sqrt(D_a_a1 * r) * math.sqrt(D_b_b1 * r) * math.sqrt(D_c_c1 * r))**(1.0/3)\n",
+ "C_n = 2 * math.pi * k / math.log(D_eq / D_p_sC)\n",
+ "B_c = 2 * math.pi * f * C_n * 1609.0\t#1609 to convert from m to mi\n",
+ "\n",
+ "#Results\n",
+ "print(\"printprint Capacitance = %.3fe-12 F/m printprint\" %(C_n*1e12))\n",
+ "print(\"printprint Capacitive susceptance = %.2fe-6 mho per mi per phase to neutral\" %(B_c*1e6))"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "printprint Capacitance = 18.812e-12 F/m printprint\n",
+ "printprint Capacitive susceptance = 11.41e-6 mho per mi per phase to neutral\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/sample_notebooks/MohdAsif/Chapter5.ipynb b/sample_notebooks/MohdAsif/Chapter5.ipynb
new file mode 100755
index 00000000..e36093b9
--- /dev/null
+++ b/sample_notebooks/MohdAsif/Chapter5.ipynb
@@ -0,0 +1,247 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:abf9f7aa50395283288e62f0f85bd91bae92b4155380f5c281c2602a3861ceb7"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter - 5 Wave Motion and speed"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1, page : 115"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "from __future__ import division\n",
+ "from math import pi\n",
+ "#frequency\n",
+ "r=3 #m\n",
+ "w=10 #s**-1\n",
+ "vs=r*w #m/s\n",
+ "A=6 #m\n",
+ "fd=5/pi #s**-1\n",
+ "vmax=A*2*pi*fd #m/s\n",
+ "v=330 #m/s\n",
+ "n=340 #Hz\n",
+ "nmax=((v+vmax)/(v-vs))*n #Hz\n",
+ "nmin=((v-vmax)/(v+vs))*n #Hz\n",
+ "print \"Maximum frequency is \",nmax,\" Hz\"\n",
+ "print \"Minimum frequency is \",nmin,\" Hz\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Maximum frequency is 442.0 Hz\n",
+ "Minimum frequency is 255.0 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2, page : 118"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "from __future__ import division\n",
+ "# frequency\n",
+ "#given data :\n",
+ "N=400 #hZ\n",
+ "V=340 #M/S\n",
+ "VS=60 #M/S\n",
+ "N2=((V/(V-VS))*N) #Hz\n",
+ "print \"Frequency when engine is approaching to the listner is \",round(N2,2),\" Hz\"\n",
+ "N3=((V/(V+VS))*N) #Hz\n",
+ "print \"Frequency when engine is moving away from the listner is \",round(N3,2),\" Hz\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Frequency when engine is approaching to the listner is 485.71 Hz\n",
+ "Frequency when engine is moving away from the listner is 340.0 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3, page : 120"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "from __future__ import division\n",
+ "#frequency\n",
+ "v=1200 #km/h\n",
+ "w=40 #km/h\n",
+ "vs=40 #km/h\n",
+ "n=580 #Hz\n",
+ "nd=((v+vs)/((v+vs)-vs))*n #Hz\n",
+ "print \"Frequency of the whistle as heared by an observer on the hill is \",round(nd,2),\" Hz\"\n",
+ "x=29/30 #km\n",
+ "x*=1000 #m\n",
+ "print \"Distance is \",round(x,2),\" m\"\n",
+ "ndd=((v-w)+vs)/((v-w))*nd #Hz\n",
+ "print \"Frequency heared by driver is \",round(nd,2),\" Hz\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Frequency of the whistle as heared by an observer on the hill is 599.33 Hz\n",
+ "Distance is 966.67 m\n",
+ "Frequency heared by driver is 599.33 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5, page :125"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "from __future__ import division\n",
+ "#frequency\n",
+ "v=340 #m/s\n",
+ "n=600 #Hz\n",
+ "vs=36 #km h**-1\n",
+ "vs1=vs*(1000/3600) #m/s\n",
+ "apf=((v)/(v-vs1))*n #Hz\n",
+ "vs2=54 #km h**-1\n",
+ "vs3=vs2*(1000/3600) #m/s\n",
+ "apf1=((v)/(v+vs3))*n #Hz\n",
+ "print \"Two apparent frequencies are \",round(apf,2),\" Hz and \",round(apf1,2),\" Hz\"\n",
+ "df=apf-apf1 #Hz\n",
+ "print \"Difference in frequencies is \",round(df,2),\" Hz\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Two apparent frequencies are 618.18 Hz and 574.65 Hz\n",
+ "Difference in frequencies is 43.53 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9, page : 135"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "from __future__ import division\n",
+ "from math import sqrt, pi\n",
+ "#foce constant,displacement , acceleration and energy\n",
+ "x1=.10 # in m\n",
+ "F1=4 # in N\n",
+ "K=F1/x1 \n",
+ "x2=0.12 # in m\n",
+ "print \"(a) The force constant, K = \",K,\" N/m \"\n",
+ "F=-K*x2 \n",
+ "print \"(b) The force, F = \",F, \" N\"\n",
+ "m=1.6 # in kg\n",
+ "T=2*pi*sqrt(m/K) \n",
+ "print \"(c) Period of pscillation, T = \",round(T,2), \" s\"\n",
+ "A=x2 \n",
+ "print \"(d) Amplitude of motion,A = \",A, \" m\"\n",
+ "alfa=A*K/m \n",
+ "print \"(e) Maximum acceleration,alfa = \",alfa,\" m/s**2\"\n",
+ "x=A/2 # in m\n",
+ "w=sqrt(K/m) \n",
+ "v=w*sqrt(A**2-x**2) \n",
+ "a=w**2*x # in m/s**2\n",
+ "KE=(1/2)*m*v**2 # in J\n",
+ "PE=(1/2)*K*x**2 # in J\n",
+ "TE=KE+PE \n",
+ "print \"\"\"(f) velocity is %0.2f m/s\n",
+ "acceleration %0.2f m/s**2\n",
+ "Kinetic energy is %0.2f J\n",
+ "Potential energy is %0.2f J\"\"\" %(v,a,KE,PE)\n",
+ "print \"(g) Total energy of the oscillating system %0.2f J\" %TE"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) The force constant, K = 40.0 N/m \n",
+ "(b) The force, F = -4.8 N\n",
+ "(c) Period of pscillation, T = 1.26 s\n",
+ "(d) Amplitude of motion,A = 0.12 m\n",
+ "(e) Maximum acceleration,alfa = 3.0 m/s**2\n",
+ "(f) velocity is 0.52 m/s\n",
+ "acceleration 1.50 m/s**2\n",
+ "Kinetic energy is 0.22 J\n",
+ "Potential energy is 0.07 J\n",
+ "(g) Total energy of the oscillating system 0.29 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/sample_notebooks/MohdRizwan/Chapter8.ipynb b/sample_notebooks/MohdRizwan/Chapter8.ipynb
new file mode 100755
index 00000000..0017f769
--- /dev/null
+++ b/sample_notebooks/MohdRizwan/Chapter8.ipynb
@@ -0,0 +1,253 @@
+{
+ "metadata": {
+ "name": "Rijwan",
+ "signature": "sha256:ccfeb26b31d807a5210cb280c22c39e23c0906566f59b1bedfeb5dfebe856c36"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Ch-8 Oscillators"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Exa 8.1, page 272 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "#Given data\n",
+ "A=50 #unitless\n",
+ "criteria = \"Barkhausen criterion for oscillator : Beta*A=1\"\n",
+ "Beta=1/A #unitless\n",
+ "print criteria,\"\\nFeedback Factor for oscillator : \",Beta"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Barkhausen criterion for oscillator : Beta*A=1 \n",
+ "Feedback Factor for oscillator : 0.02\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Exa 8.2, page 279"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "from math import pi\n",
+ "#Given data\n",
+ "L=100 #in uH\n",
+ "L=L*10**-6 #in H\n",
+ "f1=500 #in kHz\n",
+ "f1=f1*10**3 #in Hz\n",
+ "f2=1500 #in kHz\n",
+ "f2=f2*10**3 #in Hz\n",
+ "#Formula : f=1/(2*%pi*sqrt(L*C))\n",
+ "C1=1/(4*pi**2*f1**2*L) #in F\n",
+ "C2=1/(4*pi**2*f2**2*L) #in F\n",
+ "C1*=10**12 #pF\n",
+ "C2*=10**12 #pF\n",
+ "print \"Range of capacitor : %0.2f pf to %0.2f pf\" %(C2, C1)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Range of capacitor : 112.58 pf to 1013.21 pf\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Exa 8.3, page 285"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "from math import pi \n",
+ "#Given data\n",
+ "R=100 #in kOhm\n",
+ "R=R*10**3 #in Ohm\n",
+ "C=0.01 #in uF\n",
+ "C=C*10**-6 #in F\n",
+ "fo=sqrt(6)/(2*pi*R*C) #in Hz\n",
+ "print \"Frequency of oscillation is %0.3f Hz\" %fo"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Frequency of oscillation is 389.848 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Exa 8.4, page 288"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "from math import sqrt\n",
+ "#Given data\n",
+ "assumed = \"Assume alfa=sqrt(6) to find the gain.\"\n",
+ "alfa=sqrt(6) #unitless\n",
+ "Beta=1/(1-5*alfa**2) \n",
+ "criteria = \"Barkhausen critera : A*|Beta|>=1\"\n",
+ "Beta=-Beta #\n",
+ "A=1/Beta #unitless\n",
+ "print assumed,\"\\n\",criteria,\"\\nMinimum Gain of Amplifier must be \",A"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Assume alfa=sqrt(6) to find the gain. \n",
+ "Barkhausen critera : A*|Beta|>=1 \n",
+ "Minimum Gain of Amplifier must be 29.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Exa 8.6, page 289"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "from math import pi, sqrt\n",
+ "#Given data :\n",
+ "R1=50 #in kohm\n",
+ "R1=R1*10**3 #in ohm\n",
+ "C1=0.001 #in uF\n",
+ "C1=C1*10**-6 #in F\n",
+ "R2=1 #in kohm\n",
+ "R2=R2*10**3 #in ohm\n",
+ "C2=0.01 #in uF\n",
+ "C2=C2*10**-6 #in F\n",
+ "#Part (i)\n",
+ "#Formula : f=1/(2*pi*sqrt(C1*C2*R1*R2))\n",
+ "f=1/(2*pi*sqrt(C1*C2*R1*R2)) #in Hz\n",
+ "f/=1000 #kHz\n",
+ "print \"(i) Frequency of oscillations is %0.3f kHz\" %f\n",
+ "#Part (ii)\n",
+ "CurrentGain=1+C2/C1+R1/R2 #unitless\n",
+ "print \"(ii) Current Gain : \",CurrentGain"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(i) Frequency of oscillations is 7.118 kHz\n",
+ "(ii) Current Gain : 61.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Exa 8.7, page 295"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "from math import sqrt, pi\n",
+ "#Given data :\n",
+ "fmin=20 #in Hz\n",
+ "fmax=20 #in kHz\n",
+ "Cmin=30 #in pF\n",
+ "Cmax=300 #in pF\n",
+ "#Formula : fo=1/(2*pi*R*C))\n",
+ "R=1/(2*pi*fmin*Cmax*10**-12) # ohm\n",
+ "R/=10**6 # Mohm\n",
+ "print \"Required resistance is %0.3f Mohm\" %R"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Required resistance is 26.526 Mohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
diff --git a/sample_notebooks/MohdRizwan/Chapter8_1.ipynb b/sample_notebooks/MohdRizwan/Chapter8_1.ipynb
new file mode 100755
index 00000000..7882afef
--- /dev/null
+++ b/sample_notebooks/MohdRizwan/Chapter8_1.ipynb
@@ -0,0 +1,253 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:cc1e0bf9fd21090c1f4f51c5610a5d1ad82c8e491a8eb621bca23a14ca4e6993"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Ch-8 Oscillators"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Exa 8.1, page 272 "
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "#Given data\n",
+ "A=50 #unitless\n",
+ "criteria = \"Barkhausen criterion for oscillator : Beta*A=1\"\n",
+ "Beta=1/A #unitless\n",
+ "print criteria,\"\\nFeedback Factor for oscillator : \",Beta"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Barkhausen criterion for oscillator : Beta*A=1 \n",
+ "Feedback Factor for oscillator : 0.02\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Exa 8.2, page 279"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "from math import pi\n",
+ "#Given data\n",
+ "L=100 #in uH\n",
+ "L=L*10**-6 #in H\n",
+ "f1=500 #in kHz\n",
+ "f1=f1*10**3 #in Hz\n",
+ "f2=1500 #in kHz\n",
+ "f2=f2*10**3 #in Hz\n",
+ "#Formula : f=1/(2*%pi*sqrt(L*C))\n",
+ "C1=1/(4*pi**2*f1**2*L) #in F\n",
+ "C2=1/(4*pi**2*f2**2*L) #in F\n",
+ "C1*=10**12 #pF\n",
+ "C2*=10**12 #pF\n",
+ "print \"Range of capacitor : %0.2f pf to %0.2f pf\" %(C2, C1)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Range of capacitor : 112.58 pf to 1013.21 pf\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Exa 8.3, page 285"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "from math import pi, sqrt \n",
+ "#Given data\n",
+ "R=100 #in kOhm\n",
+ "R=R*10**3 #in Ohm\n",
+ "C=0.01 #in uF\n",
+ "C=C*10**-6 #in F\n",
+ "fo=sqrt(6)/(2*pi*R*C) #in Hz\n",
+ "print \"Frequency of oscillation is %0.3f Hz\" %fo"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Frequency of oscillation is 389.848 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Exa 8.4, page 288"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "from math import sqrt\n",
+ "#Given data\n",
+ "assumed = \"Assume alfa=sqrt(6) to find the gain.\"\n",
+ "alfa=sqrt(6) #unitless\n",
+ "Beta=1/(1-5*alfa**2) \n",
+ "criteria = \"Barkhausen critera : A*|Beta|>=1\"\n",
+ "Beta=-Beta #\n",
+ "A=1/Beta #unitless\n",
+ "print assumed,\"\\n\",criteria,\"\\nMinimum Gain of Amplifier must be \",A"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Assume alfa=sqrt(6) to find the gain. \n",
+ "Barkhausen critera : A*|Beta|>=1 \n",
+ "Minimum Gain of Amplifier must be 29.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Exa 8.6, page 289"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "from math import pi, sqrt\n",
+ "#Given data :\n",
+ "R1=50 #in kohm\n",
+ "R1=R1*10**3 #in ohm\n",
+ "C1=0.001 #in uF\n",
+ "C1=C1*10**-6 #in F\n",
+ "R2=1 #in kohm\n",
+ "R2=R2*10**3 #in ohm\n",
+ "C2=0.01 #in uF\n",
+ "C2=C2*10**-6 #in F\n",
+ "#Part (i)\n",
+ "#Formula : f=1/(2*pi*sqrt(C1*C2*R1*R2))\n",
+ "f=1/(2*pi*sqrt(C1*C2*R1*R2)) #in Hz\n",
+ "f/=1000 #kHz\n",
+ "print \"(i) Frequency of oscillations is %0.3f kHz\" %f\n",
+ "#Part (ii)\n",
+ "CurrentGain=1+C2/C1+R1/R2 #unitless\n",
+ "print \"(ii) Current Gain : \",CurrentGain"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(i) Frequency of oscillations is 7.118 kHz\n",
+ "(ii) Current Gain : 61.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Exa 8.7, page 295"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "from math import sqrt, pi\n",
+ "#Given data :\n",
+ "fmin=20 #in Hz\n",
+ "fmax=20 #in kHz\n",
+ "Cmin=30 #in pF\n",
+ "Cmax=300 #in pF\n",
+ "#Formula : fo=1/(2*pi*R*C))\n",
+ "R=1/(2*pi*fmin*Cmax*10**-12) # ohm\n",
+ "R/=10**6 # Mohm\n",
+ "print \"Required resistance is %0.3f Mohm\" %R"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Required resistance is 26.526 Mohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/sample_notebooks/Mohdarif/Chapter2.ipynb b/sample_notebooks/Mohdarif/Chapter2.ipynb
new file mode 100755
index 00000000..588b4703
--- /dev/null
+++ b/sample_notebooks/Mohdarif/Chapter2.ipynb
@@ -0,0 +1,239 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:682987e4618d85f3223ce09c9f676959c97dc81b85e6ff92270d30168f8d3c6a"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 2 - Optical Fibers"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex 2.4.1 - p:2-10"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "n1=1.46 #refractive index\n",
+ "d=0.01 #difference\n",
+ "na=n1*(2*d)**(1.0/2) #numerical aperture\n",
+ "x=1-d #\n",
+ "oc=math.asin(x) #in radian\n",
+ "oc*=180/math.pi # in degree\n",
+ "print \"Numerical Aperture is \",round(na,2)\n",
+ "print \"Critical angle at core cladding interface is \",round(oc,1),\" degree.\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Numerical Aperture is 0.21\n",
+ "Critical angle at core cladding interface is 81.9 degree.\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2.5.1 - p:2-11"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "n2=1.45 #core refrative index\n",
+ "n1=1.49 #cladding refrative index\n",
+ "oc=math.asin(n2/n1) #in radian\n",
+ "oc*=180/math.pi # in degree\n",
+ "na=(n1**2-n2**2)**(1.0/2) #numerical aperture\n",
+ "pc=math.asin(na) # in radian\n",
+ "pc*=180/math.pi # in degree\n",
+ "print oc,\"Critical angle is \",round(oc,2),\" degree.\"\n",
+ "print \"Numerical aperture is \",round(na,3)\n",
+ "print \"Acceptance angle is \",round(pc,2),\" degree.\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "76.693896868 Critical angle is 76.69 degree.\n",
+ "Numerical aperture is 0.343\n",
+ "Acceptance angle is 20.06 degree.\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2.5.2 - p:2-11"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "delta = 1.2/100 # Relative refractive difference index\n",
+ "n1=1.45 # Core refractive index \n",
+ "NA= n1*(2*delta)**(1.0/2) #computing numerical aperture\n",
+ "Acceptance_angle = math.asin(NA) #computing acceptance angle\n",
+ "si = math.pi*NA**2 #computing solid acceptance angle\n",
+ "print \"Numerical aperture is %.3f.\\nAcceptance angle is %.2f degree.\\nSolid acceptance angle is %.3f radians.\"%(NA,Acceptance_angle,si)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Numerical aperture is 0.225.\n",
+ "Acceptance angle is 0.23 degree.\n",
+ "Solid acceptance angle is 0.159 radians.\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2.5.4 - p:2-12"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "diameter = 1.0 #Diameter in centimeter\n",
+ "Focal_length = 10.0 #Focal length in centimeter\n",
+ "radius=diameter/2.0 #computing radius\n",
+ "Acceptance_angle = math.atan(radius/Focal_length) #computing acceptance angle in radian\n",
+ "Acceptance_angle*=180/math.pi # in degree\n",
+ "Conical_full_angle = 2*Acceptance_angle #computing conical angle in degree\n",
+ "Solid_acceptance_angle = math.pi*Acceptance_angle**2 #computing solid acceptance angle in degree\n",
+ "NA = (Solid_acceptance_angle/math.pi)**(1.0/2) #computing Numerical aperture\n",
+ "print \"Numerical aperture is %.2f.\\nConical full angle is %.2f degree.\" %(NA,Conical_full_angle)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Numerical aperture is 2.86.\n",
+ "Conical full angle is 5.72 degree.\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2.8.1 - p:2-21"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "core_diameter=78*10**-6 #core diameter\n",
+ "delta=1.4/100 #relative index difference\n",
+ "lamda=0.8*10**-6 #operating wavelength\n",
+ "n1=1.47 #core refractive index\n",
+ "a=core_diameter/2 #computing core radius\n",
+ "v= 2*3.14*a*n1*(2*delta)**(1.0/2)/lamda #computing normalized frequency\n",
+ "M=(v)**2/2 #computing guided modes\n",
+ "print \"Normalized Frequency is %.3f.\\nTotal number of guided modes are %.1f\" %(v,M) "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Normalized Frequency is 75.306.\n",
+ "Total number of guided modes are 2835.5\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2.8.2 - p:2-23"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "n1=1.47 #refractive index of core\n",
+ "a=4.3 #radius of core in um\n",
+ "delta=0.2/100 #relative index difference\n",
+ "lamda= 2*math.pi*a*n1*(2*delta)**(1.0/2)/2.405 #computing wavelength in um\n",
+ "lamda=lamda*10**3 # nm\n",
+ "\n",
+ "print \"Wavelength of fiber is %0.2f nm.\" %lamda"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Wavelength of fiber is 1044.43 nm.\n"
+ ]
+ }
+ ],
+ "prompt_number": 30
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/sample_notebooks/NishthaRani/CH8(1).ipynb b/sample_notebooks/NishthaRani/CH8(1).ipynb
new file mode 100755
index 00000000..cae42a72
--- /dev/null
+++ b/sample_notebooks/NishthaRani/CH8(1).ipynb
@@ -0,0 +1,378 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:93168f4fdcda81fb8a5194b03c33462ec0c810df117544b3470474e9e7f2fcbf"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Ch-8 : Control of DC Drivers"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.12.4: p-275"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Motor torque \n",
+ "import numpy as np \n",
+ "#given data :\n",
+ "Vs_rms=230 # in volts\n",
+ "N=1200 # in rpm\n",
+ "Ia=40 # in A\n",
+ "Ra=0.25 #in ohm\n",
+ "Ka_fi1=0.182 # in V/rpm\n",
+ "Ka_fi=(0.182*60)/(2*np.pi) \n",
+ "alfa_a=30 \n",
+ "T=Ka_fi*Ia \n",
+ "print \"(a) Motor torque, T =\",round(T,2),\"N-m \"\n",
+ "Ea=((2*np.sqrt(2)*Vs_rms)/np.pi)*(np.cos(alfa_a*np.pi/180)) \n",
+ "N=(Ea-(Ra*Ia))/Ka_fi1 \n",
+ "print \"(b) Speed of the motor, N =\",round(N,2),\"rpm\"\n",
+ "Is_rms=Ia \n",
+ "PF=(Ea*Ia)/(Vs_rms*Is_rms) \n",
+ "print \"(c) Power factor, PF =\",round(PF,2),\"lagging\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) Motor torque, T = 69.52 N-m \n",
+ "(b) Speed of the motor, N = 930.39 rpm\n",
+ "(c) Power factor, PF = 0.78 lagging\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.13.2: p-278"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Delay Angel of Armature,No load speed and speed regulation\n",
+ "import numpy as np\n",
+ "#given data :\n",
+ "VL_rms=208 # in volts\n",
+ "Kv=1.2 # in V/A-rad/sec\n",
+ "Vs_rms=round(VL_rms/np.sqrt(3),2) \n",
+ "Vm=np.sqrt(2)*Vs_rms \n",
+ "Rf=240 # in ohm\n",
+ "Ra=0.25 # in ohm\n",
+ "alfa_f=0 # in degree\n",
+ "V=280 # in volts\n",
+ "Twenty_HP=20*746 #in watt\n",
+ "Ia=Twenty_HP/V\n",
+ "Ef=round((3*np.sqrt(3)*Vm*np.cos(alfa_f*np.pi/180))/np.pi,2) \n",
+ "N=1800 \n",
+ "w=(N*2*np.pi)/60 \n",
+ "If=Ef/Rf \n",
+ "Eg=Kv*w*If \n",
+ "Ea=round(Eg+(Ia*Ra),2) \n",
+ "alfa_a=(np.arccos((Ea*np.pi)/(3*np.sqrt(3)*Vm))) \n",
+ "print \"(a) Delay Angel Of Armature, alfa_a = \",round(alfa_a,2),\"degree\"\n",
+ "Ia1=(Ia*10)/100\n",
+ "Eg_noL=Ea-(Ia1*Ra) \n",
+ "w_0=(Eg_noL/(1.2*1.17)) # rad/sec\n",
+ "N_0=(w_0*60)/(2*np.pi) \n",
+ "print \"(b) NO load speed at alfa|_a =\",round(N_0,2),\"rpm\"\n",
+ "SR=((N_0-N)/N)*100 \n",
+ "print \"(c) Speed Regulation, SR =\",round(SR,2),\"%\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) Delay Angel Of Armature, alfa_a = 0.14 degree\n",
+ "(b) NO load speed at alfa|_a = 1882.25 rpm\n",
+ "(c) Speed Regulation, SR = 4.57 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.14.3 - P : 284"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#alpha, speed and delay angle\n",
+ "from __future__ import division\n",
+ "import numpy as np\n",
+ "#given data :\n",
+ "v1=208 #\n",
+ "vsrms=v1/np.sqrt(3) #\n",
+ "n=1000 #rpm\n",
+ "w=n*(np.pi/30) #in rad/s\n",
+ "ang=0 #\n",
+ "ef=((3*np.sqrt(3)*np.sqrt(2)*vsrms*np.cos(ang))/np.pi) #in volts\n",
+ "rf=140 #in ohms\n",
+ "If=ef/rf #in amperes\n",
+ "t=120 #N-m\n",
+ "kv=1.2 #\n",
+ "ia=(t)/(kv*If) #in amperes\n",
+ "eg=kv*If*w #in volts\n",
+ "ra=0.25 #in ohms\n",
+ "ea=eg+(ia*ra) #\n",
+ "alpha=np.arccos((ea*np.pi)/(3*np.sqrt(3)*np.sqrt(2)*vsrms))\n",
+ "print \"(a) alpha is\",round(alpha,2),\"degree\"\n",
+ "rf=140 #in ohms\n",
+ "If=ea/rf #in amperes\n",
+ "t=120 #N-m\n",
+ "kv=1.2 #\n",
+ "ia=(t)/(kv*If) #in amperes\n",
+ "ra=0.25 #in ohms\n",
+ "eg=ea-(ia*ra) #\n",
+ "w=(eg/(kv*If)) #in rad/s\n",
+ "N=w*(30/np.pi) #rpm\n",
+ "print \"(b) Speed is\",round(N,2),\"rpm\"\n",
+ "n1=1000 #rpm\n",
+ "w=n1*(np.pi/30) #in rad/s\n",
+ "v1=208 #\n",
+ "vsrms=v1/np.sqrt(3) #\n",
+ "w1=(1800*(np.pi/30)) #\n",
+ "n=1800 #rpm\n",
+ "ang=0 #\n",
+ "T=120 #n-m\n",
+ "alphas=0 #\n",
+ "ang=0 #\n",
+ "ea=((3*np.sqrt(3)*np.sqrt(2)*vsrms*np.arccos(ang))/np.pi) #in volts\n",
+ "rf=140 #in ohms\n",
+ "If=ea/rf #in amperes\n",
+ "t=120 #N-m\n",
+ "kv=1.2 #\n",
+ "ia=(t)/(kv*If) #in amperes\n",
+ "ra=0.25 #in ohms\n",
+ "eg=ea-(ia*ra) #\n",
+ "if1=eg/(kv*w1) #in amperese\n",
+ "ef1=if1*rf #in volts\n",
+ "alphaf=np.arccos((ef1*np.pi)/(3*np.sqrt(3)*120*np.sqrt(2))) \n",
+ "print \"(c) Delay angle is\",round(alphaf,2),\"degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) alpha is 0.34 degree\n",
+ "(b) Speed is 1058.39 rpm\n",
+ "(c) Delay angle is 0.3 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.15.1: p-296"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Firing angle to keep the motor current and Power fed back \n",
+ "from numpy import pi, sqrt, arccos\n",
+ "#given data :\n",
+ "Vs_rms=260 # in volts\n",
+ "Ia=40 # in A\n",
+ "Eg=192 #in volts\n",
+ "kv=0.182 # in V/rpm\n",
+ "Ra=0.3 # in ohm\n",
+ "Ea=Eg+(Ia*Ra) \n",
+ "alfa_a=arccos((Ea*pi)/(2*Vs_rms*sqrt(2))) \n",
+ "print \"(a) Firing angle to keep motor current, alfa_a =\",round(alfa_a,2),\"degree\"\n",
+ "Ea1=-Eg+(Ia*Ra) \n",
+ "alfa_b=arccos((Ea1*pi)/(2*Vs_rms*sqrt(2))) \n",
+ "print \"(b) Firing angle, alfa_b =\",round(alfa_b,2),\"degree\"\n",
+ "Ia=40 # in A\n",
+ "Eg=192 #in volts\n",
+ "Ra=0.3 # in ohm\n",
+ "Ea=-Eg+(Ia*Ra) \n",
+ "P=abs(Ea)*Ia \n",
+ "print \"(c) Power fed back, P =\",round(P,2),\"Watt\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) Firing angle to keep motor current, alfa_a = 0.51 degree\n",
+ "(b) Firing angle, alfa_b = 2.45 degree\n",
+ "(c) Power fed back, P = 7200.0 Watt\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.15.3: p-312"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# torque developed,speed and input power factor\n",
+ "from numpy import pi, sqrt, arccos, cos\n",
+ "#given data :\n",
+ "v=208 #in volts\n",
+ "f=50 #in Hz\n",
+ "ra=0.5 #in ohms\n",
+ "rf=345 #in ohms\n",
+ "kv=0.71 #in V/A-rad/sec\n",
+ "alpha=45 #in degree\n",
+ "ia=55 #in amperes\n",
+ "If=((2*sqrt(2)*v*cos(0))/(pi*rf)) #in amperes\n",
+ "t=kv*If*ia #in N/m\n",
+ "print \"(a) Torque is\",round(t,2),\"N/m\"\n",
+ "eb=((2*sqrt(2)*v*cos(alpha))/pi)-(ia*ra) #in volts\n",
+ "w=eb/(kv*If) #in rad/sec\n",
+ "N=w/(2*pi) #rps\n",
+ "print \"(b) speed is\",round(N*60,2),\"rpm\"\n",
+ "#speed is calculated wrong in the textbook\n",
+ "ea=132.4 #in volts\n",
+ "ef=187.3 #in volts\n",
+ "pi=(ea*ia)+(ef*If) #in watts\n",
+ "Isrms=sqrt((ia)**2+(If)**2) #in amperes\n",
+ "va1=Isrms*v #in VA\n",
+ "Pf=pi/va1 #\n",
+ "print \"(d) power factor is\",round(Pf,2), \"lagging\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) Torque is 21.2 N/m\n",
+ "(b) speed is 1756.17 rpm\n",
+ "(d) power factor is 0.65 lagging\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.16.1: p-318"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# No load speed ,firing angle ,Power Factor and speed regulation\n",
+ "from numpy import pi, sqrt, arccos, cos\n",
+ "#given data :\n",
+ "Ra=0.075 #in ohm\n",
+ "alfa1=0 # in degree\n",
+ "alfa2=30 # in degree\n",
+ "VL_rms=480 # in volts\n",
+ "Ka_fi=0.3 # in V/rms\n",
+ "Vs_rms=round(VL_rms/sqrt(3),2) \n",
+ "Vm=sqrt(2)*Vs_rms \n",
+ "Ea=round((3*sqrt(3)*Vm*cos(alfa1))/pi) \n",
+ "Ea1=((3*sqrt(3)*Vm*cos(alfa2))/pi) \n",
+ "Ia=(10/100)*160 # in A\n",
+ "N_0=(Ea-Ia*Ra)/Ka_fi \n",
+ "N_30=(Ea1-Ia*Ra)/Ka_fi \n",
+ "print \"part (a)\"\n",
+ "print \"No load speed at alfa=0 degree is\",round(N_0,2),\"rpm\"\n",
+ "print \"No load speed at alfa=30 degree is\",round(N_30,2),\"rpm\"\n",
+ "print \"part (b)\"\n",
+ "Ia=160 # in A\n",
+ "N=1800 # in rpm\n",
+ "Eg=540 # in volts\n",
+ "Ea=(Eg+(Ia*Ra)) \n",
+ "alfa=(arccos((Ea*pi)/(3*sqrt(3)*Vm))) \n",
+ "print \"The firng angel, alfa is\",round(alfa,2),\"degree\"\n",
+ "Is_rms=sqrt(2/3)*Ia \n",
+ "Sva=3*Vs_rms*Is_rms \n",
+ "PF=(Ea*Ia)/(Sva) \n",
+ "print \"(c) Power Factor, PF =\",round(PF,2),\"lagging\"\n",
+ "Ra=0.075 #in ohm\n",
+ "Ia=160 # in A\n",
+ "Ia1=16 # in A\n",
+ "Eg=540 # in volts\n",
+ "Ka_fi=0.3 # in V/rms\n",
+ "N=1800 # in rpm\n",
+ "Ea=(Eg+(Ia*Ra)) \n",
+ "Eg1=Ea-(Ia1*Ra) \n",
+ "N_0=Eg1/Ka_fi \n",
+ "SR=((N_0-N)/N)*100 \n",
+ "print \"(d) Speed Regulation, SR =\",round(SR,2),\"%\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "part (a)\n",
+ "No load speed at alfa=0 degree is 2156.0 rpm\n",
+ "No load speed at alfa=30 degree is 329.3 rpm\n",
+ "part (b)\n",
+ "The firng angel, alfa is 0.55 degree\n",
+ "(c) Power Factor, PF = 0.81 lagging\n",
+ "(d) Speed Regulation, SR = 2.0 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/sample_notebooks/NishthaRani/CH8.ipynb b/sample_notebooks/NishthaRani/CH8.ipynb
new file mode 100755
index 00000000..271f161a
--- /dev/null
+++ b/sample_notebooks/NishthaRani/CH8.ipynb
@@ -0,0 +1,378 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:7b72a03e09ce03ad176a3887f05ee855123808690595d82c69513fb81e0bbc2c"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Ch-8 : Control of DC Drivers"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.12.4: p-275"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "# Motor torque \n",
+ "import numpy as np \n",
+ "#given data :\n",
+ "Vs_rms=230 # in volts\n",
+ "N=1200 # in rpm\n",
+ "Ia=40 # in A\n",
+ "Ra=0.25 #in ohm\n",
+ "Ka_fi1=0.182 # in V/rpm\n",
+ "Ka_fi=(0.182*60)/(2*np.pi) \n",
+ "alfa_a=30 \n",
+ "T=Ka_fi*Ia \n",
+ "print \"(a) Motor torque, T =\",round(T,2),\"N-m \"\n",
+ "Ea=((2*sqrt(2)*Vs_rms)/np.pi)*(np.cos(alfa_a*np.pi/180)) \n",
+ "N=(Ea-(Ra*Ia))/Ka_fi1 \n",
+ "print \"(b) Speed of the motor, N =\",round(N,2),\"rpm\"\n",
+ "Is_rms=Ia \n",
+ "PF=(Ea*Ia)/(Vs_rms*Is_rms) \n",
+ "print \"(c) Power factor, PF =\",round(PF,2),\"lagging\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) Motor torque, T = 69.52 N-m \n",
+ "(b) Speed of the motor, N = 930.39 rpm\n",
+ "(c) Power factor, PF = 0.78 lagging\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.13.2: p-278"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "# Delay Angel of Armature,No load speed and speed regulation\n",
+ "import numpy as np\n",
+ "#given data :\n",
+ "VL_rms=208 # in volts\n",
+ "Kv=1.2 # in V/A-rad/sec\n",
+ "Vs_rms=round(VL_rms/np.sqrt(3),2) \n",
+ "Vm=np.sqrt(2)*Vs_rms \n",
+ "Rf=240 # in ohm\n",
+ "Ra=0.25 # in ohm\n",
+ "alfa_f=0 # in degree\n",
+ "V=280 # in volts\n",
+ "Twenty_HP=20*746 #in watt\n",
+ "Ia=Twenty_HP/V\n",
+ "Ef=round((3*np.sqrt(3)*Vm*np.cos(alfa_f*np.pi/180))/np.pi,2) \n",
+ "N=1800 \n",
+ "w=(N*2*np.pi)/60 \n",
+ "If=Ef/Rf \n",
+ "Eg=Kv*w*If \n",
+ "Ea=round(Eg+(Ia*Ra),2) \n",
+ "alfa_a=(np.arccos((Ea*np.pi)/(3*np.sqrt(3)*Vm))) \n",
+ "print \"(a) Delay Angel Of Armature, alfa_a = \",round(alfa_a,2),\"degree\"\n",
+ "Ia1=(Ia*10)/100\n",
+ "Eg_noL=Ea-(Ia1*Ra) \n",
+ "w_0=(Eg_noL/(1.2*1.17)) # rad/sec\n",
+ "N_0=(w_0*60)/(2*np.pi) \n",
+ "print \"(b) NO load speed at alfa|_a =\",round(N_0,2),\"rpm\"\n",
+ "SR=((N_0-N)/N)*100 \n",
+ "print \"(c) Speed Regulation, SR =\",round(SR,2),\"%\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) Delay Angel Of Armature, alfa_a = 0.14 degree\n",
+ "(b) NO load speed at alfa|_a = 1882.16 rpm\n",
+ "(c) Speed Regulation, SR = 4.56 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 25
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.14.3 - P : 284"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "#alpha, speed and delay angle\n",
+ "from __future__ import division\n",
+ "import numpy as np\n",
+ "#given data :\n",
+ "v1=208 #\n",
+ "vsrms=v1/np.sqrt(3) #\n",
+ "n=1000 #rpm\n",
+ "w=n*(pi/30) #in rad/s\n",
+ "ang=0 #\n",
+ "ef=((3*sqrt(3)*np.sqrt(2)*vsrms*np.cos(ang))/pi) #in volts\n",
+ "rf=140 #in ohms\n",
+ "If=ef/rf #in amperes\n",
+ "t=120 #N-m\n",
+ "kv=1.2 #\n",
+ "ia=(t)/(kv*If) #in amperes\n",
+ "eg=kv*If*w #in volts\n",
+ "ra=0.25 #in ohms\n",
+ "ea=eg+(ia*ra) #\n",
+ "alpha=np.arccos((ea*np.pi)/(3*np.sqrt(3)*np.sqrt(2)*vsrms))\n",
+ "print \"(a) alpha is\",round(alpha,2),\"degree\"\n",
+ "rf=140 #in ohms\n",
+ "If=ea/rf #in amperes\n",
+ "t=120 #N-m\n",
+ "kv=1.2 #\n",
+ "ia=(t)/(kv*If) #in amperes\n",
+ "ra=0.25 #in ohms\n",
+ "eg=ea-(ia*ra) #\n",
+ "w=(eg/(kv*If)) #in rad/s\n",
+ "N=w*(30/pi) #rpm\n",
+ "print \"(b) Speed is\",round(N,2),\"rpm\"\n",
+ "n1=1000 #rpm\n",
+ "w=n1*(np.pi/30) #in rad/s\n",
+ "v1=208 #\n",
+ "vsrms=v1/np.sqrt(3) #\n",
+ "w1=(1800*(np.pi/30)) #\n",
+ "n=1800 #rpm\n",
+ "ang=0 #\n",
+ "T=120 #n-m\n",
+ "alphas=0 #\n",
+ "ang=0 #\n",
+ "ea=((3*np.sqrt(3)*np.sqrt(2)*vsrms*np.arccos(ang))/np.pi) #in volts\n",
+ "rf=140 #in ohms\n",
+ "If=ea/rf #in amperes\n",
+ "t=120 #N-m\n",
+ "kv=1.2 #\n",
+ "ia=(t)/(kv*If) #in amperes\n",
+ "ra=0.25 #in ohms\n",
+ "eg=ea-(ia*ra) #\n",
+ "if1=eg/(kv*w1) #in amperese\n",
+ "ef1=if1*rf #in volts\n",
+ "alphaf=np.arccos((ef1*np.pi)/(3*np.sqrt(3)*120*np.sqrt(2))) \n",
+ "print \"(c) Delay angle is\",round(alphaf,2),\"degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) alpha is 0.34 degree\n",
+ "(b) Speed is 1058.39 rpm\n",
+ "(c) Delay angle is 0.3 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.15.1: p-296"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "# Firing angle to keep the motor current and Power fed back \n",
+ "from numpy import pi, sqrt, arccos\n",
+ "#given data :\n",
+ "Vs_rms=260 # in volts\n",
+ "Ia=40 # in A\n",
+ "Eg=192 #in volts\n",
+ "kv=0.182 # in V/rpm\n",
+ "Ra=0.3 # in ohm\n",
+ "Ea=Eg+(Ia*Ra) \n",
+ "alfa_a=arccos((Ea*pi)/(2*Vs_rms*sqrt(2))) \n",
+ "print \"(a) Firing angle to keep motor current, alfa_a =\",round(alfa_a,2),\"degree\"\n",
+ "Ea1=-Eg+(Ia*Ra) \n",
+ "alfa_b=arccos((Ea1*pi)/(2*Vs_rms*sqrt(2))) \n",
+ "print \"(b) Firing angle, alfa_b =\",round(alfa_b,2),\"degree\"\n",
+ "Ia=40 # in A\n",
+ "Eg=192 #in volts\n",
+ "Ra=0.3 # in ohm\n",
+ "Ea=-Eg+(Ia*Ra) \n",
+ "P=abs(Ea)*Ia \n",
+ "print \"(c) Power fed back, P =\",round(P,2),\"Watt\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) Firing angle to keep motor current, alfa_a = 0.51 degree\n",
+ "(b) Firing angle, alfa_b = 2.45 degree\n",
+ "(c) Power fed back, P = 7200.0 Watt\n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.15.3: p-312"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "# torque developed,speed and input power factor\n",
+ "from numpy import pi, sqrt, arccos, cos\n",
+ "#given data :\n",
+ "v=208 #in volts\n",
+ "f=50 #in Hz\n",
+ "ra=0.5 #in ohms\n",
+ "rf=345 #in ohms\n",
+ "kv=0.71 #in V/A-rad/sec\n",
+ "alpha=45 #in degree\n",
+ "ia=55 #in amperes\n",
+ "If=((2*sqrt(2)*v*cos(0))/(pi*rf)) #in amperes\n",
+ "t=kv*If*ia #in N/m\n",
+ "print \"(a) Torque is\",round(t,2),\"N/m\"\n",
+ "eb=((2*sqrt(2)*v*cos(alpha))/pi)-(ia*ra) #in volts\n",
+ "w=eb/(kv*If) #in rad/sec\n",
+ "N=w/(2*pi) #rps\n",
+ "print \"(b) speed is\",round(N*60,2),\"rpm\"\n",
+ "#speed is calculated wrong in the textbook\n",
+ "ea=132.4 #in volts\n",
+ "ef=187.3 #in volts\n",
+ "pi=(ea*ia)+(ef*If) #in watts\n",
+ "Isrms=sqrt((ia)**2+(If)**2) #in amperes\n",
+ "va1=Isrms*v #in VA\n",
+ "Pf=pi/va1 #\n",
+ "print \"(d) power factor is\",round(Pf,2), \"lagging\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) Torque is 21.2 N/m\n",
+ "(b) speed is 1756.17 rpm\n",
+ "(d) power factor is 0.65 lagging\n"
+ ]
+ }
+ ],
+ "prompt_number": 38
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.16.1: p-318"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "# No load speed ,firing angle ,Power Factor and speed regulation\n",
+ "from numpy import pi, sqrt, arccos, cos\n",
+ "#given data :\n",
+ "Ra=0.075 #in ohm\n",
+ "alfa1=0 # in degree\n",
+ "alfa2=30 # in degree\n",
+ "VL_rms=480 # in volts\n",
+ "Ka_fi=0.3 # in V/rms\n",
+ "Vs_rms=round(VL_rms/sqrt(3),2) \n",
+ "Vm=sqrt(2)*Vs_rms \n",
+ "Ea=round((3*sqrt(3)*Vm*cos(alfa1))/pi) \n",
+ "Ea1=((3*sqrt(3)*Vm*cos(alfa2))/pi) \n",
+ "Ia=(10/100)*160 # in A\n",
+ "N_0=(Ea-Ia*Ra)/Ka_fi \n",
+ "N_30=(Ea1-Ia*Ra)/Ka_fi \n",
+ "print \"part (a)\"\n",
+ "print \"No load speed at alfa=0 degree is\",round(N_0,2),\"rpm\"\n",
+ "print \"No load speed at alfa=30 degree is\",round(N_30,2),\"rpm\"\n",
+ "print \"part (b)\"\n",
+ "Ia=160 # in A\n",
+ "N=1800 # in rpm\n",
+ "Eg=540 # in volts\n",
+ "Ea=(Eg+(Ia*Ra)) \n",
+ "alfa=(arccos((Ea*pi)/(3*sqrt(3)*Vm))) \n",
+ "print \"The firng angel, alfa is\",round(alfa,2),\"degree\"\n",
+ "Is_rms=sqrt(2/3)*Ia \n",
+ "Sva=3*Vs_rms*Is_rms \n",
+ "PF=(Ea*Ia)/(Sva) \n",
+ "print \"(c) Power Factor, PF =\",round(PF,2),\"lagging\"\n",
+ "Ra=0.075 #in ohm\n",
+ "Ia=160 # in A\n",
+ "Ia1=16 # in A\n",
+ "Eg=540 # in volts\n",
+ "Ka_fi=0.3 # in V/rms\n",
+ "N=1800 # in rpm\n",
+ "Ea=(Eg+(Ia*Ra)) \n",
+ "Eg1=Ea-(Ia1*Ra) \n",
+ "N_0=Eg1/Ka_fi \n",
+ "SR=((N_0-N)/N)*100 \n",
+ "print \"(d) Speed Regulation, SR =\",round(SR,2),\"%\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "part (a)\n",
+ "No load speed at alfa=0 degree is 2156.0 rpm\n",
+ "No load speed at alfa=30 degree is 329.3 rpm\n",
+ "part (b)\n",
+ "The firng angel, alfa is 0.55 degree\n",
+ "(c) Power Factor, PF = 0.81 lagging\n",
+ "(d) Speed Regulation, SR = 2.0 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 41
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/sample_notebooks/SINDHUARROJU/Chapter10.ipynb b/sample_notebooks/SINDHUARROJU/Chapter10.ipynb
new file mode 100755
index 00000000..e1e3146e
--- /dev/null
+++ b/sample_notebooks/SINDHUARROJU/Chapter10.ipynb
@@ -0,0 +1,410 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "#10: Dielectric properties"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "##Example number 10.1, Page number 10.23"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "energy stored in the condenser is 1.0 J\n",
+ "energy stored in the dielectric is 0.99 J\n"
+ ]
+ }
+ ],
+ "source": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "C=2*10**-6; #capacitance(F)\n",
+ "V=1000; #voltage(V)\n",
+ "epsilon_r=100;\n",
+ "\n",
+ "#Calculation\n",
+ "W=C*V**2/2; #energy stored in the condenser(J)\n",
+ "C0=C/epsilon_r;\n",
+ "W0=C0*V**2/2;\n",
+ "E=1-W0; #energy stored in the dielectric(J)\n",
+ "\n",
+ "#Result\n",
+ "print \"energy stored in the condenser is\",W,\"J\"\n",
+ "print \"energy stored in the dielectric is\",E,\"J\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "##Example number 10.2, Page number 10.24"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "ratio betwen electronic and ionic polarizability is 1.738\n"
+ ]
+ }
+ ],
+ "source": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "epsilon_r=4.94;\n",
+ "n2=2.69;\n",
+ "\n",
+ "#Calculation\n",
+ "x=(epsilon_r-1)/(epsilon_r+2);\n",
+ "y=(n2-1)/(n2+2);\n",
+ "r=(x/y)-1; #ratio betwen electronic and ionic polarizability\n",
+ "\n",
+ "#Result\n",
+ "print \"ratio betwen electronic and ionic polarizability is\",round(1/r,3)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "##Example number 10.3, Page number 10.24"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 11,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "parallel loss resistance is 10.0 ohm\n",
+ "answer varies due to rounding off errors\n",
+ "parallel loss capacitance is 226.56 *10**-12 Farad\n"
+ ]
+ }
+ ],
+ "source": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "epsilon_r=2.56;\n",
+ "epsilon_R=2.65*0.7*10**-4;\n",
+ "tan_delta=0.7*10**-4; \n",
+ "A=8*10**-4; #area(m**2)\n",
+ "d=0.08*10**-3; #diameter(m)\n",
+ "f=1*10**6; #frequency(Hz)\n",
+ "epsilon0=8.85*10**-12;\n",
+ "\n",
+ "#Calculation\n",
+ "Rp=d/(2*math.pi*f*epsilon0*epsilon_R*A); #parallel loss resistance(ohm)\n",
+ "Cp=A*epsilon0*epsilon_r/d; #parallel loss capacitance(Farad)\n",
+ "\n",
+ "#Result\n",
+ "print \"parallel loss resistance is\",round(Rp/10**6),\"ohm\"\n",
+ "print \"answer varies due to rounding off errors\"\n",
+ "print \"parallel loss capacitance is\",round(Cp*10**12,2),\"*10**-12 Farad\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "##Example number 10.4, Page number 10.25"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 14,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "dielectric constant of material is 1.339\n"
+ ]
+ }
+ ],
+ "source": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "N=3*10**28; #number of atoms(per m**3)\n",
+ "alphae=10**-40; \n",
+ "epsilon0=8.854*10**-12;\n",
+ "\n",
+ "#Calculation\n",
+ "epsilon_r=1+(N*alphae/epsilon0); #dielectric constant of material\n",
+ "\n",
+ "#Result\n",
+ "print \"dielectric constant of material is\",round(epsilon_r,3)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "##Example number 10.5, Page number 10.26"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 16,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "electronic polarizability is 2.243 *10**-41 Fm**2\n"
+ ]
+ }
+ ],
+ "source": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "N=2.7*10**25; #number of atoms(per m**3)\n",
+ "epsilon0=8.854*10**-12;\n",
+ "epsilon_r=1.0000684;\n",
+ "\n",
+ "#Calculation\n",
+ "alphae=epsilon0*(epsilon_r-1)/N; #electronic polarizability(Fm**2)\n",
+ "\n",
+ "#Result\n",
+ "print \"electronic polarizability is\",round(alphae*10**41,3),\"*10**-41 Fm**2\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "##Example number 10.6, Page number 10.26"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 18,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "capacitance is 8.85e-12 F\n",
+ "charge on plates is 8.85e-10 coulomb\n"
+ ]
+ }
+ ],
+ "source": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "epsilon0=8.85*10**-12;\n",
+ "A=100*10**-4; #area(m**2)\n",
+ "d=10**-2; #diameter(m)\n",
+ "V=100; #potential(V)\n",
+ "\n",
+ "#Calculation\n",
+ "C=epsilon0*A/d; #capacitance(F)\n",
+ "Q=C*V; #charge on plates(coulomb)\n",
+ "\n",
+ "#Result\n",
+ "print \"capacitance is\",C,\"F\"\n",
+ "print \"charge on plates is\",Q,\"coulomb\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "##Example number 10.7, Page number 10.27"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 19,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "electronic polarizability is 3.181 *10**-40 Fm**2\n"
+ ]
+ }
+ ],
+ "source": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "n=6.02*10**26; #avagadro number\n",
+ "d=2050; #density(kg/m**3)\n",
+ "w=32; #atomic weight\n",
+ "gama=1/3; #internal field constant\n",
+ "epsilon0=8.55*10**-12;\n",
+ "epsilon_r=3.75;\n",
+ "\n",
+ "#Calculation\n",
+ "N=n*d/w; #number of atoms(per m**3)\n",
+ "alphae=3*epsilon0*((epsilon_r-1)/(epsilon_r+2))/N; #electronic polarizability(Fm**2)\n",
+ "\n",
+ "#Result\n",
+ "print \"electronic polarizability is\",round(alphae*10**40,3),\"*10**-40 Fm**2\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "##Example number 10.8, Page number 10.28"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 21,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "resultant voltage is 39.73 Volts\n"
+ ]
+ }
+ ],
+ "source": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "Q=2*10**-10; #charge(C)\n",
+ "d=4*10**-3; #seperation(m)\n",
+ "epsilon_r=3.5;\n",
+ "A=650*10**-6; #area(m**2)\n",
+ "epsilon0=8.85*10**-12;\n",
+ "\n",
+ "#Calculation\n",
+ "V=Q*d/(epsilon0*epsilon_r*A); #resultant voltage(V)\n",
+ "\n",
+ "#Result\n",
+ "print \"resultant voltage is\",round(V,2),\"Volts\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "##Example number 10.9, Page number 10.28"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 23,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "dielectric displacement is 265.5 *10**-9 C m**-2\n"
+ ]
+ }
+ ],
+ "source": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "d=2*10**-3; #seperation(m)\n",
+ "epsilon_r=6;\n",
+ "V=10; #voltage(V)\n",
+ "epsilon0=8.85*10**-12;\n",
+ "\n",
+ "#Calculation\n",
+ "E=V/d;\n",
+ "D=epsilon0*epsilon_r*E; #dielectric displacement(C m**-2)\n",
+ "\n",
+ "#Result\n",
+ "print \"dielectric displacement is\",round(D*10**9,1),\"*10**-9 C m**-2\""
+ ]
+ }
+ ],
+ "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/sample_notebooks/Suhaib Alam/chapter-4.ipynb b/sample_notebooks/Suhaib Alam/chapter-4.ipynb
new file mode 100755
index 00000000..c7c62a77
--- /dev/null
+++ b/sample_notebooks/Suhaib Alam/chapter-4.ipynb
@@ -0,0 +1,380 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:31dcf77e65a826bbecccd0c8b7094f24a045faabd3e68c38af8ed1add965bf7a"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter-4 : Bipolar Junction & Field Effect Transistors"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex 4.1, p-175"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "#given data :\n",
+ "VGS=10 #in Volt\n",
+ "IG=0.001 #in uAmpere\n",
+ "IG=IG*10**-6 #in Ampere\n",
+ "RGS=VGS/IG #in Ohm\n",
+ "RGS*=10**-6 #Mohm\n",
+ "print \"Resistance between gate and source is\",round(RGS,2),\"Mohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistance between gate and source is 10000.0 Mohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex 4.2, p-176"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "#given data :\n",
+ "delVDS=1.5 #in Volt\n",
+ "delID=120 #in uAmpere\n",
+ "delID=delID*10**-6 #in Ampere\n",
+ "rd=delVDS/delID #in Ohm\n",
+ "rd*=10**-3 # Mohm\n",
+ "print \"AC drain Resistance of JFET is\",round(rd,2),\"Kohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "AC drain Resistance of JFET is 12.5 Kohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex 4.3, p-179"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "#given data :\n",
+ "ID2=1.5 #in mAmpere\n",
+ "ID1=1.2 #in mAmpere\n",
+ "delID=ID2-ID1 #in Ampere\n",
+ "VGS1=-4.25 #in Volt\n",
+ "VGS2=-4.10 #in Volt\n",
+ "delVGS=VGS2-VGS1 #in Volt\n",
+ "gm=delID/delVGS #in Ohm\n",
+ "print \"Transconductance is\",round(gm,2),\"mA/V\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Transconductance is 2.0 mA/V\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex 4.4, p-182"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "#given data :\n",
+ "VDS1=5 #in Volt\n",
+ "VDS2=12 #in Volt\n",
+ "VDS3=12 #in Volt\n",
+ "VGS1=0 #in Volt\n",
+ "VGS2=0 #in Volt\n",
+ "VGS3=-0.25 #in Volt\n",
+ "ID1=8 #in mAmpere\n",
+ "ID2=8.2 #in mAmpere\n",
+ "ID3=7.5 #in mAmpere\n",
+ "#AC drain resistance\n",
+ "delVDS=VDS2-VDS1 #in Volt\n",
+ "delID=ID2-ID1 #in mAmpere\n",
+ "rd=delVDS/delID #in Kohm\n",
+ "print \"AC Drain resistance is\",round(rd,2),\"Kohm\"\n",
+ "#Transconductance\n",
+ "delID=ID3-ID2 #in mAmpere\n",
+ "delVGS=VGS3-VGS2 #in Volt\n",
+ "gm=delID/delVGS #in mA/V or mS\n",
+ "print \"Transconductance is\",round(gm,2),\"mA/V\"\n",
+ "#Amplification Factor\n",
+ "meu=rd*1000*gm*10**-3 #unitless\n",
+ "print \"Amplification Factor is\",round(meu,2) "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "AC Drain resistance is 35.0 Kohm\n",
+ "Transconductance is 2.8 mA/V\n",
+ "Amplification Factor is 98.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex 4.5, p-188"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "from __future__ import division\n",
+ "from math import sqrt\n",
+ "#given data :\n",
+ "VP=-4.5 #in Volt\n",
+ "IDSS=10 #in mAmpere\n",
+ "IDS=2.5 #in mAmpere\n",
+ "#Formula : IDS=IDSS*[1-VGS/VP]**2\n",
+ "VGS=VP*(1-sqrt(IDS/IDSS)) #in Volt\n",
+ "gm=(-2*IDSS*10**-3)*(1-VGS/VP)/VP #in A/V\n",
+ "gm*=1000 # mA/V\n",
+ "print \"Transconductance is\",round(gm,2),\"mA/V\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Transconductance is 2.22 mA/V\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex 4.6, p-192"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "#given data :\n",
+ "gm=10 #in mS\n",
+ "gm=gm*10**-3 #in S\n",
+ "IDSS=10 #in uAmpere\n",
+ "IDSS=IDSS*10**-6 #in Ampere\n",
+ "#VGS(OFF):VGS=VP\n",
+ "#Formula : gm=gmo=-2*IDSS/VP=-2*IDSS/VG(Off)\n",
+ "VGS_OFF=-2*IDSS/gm #in Volt\n",
+ "VGS_OFF*=1000 # mV\n",
+ "print \"VGS(OFF) is\",round(VGS_OFF),\"mV\" "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "VGS(OFF) is -2.0 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex 4.7, p-195"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "#given data :\n",
+ "VP=-4 #in Volt\n",
+ "VGS=-2 #in Volt\n",
+ "IDSS=10 #in mAmpere\n",
+ "IDSS=IDSS*10**-3 #in Ampere\n",
+ "#Formula : ID=IDSS*[1-VGS/VP]**2\n",
+ "ID=IDSS*(1-VGS/VP)**2 #in Ampere\n",
+ "ID*=1000 #mA\n",
+ "print \"Drain Current is\",round(ID,2),\"mA\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Drain Current is 2.5 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex 4.8, p-206"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "#given data :\n",
+ "IDSS=8.7 #in mAmpere\n",
+ "IDSS=IDSS*10**-3 #in Ampere\n",
+ "VP=-3 #in Volt\n",
+ "VGS=-1 #in Volt\n",
+ "#ID\n",
+ "ID=IDSS*(1-VGS/VP)**2\n",
+ "ID*=1000 #mA\n",
+ "print \"Drain current ID is\",round(ID,2),\"mA\"\n",
+ "#gmo\n",
+ "gmo=-2*IDSS/VP #in S\n",
+ "gmo*=1000 # mA/V or mS\n",
+ "print \"Transconductance for VGS=0V is\",round(gmo,2),\"mA/V or mS\"\n",
+ "#gm\n",
+ "gm=gmo*(1-VGS/VP) #in S\n",
+ "gm*=1000 # mA/V or mS\n",
+ "print \"Transconductance is\",round(gm,2),\"mA/V or mS\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Drain current ID is 3.87 mA\n",
+ "Transconductance for VGS=0V is 5.8 mA/V or mS\n",
+ "Transconductance is 3866.67 mA/V or mS\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex 4.9, p-209"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "#given data :\n",
+ "IDSS=8.4 #in mAmpere\n",
+ "IDSS=IDSS*10**-3 #in Ampere\n",
+ "VP=-3 #in Volt\n",
+ "VGS=-1.5 #in Volt\n",
+ "#ID\n",
+ "ID=IDSS*array(1-VGS/VP)**2\n",
+ "ID*=1000 # mA\n",
+ "print \"Drain current ID is\",round(ID,2),\"mA\"\n",
+ "#gmo\n",
+ "gmo=-2*IDSS/VP #in S\n",
+ "gmo*=1000 #mS\n",
+ "print \"Transconductance for VGS=0V is\",round(gmo,2),\"mA/V or mS\"\n",
+ "gm=gmo*(1-VGS/VP) #in S\n",
+ "gm*=1000 #mS\n",
+ "print \"Transconductance is\",round(gm,2),\"mA/V or mS\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Drain current ID is 2.1 mA\n",
+ "Transconductance for VGS=0V is 5.6 mA/V or mS\n",
+ "Transconductance is 2800.0 mA/V or mS\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/sample_notebooks/Suhaib Alam/chapter-4_1.ipynb b/sample_notebooks/Suhaib Alam/chapter-4_1.ipynb
new file mode 100755
index 00000000..6ffa60c7
--- /dev/null
+++ b/sample_notebooks/Suhaib Alam/chapter-4_1.ipynb
@@ -0,0 +1,380 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:a6f6496f7d8520d91394edb58e855ee90407c632c03d5cd3142b85830a4324b1"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter-4 : Bipolar Junction & Field Effect Transistors"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex 4.1, p-175"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "from __future__ import division\n",
+ "#given data :\n",
+ "VGS=10 #in Volt\n",
+ "IG=0.001 #in uAmpere\n",
+ "IG=IG*10**-6 #in Ampere\n",
+ "RGS=VGS/IG #in Ohm\n",
+ "RGS*=10**-6 #Mohm\n",
+ "print \"Resistance between gate and source is\",round(RGS,2),\"Mohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resistance between gate and source is 10000.0 Mohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex 4.2, p-176"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "from __future__ import division\n",
+ "#given data :\n",
+ "delVDS=1.5 #in Volt\n",
+ "delID=120 #in uAmpere\n",
+ "delID=delID*10**-6 #in Ampere\n",
+ "rd=delVDS/delID #in Ohm\n",
+ "rd*=10**-3 # Mohm\n",
+ "print \"AC drain Resistance of JFET is\",round(rd,2),\"Kohm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "AC drain Resistance of JFET is 12.5 Kohm\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex 4.3, p-179"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "from __future__ import division\n",
+ "#given data :\n",
+ "ID2=1.5 #in mAmpere\n",
+ "ID1=1.2 #in mAmpere\n",
+ "delID=ID2-ID1 #in Ampere\n",
+ "VGS1=-4.25 #in Volt\n",
+ "VGS2=-4.10 #in Volt\n",
+ "delVGS=VGS2-VGS1 #in Volt\n",
+ "gm=delID/delVGS #in Ohm\n",
+ "print \"Transconductance is\",round(gm,2),\"mA/V\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Transconductance is 2.0 mA/V\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex 4.4, p-182"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "from __future__ import division\n",
+ "#given data :\n",
+ "VDS1=5 #in Volt\n",
+ "VDS2=12 #in Volt\n",
+ "VDS3=12 #in Volt\n",
+ "VGS1=0 #in Volt\n",
+ "VGS2=0 #in Volt\n",
+ "VGS3=-0.25 #in Volt\n",
+ "ID1=8 #in mAmpere\n",
+ "ID2=8.2 #in mAmpere\n",
+ "ID3=7.5 #in mAmpere\n",
+ "#AC drain resistance\n",
+ "delVDS=VDS2-VDS1 #in Volt\n",
+ "delID=ID2-ID1 #in mAmpere\n",
+ "rd=delVDS/delID #in Kohm\n",
+ "print \"AC Drain resistance is\",round(rd,2),\"Kohm\"\n",
+ "#Transconductance\n",
+ "delID=ID3-ID2 #in mAmpere\n",
+ "delVGS=VGS3-VGS2 #in Volt\n",
+ "gm=delID/delVGS #in mA/V or mS\n",
+ "print \"Transconductance is\",round(gm,2),\"mA/V\"\n",
+ "#Amplification Factor\n",
+ "meu=rd*1000*gm*10**-3 #unitless\n",
+ "print \"Amplification Factor is\",round(meu,2) "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "AC Drain resistance is 35.0 Kohm\n",
+ "Transconductance is 2.8 mA/V\n",
+ "Amplification Factor is 98.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex 4.5, p-188"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": true,
+ "input": [
+ "from __future__ import division\n",
+ "from math import sqrt\n",
+ "#given data :\n",
+ "VP=-4.5 #in Volt\n",
+ "IDSS=10 #in mAmpere\n",
+ "IDS=2.5 #in mAmpere\n",
+ "#Formula : IDS=IDSS*[1-VGS/VP]**2\n",
+ "VGS=VP*(1-sqrt(IDS/IDSS)) #in Volt\n",
+ "gm=(-2*IDSS*10**-3)*(1-VGS/VP)/VP #in A/V\n",
+ "gm*=1000 # mA/V\n",
+ "print \"Transconductance is\",round(gm,2),\"mA/V\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Transconductance is 2.22 mA/V\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex 4.6, p-192"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "from __future__ import division\n",
+ "#given data :\n",
+ "gm=10 #in mS\n",
+ "gm=gm*10**-3 #in S\n",
+ "IDSS=10 #in uAmpere\n",
+ "IDSS=IDSS*10**-6 #in Ampere\n",
+ "#VGS(OFF):VGS=VP\n",
+ "#Formula : gm=gmo=-2*IDSS/VP=-2*IDSS/VG(Off)\n",
+ "VGS_OFF=-2*IDSS/gm #in Volt\n",
+ "VGS_OFF*=1000 # mV\n",
+ "print \"VGS(OFF) is\",round(VGS_OFF),\"mV\" "
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "VGS(OFF) is -2.0 mV\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex 4.7, p-195"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "from __future__ import division\n",
+ "#given data :\n",
+ "VP=-4 #in Volt\n",
+ "VGS=-2 #in Volt\n",
+ "IDSS=10 #in mAmpere\n",
+ "IDSS=IDSS*10**-3 #in Ampere\n",
+ "#Formula : ID=IDSS*[1-VGS/VP]**2\n",
+ "ID=IDSS*(1-VGS/VP)**2 #in Ampere\n",
+ "ID*=1000 #mA\n",
+ "print \"Drain Current is\",round(ID,2),\"mA\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Drain Current is 2.5 mA\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex 4.8, p-206"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "from __future__ import division\n",
+ "#given data :\n",
+ "IDSS=8.7 #in mAmpere\n",
+ "IDSS=IDSS*10**-3 #in Ampere\n",
+ "VP=-3 #in Volt\n",
+ "VGS=-1 #in Volt\n",
+ "#ID\n",
+ "ID=IDSS*(1-VGS/VP)**2\n",
+ "ID*=1000 #mA\n",
+ "print \"Drain current ID is\",round(ID,2),\"mA\"\n",
+ "#gmo\n",
+ "gmo=-2*IDSS/VP #in S\n",
+ "gmo*=1000 # mA/V or mS\n",
+ "print \"Transconductance for VGS=0V is\",round(gmo,2),\"mA/V or mS\"\n",
+ "#gm\n",
+ "gm=gmo*(1-VGS/VP) #in S\n",
+ "gm*=1000 # mA/V or mS\n",
+ "print \"Transconductance is\",round(gm,2),\"mA/V or mS\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Drain current ID is 3.87 mA\n",
+ "Transconductance for VGS=0V is 5.8 mA/V or mS\n",
+ "Transconductance is 3866.67 mA/V or mS\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex 4.9, p-209"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "from __future__ import division\n",
+ "#given data :\n",
+ "IDSS=8.4 #in mAmpere\n",
+ "IDSS=IDSS*10**-3 #in Ampere\n",
+ "VP=-3 #in Volt\n",
+ "VGS=-1.5 #in Volt\n",
+ "#ID\n",
+ "ID=IDSS*(1-VGS/VP)**2\n",
+ "ID*=1000 # mA\n",
+ "print \"Drain current ID is\",round(ID,2),\"mA\"\n",
+ "#gmo\n",
+ "gmo=-2*IDSS/VP #in S\n",
+ "gmo*=1000 #mS\n",
+ "print \"Transconductance for VGS=0V is\",round(gmo,2),\"mA/V or mS\"\n",
+ "gm=gmo*(1-VGS/VP) #in S\n",
+ "gm*=1000 #mS\n",
+ "print \"Transconductance is\",round(gm,2),\"mA/V or mS\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Drain current ID is 2.1 mA\n",
+ "Transconductance for VGS=0V is 5.6 mA/V or mS\n",
+ "Transconductance is 2800.0 mA/V or mS\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file
diff --git a/sample_notebooks/yashwanth kumarmada/sample_notes.ipynb b/sample_notebooks/yashwanth kumarmada/sample_notes.ipynb
new file mode 100755
index 00000000..24fbec2e
--- /dev/null
+++ b/sample_notebooks/yashwanth kumarmada/sample_notes.ipynb
@@ -0,0 +1,414 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+ "source": [
+ "#CHAPTER 2"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "the weight is 128.8\n"
+ ]
+ }
+ ],
+ "source": [
+ "##Example2_1\n",
+ "# Aim:To Find Weight of Body\n",
+ "# Given:\n",
+ "# Mass of the Body:\n",
+ "m=4; #slugs\n",
+ "\n",
+ "# Solutions:\n",
+ "# we know acceleration due to gravity,\n",
+ "g=32.2; #ft/s**2\n",
+ "W=(m*g);\n",
+ "\n",
+ "# Results:\n",
+ "print \"the weight is\",W\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ " Results: \n",
+ " The specific weight of Body is lb/ft**3. 71.7\n"
+ ]
+ }
+ ],
+ "source": [
+ "##Example2_2\n",
+ "# Aim:To find the specific weight of a body\n",
+ "# Given:\n",
+ "# Weigth of the Body:\n",
+ "W=129; #lb\n",
+ "# Volume of the Body:\n",
+ "V=1.8; #ft**3\n",
+ "\n",
+ "# Solution:\n",
+ "# we know specific weight,\n",
+ "# gamma=(Weigth of the Body/Volume of the Body)\n",
+ "gamma1=(W/V); #lb/ft^3\n",
+ "# rounding off the above answer\n",
+ "gamma1=round(gamma1)+(round((gamma1-round(gamma1))*10)/10); #lb/ft^3\n",
+ " \n",
+ "# Results:\n",
+ "print \" Results: \"\n",
+ "print \" The specific weight of Body is lb/ft**3.\",gamma1\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Results: \n",
+ "The specific gravity of air 0.00120512820513\n"
+ ]
+ }
+ ],
+ "source": [
+ "##Example2_3\n",
+ "# Aim:To find the specific gravity of air at 68 degF\n",
+ "# Given:\n",
+ "# specific weight of air at 68 degF:\n",
+ "gamma_air=0.0752; #lb/ft**3\n",
+ "\n",
+ "\n",
+ "# Solution:\n",
+ "# we know,\n",
+ "# specific gravity of air=(specific weight of air/specific weight of water)\n",
+ "# also we know,specific weight of water at 68 degF,\n",
+ "gamma_water=62.4; #lb/ft**3\n",
+ "SG_air=gamma_air/gamma_water;\n",
+ "\n",
+ "# Results:\n",
+ "print \"Results: \"\n",
+ "print \"The specific gravity of air \",SG_air \n",
+ "\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 9,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Results: \n",
+ "The Density of Body is slugs/ft**3. 2.22222222222\n",
+ "The Density of Body is slugs/ft**3. 2.22360248447\n"
+ ]
+ }
+ ],
+ "source": [
+ "##Example2_4\n",
+ "# Aim:To find Density of body of Example 2-1 and 2-2\n",
+ "# Given:\n",
+ "# mass of the Body:\n",
+ "m=4; #slugs\n",
+ "# Volume of the Body:\n",
+ "V=1.8; #ft**3\n",
+ "\n",
+ "# Solution:\n",
+ "# we know density,\n",
+ "# rho1=(mass of the Body/Volume of the Body)\n",
+ "rho1=(m/V); #slugs/ft**3\n",
+ "# also density,rho2=(specific weight/acceleration due to gravity)\n",
+ "g=32.2; #ft/s**2\n",
+ "gamma1=71.6; #lb/ft**3\n",
+ "rho2=(gamma1/g); #slugs/ft**3\n",
+ "\n",
+ "# Results:\n",
+ "print \"Results: \"\n",
+ "print \"The Density of Body is slugs/ft**3.\",rho1\n",
+ "print \"The Density of Body is slugs/ft**3.\",rho2\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 10,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ " Results: \n",
+ " The pressure on skin diver is % psi. 25.992\n"
+ ]
+ }
+ ],
+ "source": [
+ "##Example2_5\n",
+ "# Aim:To find pressure on the skin diver\n",
+ "# Given:\n",
+ "# Depth of Water Body:\n",
+ "H=60; #ft\n",
+ "\n",
+ "# Solution:\n",
+ "# specific Weight of water,\n",
+ "gamma1=0.0361; #lb/in**3 \n",
+ "# Conversion: \n",
+ "# 1 feet = 12 inches\n",
+ "# 1 lb/in**2 = 1 psi \n",
+ "# we know pressure,\n",
+ "# p=(specific weight of liquid * liquid column height)\n",
+ "p=(gamma1*H*12); #psi\n",
+ "\n",
+ "# Results:\n",
+ "print \" Results: \"\n",
+ "print \" The pressure on skin diver is % psi.\",p\n",
+ "\n",
+ "\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 12,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ " Results: \n",
+ " The Height of water column is ft. 33.7977839335\n"
+ ]
+ }
+ ],
+ "source": [
+ "##Example2_6\n",
+ "# Aim:To find tube height of a Barometer\n",
+ "# Given:\n",
+ "# liquid used is Water instead of Mercury.\n",
+ "\n",
+ "# Solution:\n",
+ "# specific Weight of water,\n",
+ "gamma1=0.0361; #lb/in**3 \n",
+ "# We also knows Atmospheric Pressure,\n",
+ "p=14.7; #psi\n",
+ "# Conversion: \n",
+ "# 1 feet = 12 inches\n",
+ "# 1 lb/in**2 = 1 psi \n",
+ "# we know pressure,\n",
+ "# p=(specific weight of liquid * liquid column height)\n",
+ "# Therefore,\n",
+ "H=(p/gamma1); #in\n",
+ "# He=Height in Feet.\n",
+ "He=H*0.083; #ft\n",
+ "\n",
+ "# Results:\n",
+ "print \" Results: \"\n",
+ "print \" The Height of water column is ft.\",He\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 13,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ " Results: \n",
+ " The Absolute Pressure is psi. 9.7\n"
+ ]
+ }
+ ],
+ "source": [
+ "##Example2_7\n",
+ "# Aim:To convert given pressure into absolute pressure\n",
+ "# Given:\n",
+ "# Gage Pressure:\n",
+ "Pg=-5; #psi\n",
+ "\n",
+ "# Solution:\n",
+ "# Atmospheric Pressure,\n",
+ "Po=14.7; #psi \n",
+ "# Absolute Pressure(Pa) =Gage Pressure + Atmospheric Pressure\n",
+ "Pa=Pg+Po;\n",
+ "\n",
+ "# Results:\n",
+ "print \" Results: \"\n",
+ "print \" The Absolute Pressure is psi.\",Pa\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 14,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ " Results: \n",
+ "The Absolute Pressure is psi. 40.7\n"
+ ]
+ }
+ ],
+ "source": [
+ "##Example2_8\n",
+ "# Aim:To find absolute pressure on skin diver of Example 2-5\n",
+ "# Given:\n",
+ "# Gage Pressure:\n",
+ "Pg=26; #psi\n",
+ "\n",
+ "# Solution:\n",
+ "# Atmospheric Pressure,\n",
+ "Po=14.7; #psi \n",
+ "# Absolute Pressure(Pa) =Gage Pressure + Atmospheric Pressure\n",
+ "Pa=Pg+Po; #psi\n",
+ "\n",
+ "# Results:\n",
+ "print \" Results: \"\n",
+ "print \"The Absolute Pressure is psi.\",Pa\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 15,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ " Results: \n",
+ "The specific weights is N/m**3. 8792\n",
+ " The answer in the program is different than that in textbook. It may be due to no.s of significant digit in data and calculation\n"
+ ]
+ }
+ ],
+ "source": [
+ "##Example2_9\n",
+ "# Aim:To Determine specific weights in N/m**3\n",
+ "# Given:\n",
+ "# specific weight:\n",
+ "gamma1=56; #lb/ft**3\n",
+ "\n",
+ "\n",
+ "# Solution:\n",
+ "# We know,\n",
+ "# 1 N/m**3 = 157 lb/ft**3\n",
+ "gamma2=157*gamma1; #N/m**3\n",
+ "\n",
+ "# Results:\n",
+ "print \" Results: \"\n",
+ "print \"The specific weights is N/m**3.\",gamma2\n",
+ "print \" The answer in the program is different than that in textbook. It may be due to no.s of significant digit in data and calculation\"\n",
+ "\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 16,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ " Results: \n",
+ " The temp at which Fahrenheit and Celsius values are equal is deg. -40.0\n"
+ ]
+ }
+ ],
+ "source": [
+ "##Example2_10\n",
+ "# Aim:To find Temperature at which Fahrenheit and Celsius values are equal \n",
+ "# Given:\n",
+ "# T(degF) = T(degC) #Eqn - 1\n",
+ "\n",
+ "# Solution:\n",
+ "# We know that,\n",
+ "# T(degF)=((1.8*T(degC))+32) #Eqn - 2 \n",
+ "# From Eqn 1 and 2\n",
+ "# ((1.8*T(degC))+32)= T(degC)\n",
+ "# (1-1.8)*T(degC)=32\n",
+ "# -0.8*T(degC)=32\n",
+ "TdegC=-32/0.8;\n",
+ "\n",
+ "# Results:\n",
+ "print \" Results: \"\n",
+ "print \" The temp at which Fahrenheit and Celsius values are equal is deg.\",TdegC\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+ "source": []
+ }
+ ],
+ "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/sample_notebooks/yashwanth kumarmada/sample_notes_1.ipynb b/sample_notebooks/yashwanth kumarmada/sample_notes_1.ipynb
new file mode 100755
index 00000000..faacb548
--- /dev/null
+++ b/sample_notebooks/yashwanth kumarmada/sample_notes_1.ipynb
@@ -0,0 +1,480 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "collapsed": true
+ },
+ "source": [
+ "# CHAPTER 2 :Physical Properties of Hydraulic Fluids"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {
+ "collapsed": false
+ },
+ "source": [
+ "##Example2_1"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "the weight is 129.0\n"
+ ]
+ }
+ ],
+ "source": [
+ "# Aim:To Find Weight of Body\n",
+ "# Given:\n",
+ "# Mass of the Body:\n",
+ "m=4; #slugs\n",
+ "\n",
+ "# Solutions:\n",
+ "# we know acceleration due to gravity,\n",
+ "g=32.2; #ft/s**2\n",
+ "W=(m*g);\n",
+ "\n",
+ "# Results:\n",
+ "print \"the weight(lbs) is\",round(W,0)\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example2_2"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ " Results: \n",
+ " The specific weight of Body is lb/ft**3. 71.7\n"
+ ]
+ }
+ ],
+ "source": [
+ "# Aim:To find the specific weight of a body\n",
+ "# Given:\n",
+ "# Weigth of the Body:\n",
+ "W=129; #lb\n",
+ "# Volume of the Body:\n",
+ "V=1.8; #ft**3\n",
+ "\n",
+ "# Solution:\n",
+ "# we know specific weight,\n",
+ "# gamma=(Weigth of the Body/Volume of the Body)\n",
+ "gamma1=(W/V); #lb/ft^3\n",
+ "# rounding off the above answer\n",
+ "gamma1=round(gamma1)+(round((gamma1-round(gamma1))*10)/10); #lb/ft^3\n",
+ " \n",
+ "# Results:\n",
+ "print \" Results: \"\n",
+ "print \" The specific weight of Body is lb/ft**3.\",gamma1\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example2_3"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Results: \n",
+ "The specific gravity of air 0.00121\n"
+ ]
+ }
+ ],
+ "source": [
+ "# Aim:To find the specific gravity of air at 68 degF\n",
+ "# Given:\n",
+ "# specific weight of air at 68 degF:\n",
+ "gamma_air=0.0752; #lb/ft**3\n",
+ "\n",
+ "\n",
+ "# Solution:\n",
+ "# we know,\n",
+ "# specific gravity of air=(specific weight of air/specific weight of water)\n",
+ "# also we know,specific weight of water at 68 degF,\n",
+ "gamma_water=62.4; #lb/ft**3\n",
+ "SG_air=gamma_air/gamma_water;\n",
+ "\n",
+ "# Results:\n",
+ "print \"Results: \"\n",
+ "print \"The specific gravity of air \",round(SG_air,5) \n",
+ "\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example2_4"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Results: \n",
+ "The Density of Body is slugs/ft**3. 2.2222\n",
+ "The Density of Body is slugs/ft**3. 2.2236\n"
+ ]
+ }
+ ],
+ "source": [
+ "\n",
+ "# Aim:To find Density of body of Example 2-1 and 2-2\n",
+ "# Given:\n",
+ "# mass of the Body:\n",
+ "m=4; #slugs\n",
+ "# Volume of the Body:\n",
+ "V=1.8; #ft**3\n",
+ "\n",
+ "# Solution:\n",
+ "# we know density,\n",
+ "# rho1=(mass of the Body/Volume of the Body)\n",
+ "rho1=(m/V); #slugs/ft**3\n",
+ "# also density,rho2=(specific weight/acceleration due to gravity)\n",
+ "g=32.2; #ft/s**2\n",
+ "gamma1=71.6; #lb/ft**3\n",
+ "rho2=(gamma1/g); #slugs/ft**3\n",
+ "\n",
+ "# Results:\n",
+ "print \"Results: \"\n",
+ "print \"The Density of Body is slugs/ft**3.\",round(rho1,4)\n",
+ "print \"The Density of Body is slugs/ft**3.\",round(rho2,4)\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example2_5"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ " Results: \n",
+ " The pressure on skin diver is psi. 26.0\n"
+ ]
+ }
+ ],
+ "source": [
+ "# Aim:To find pressure on the skin diver\n",
+ "# Given:\n",
+ "# Depth of Water Body:\n",
+ "H=60; #ft\n",
+ "\n",
+ "# Solution:\n",
+ "# specific Weight of water,\n",
+ "gamma1=0.0361; #lb/in**3 \n",
+ "# Conversion: \n",
+ "# 1 feet = 12 inches\n",
+ "# 1 lb/in**2 = 1 psi \n",
+ "# we know pressure,\n",
+ "# p=(specific weight of liquid * liquid column height)\n",
+ "p=(gamma1*H*12); #psi\n",
+ "\n",
+ "# Results:\n",
+ "print \" Results: \"\n",
+ "print \" The pressure on skin diver is psi.\",round(p,1)\n",
+ "\n",
+ "\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example2_6"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ " Results: \n",
+ " The Height of water column is ft. 33.8\n"
+ ]
+ }
+ ],
+ "source": [
+ "\n",
+ "# Aim:To find tube height of a Barometer\n",
+ "# Given:\n",
+ "# liquid used is Water instead of Mercury.\n",
+ "\n",
+ "# Solution:\n",
+ "# specific Weight of water,\n",
+ "gamma1=0.0361; #lb/in**3 \n",
+ "# We also knows Atmospheric Pressure,\n",
+ "p=14.7; #psi\n",
+ "# Conversion: \n",
+ "# 1 feet = 12 inches\n",
+ "# 1 lb/in**2 = 1 psi \n",
+ "# we know pressure,\n",
+ "# p=(specific weight of liquid * liquid column height)\n",
+ "# Therefore,\n",
+ "H=(p/gamma1); #in\n",
+ "# He=Height in Feet.\n",
+ "He=H*0.083; #ft\n",
+ "\n",
+ "# Results:\n",
+ "print \" Results: \"\n",
+ "print \" The Height of water column is ft.\",round(He,1)\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example2_7"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 13,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ " Results: \n",
+ " The Absolute Pressure is psi. 9.7\n"
+ ]
+ }
+ ],
+ "source": [
+ "\n",
+ "# Aim:To convert given pressure into absolute pressure\n",
+ "# Given:\n",
+ "# Gage Pressure:\n",
+ "Pg=-5; #psi\n",
+ "\n",
+ "# Solution:\n",
+ "# Atmospheric Pressure,\n",
+ "Po=14.7; #psi \n",
+ "# Absolute Pressure(Pa) =Gage Pressure + Atmospheric Pressure\n",
+ "Pa=Pg+Po;\n",
+ "\n",
+ "# Results:\n",
+ "print \" Results: \"\n",
+ "print \" The Absolute Pressure is psi.\",Pa\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example2_8"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 14,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ " Results: \n",
+ "The Absolute Pressure is psi. 40.7\n"
+ ]
+ }
+ ],
+ "source": [
+ "\n",
+ "# Aim:To find absolute pressure on skin diver of Example 2-5\n",
+ "# Given:\n",
+ "# Gage Pressure:\n",
+ "Pg=26; #psi\n",
+ "\n",
+ "# Solution:\n",
+ "# Atmospheric Pressure,\n",
+ "Po=14.7; #psi \n",
+ "# Absolute Pressure(Pa) =Gage Pressure + Atmospheric Pressure\n",
+ "Pa=Pg+Po; #psi\n",
+ "\n",
+ "# Results:\n",
+ "print \" Results: \"\n",
+ "print \"The Absolute Pressure is psi.\",Pa\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example2_9"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 15,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ " Results: \n",
+ "The specific weights is N/m**3. 8792\n",
+ " The answer in the program is different than that in textbook. It may be due to no.s of significant digit in data and calculation\n"
+ ]
+ }
+ ],
+ "source": [
+ "\n",
+ "# Aim:To Determine specific weights in N/m**3\n",
+ "# Given:\n",
+ "# specific weight:\n",
+ "gamma1=56; #lb/ft**3\n",
+ "\n",
+ "\n",
+ "# Solution:\n",
+ "# We know,\n",
+ "# 1 N/m**3 = 157 lb/ft**3\n",
+ "gamma2=157*gamma1; #N/m**3\n",
+ "\n",
+ "# Results:\n",
+ "print \" Results: \"\n",
+ "print \"The specific weights is N/m**3.\",gamma2\n",
+ "print \" The answer in the program is different than that in textbook. It may be due to no.s of significant digit in data and calculation\"\n",
+ "\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Example2_10"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 16,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ " Results: \n",
+ " The temp at which Fahrenheit and Celsius values are equal is deg. -40.0\n"
+ ]
+ }
+ ],
+ "source": [
+ "\n",
+ "# Aim:To find Temperature at which Fahrenheit and Celsius values are equal \n",
+ "# Given:\n",
+ "# T(degF) = T(degC) #Eqn - 1\n",
+ "\n",
+ "# Solution:\n",
+ "# We know that,\n",
+ "# T(degF)=((1.8*T(degC))+32) #Eqn - 2 \n",
+ "# From Eqn 1 and 2\n",
+ "# ((1.8*T(degC))+32)= T(degC)\n",
+ "# (1-1.8)*T(degC)=32\n",
+ "# -0.8*T(degC)=32\n",
+ "TdegC=-32/0.8;\n",
+ "\n",
+ "# Results:\n",
+ "print \" Results: \"\n",
+ "print \" The temp at which Fahrenheit and Celsius values are equal is deg.\",TdegC\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+ "source": []
+ }
+ ],
+ "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
+}