diff options
author | Trupti Kini | 2016-02-12 23:30:12 +0600 |
---|---|---|
committer | Trupti Kini | 2016-02-12 23:30:12 +0600 |
commit | c7bc2b9747fb78ce69940de25205866dd41b6278 (patch) | |
tree | 83872e4f9ac3d53372a1e32c7829eddf3fbc840e /sample_notebooks | |
parent | 2e55106f9fe86edcb790da6e8561a7560a4df408 (diff) | |
download | Python-Textbook-Companions-c7bc2b9747fb78ce69940de25205866dd41b6278.tar.gz Python-Textbook-Companions-c7bc2b9747fb78ce69940de25205866dd41b6278.tar.bz2 Python-Textbook-Companions-c7bc2b9747fb78ce69940de25205866dd41b6278.zip |
Added(A)/Deleted(D) following books
A Electronics_Engineering_by_P._Raja/chapter_1_2.ipynb
A Electronics_Engineering_by_P._Raja/chapter_2_2.ipynb
A Electronics_Engineering_by_P._Raja/chapter_3_2.ipynb
A Electronics_Engineering_by_P._Raja/chapter_4_2.ipynb
A Electronics_Engineering_by_P._Raja/chapter_5_2.ipynb
A Electronics_Engineering_by_P._Raja/chapter_6_2.ipynb
A Electronics_Engineering_by_P._Raja/chapter_7_2.ipynb
A Electronics_Engineering_by_P._Raja/chapter_8_2.ipynb
A Electronics_Engineering_by_P._Raja/chapter_9_2.ipynb
A Electronics_Engineering_by_P._Raja/screenshots/7_2.png
A Electronics_Engineering_by_P._Raja/screenshots/snap-3_2.png
A Electronics_Engineering_by_P._Raja/screenshots/snap-6_2.png
A Machine_Design_by_U.C._Jindal/Ch10.ipynb
A Machine_Design_by_U.C._Jindal/Ch11.ipynb
A Machine_Design_by_U.C._Jindal/Ch12.ipynb
A Machine_Design_by_U.C._Jindal/Ch13.ipynb
A Machine_Design_by_U.C._Jindal/Ch14.ipynb
A Machine_Design_by_U.C._Jindal/Ch15.ipynb
A Machine_Design_by_U.C._Jindal/Ch16.ipynb
A Machine_Design_by_U.C._Jindal/Ch17.ipynb
A Machine_Design_by_U.C._Jindal/Ch18.ipynb
A Machine_Design_by_U.C._Jindal/Ch19.ipynb
A Machine_Design_by_U.C._Jindal/Ch20.ipynb
A Machine_Design_by_U.C._Jindal/Ch21.ipynb
A Machine_Design_by_U.C._Jindal/Ch22.ipynb
A Machine_Design_by_U.C._Jindal/Ch23.ipynb
A Machine_Design_by_U.C._Jindal/Ch24.ipynb
A Machine_Design_by_U.C._Jindal/Ch25.ipynb
A Machine_Design_by_U.C._Jindal/Ch26.ipynb
A Machine_Design_by_U.C._Jindal/Ch27.ipynb
A Machine_Design_by_U.C._Jindal/Ch28.ipynb
A Machine_Design_by_U.C._Jindal/Ch29.ipynb
A Machine_Design_by_U.C._Jindal/Ch3.ipynb
A Machine_Design_by_U.C._Jindal/Ch30.ipynb
A Machine_Design_by_U.C._Jindal/Ch31.ipynb
A Machine_Design_by_U.C._Jindal/Ch4.ipynb
A Machine_Design_by_U.C._Jindal/Ch5.ipynb
A Machine_Design_by_U.C._Jindal/Ch6.ipynb
A Machine_Design_by_U.C._Jindal/Ch7.ipynb
A Machine_Design_by_U.C._Jindal/Ch8.ipynb
A Machine_Design_by_U.C._Jindal/Ch9.ipynb
A Machine_Design_by_U.C._Jindal/screenshots/Chapter-3stressgraph.png
A Machine_Design_by_U.C._Jindal/screenshots/Chapter-_8AdditionalLoad.png
A Machine_Design_by_U.C._Jindal/screenshots/Chapter11_-_strengthofrevet.png
A Solid_State_Devices_and_Circuits___by_V._Chaudhary_and_H._K._Maity/Chapter02_2.ipynb
A Solid_State_Devices_and_Circuits___by_V._Chaudhary_and_H._K._Maity/Chapter03_2.ipynb
A Solid_State_Devices_and_Circuits___by_V._Chaudhary_and_H._K._Maity/Chapter04_2.ipynb
A Solid_State_Devices_and_Circuits___by_V._Chaudhary_and_H._K._Maity/Chapter05_2.ipynb
A Solid_State_Devices_and_Circuits___by_V._Chaudhary_and_H._K._Maity/Chapter06_2.ipynb
A Solid_State_Devices_and_Circuits___by_V._Chaudhary_and_H._K._Maity/Chapter07_2.ipynb
A Solid_State_Devices_and_Circuits___by_V._Chaudhary_and_H._K._Maity/Chapter08_2.ipynb
A Solid_State_Devices_and_Circuits___by_V._Chaudhary_and_H._K._Maity/Chapter09_2.ipynb
A Solid_State_Devices_and_Circuits___by_V._Chaudhary_and_H._K._Maity/Chapter10_2.ipynb
A Solid_State_Devices_and_Circuits___by_V._Chaudhary_and_H._K._Maity/Chapter11_2.ipynb
A Solid_State_Devices_and_Circuits___by_V._Chaudhary_and_H._K._Maity/screenshots/Screenshot_3.1.py.PNG
A Solid_State_Devices_and_Circuits___by_V._Chaudhary_and_H._K._Maity/screenshots/Screenshot_6.1.py.PNG
A Solid_State_Devices_and_Circuits___by_V._Chaudhary_and_H._K._Maity/screenshots/Screenshot_6.2.py.PNG
A sample_notebooks/PriyankaSaini/Chapter3.ipynb
A sample_notebooks/ebbygeorge/Chapter01.ipynb
Diffstat (limited to 'sample_notebooks')
-rw-r--r-- | sample_notebooks/PriyankaSaini/Chapter3.ipynb | 295 | ||||
-rw-r--r-- | sample_notebooks/ebbygeorge/Chapter01.ipynb | 74 |
2 files changed, 369 insertions, 0 deletions
diff --git a/sample_notebooks/PriyankaSaini/Chapter3.ipynb b/sample_notebooks/PriyankaSaini/Chapter3.ipynb new file mode 100644 index 00000000..9151442b --- /dev/null +++ b/sample_notebooks/PriyankaSaini/Chapter3.ipynb @@ -0,0 +1,295 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:d42b95d086e994736fd89da8bf44c85325c991b363e30dcf52a4839620130b97" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Ch-3 Electroluminescent Sources" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 3.1 Page no 80" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from __future__ import division\n", + "from math import log\n", + "#Calculation of barrier potential\n", + "#Given data\n", + "p=5# # Resistivity of p-region\n", + "n=2# # Resistivity of n-region\n", + "mu=3900#\n", + "k=0.026# #Boltzmann constant\n", + "ni=2.5*10**13# #Density of the electron hole pair\n", + "e=1.6*10**-19# #charge of electron\n", + " \n", + "#Barrier potential calculation\n", + "r0=(1/p)# # Reflection at the fiber air interface \n", + "r1=(1/n)#\n", + "m=r1/(mu*e)#\n", + "p=6.5*10**14# #Density of hole in p -region\n", + "Vb=k*log(p*m/ni**2)#\n", + "print \"Barrier potential = %0.3f V\"%Vb\n", + "\n", + "# The answers vary due to round off error" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Barrier potential = 0.175 V\n" + ] + } + ], + "prompt_number": 19 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 3.15 Page no 484" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "# Calculation of external efficiency \n", + "#Given data\n", + "ne1=0.20# #Total efficiency \n", + "V=3# # Voltage applied\n", + "Eg=1.43# # Bandgap energy\n", + "\n", + "# External efficiency\n", + "ne=(ne1*Eg/V)*100#\n", + "print \"External efficiency of the device = %0.1f %% \"%(ne)#" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "External efficiency of the device = 9.5 % \n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 3.16 Page no 484" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from math import exp\n", + "# Calculation of ratio of threshold current densities\n", + "# Given data\n", + "To1=160# # Device temperature\n", + "To2=55# # Device temperature\n", + "T1=293#\n", + "T2=353#\n", + "J81=exp(T1/To1)# # Threshold current density \n", + "J21=exp(T2/To1)#\n", + "J82=exp(T1/To2)## \n", + "J22=exp(T2/To2)## \n", + "cd1=J21/J81# # Ratio of threshold current densities\n", + "cd2=J22/J82#\n", + "\n", + "print\"Ratio of threshold current densities= %0.2f \"%(cd1)\n", + "print\"Ratio of threshold current densities= %0.2f \"%(cd2)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Ratio of threshold current densities= 1.45 \n", + "Ratio of threshold current densities= 2.98 \n" + ] + } + ], + "prompt_number": 9 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 3.17 Page no 484" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "#Computation of conversion efficiency \n", + "#Given data\n", + "i=10*10**-6# # Device current\n", + "p=5# # Electrical power\n", + "op=50 *10**-6# # Optical power\n", + "ip=5*10*10**-3# # Input power\n", + "\n", + "#Conversion efficiency\n", + "c=op/ip*100# \n", + "print \"Conversion efficiency = %0.1f %% \"%(c)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Conversion efficiency = 0.1 % \n" + ] + } + ], + "prompt_number": 18 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 3.18 Page no 485" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "# Calculation of total power emitted\n", + "#Given data\n", + "r=0.7# # Emissivity\n", + "r0=5.67*10**-8# # Stephen's constant\n", + "A=10**-4# # Surface area\n", + "T=2000# # Temperature\n", + "\n", + "# Total power emitted\n", + "P=r*r0*A*T**4# \n", + "\n", + "print\"Total power emitted = %0.1f Watts \"%P" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Total power emitted = 63.5 Watts \n" + ] + } + ], + "prompt_number": 14 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 3.19 Page no 485" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "# Computation of total energy\n", + "#Given data\n", + "h=6.63*10**-34# # Planck constant\n", + "v=5*10**14# # Bandgap frequency of laser\n", + "N=10**24# # Population inversion density\n", + "V=10**-5# # Volume of laser medium\n", + "\n", + "# Total energy\n", + "E=(1/2)*h*v*(N)*V# \n", + "\n", + "print \"Total energy = %0.1f J \"%E" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Total energy = 1.7 J \n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 3.20 Page no 485" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "# Computation of pulse power\n", + "# Given data\n", + "L=0.1# # Length of laser\n", + "R=0.8# # Mirror reflectance of end mirror\n", + "E=1.7# # Laser pulse energy\n", + "c=3*10**8# # Velocity of light\n", + "t=L/((1-R)*c)# # Cavity life time\n", + "\n", + "# Pulse power\n", + "p=E/t# \n", + "\n", + "print\"Pulse power = %0.0f W \"%p" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Pulse power = 1020000000 W \n" + ] + } + ], + "prompt_number": 20 + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/sample_notebooks/ebbygeorge/Chapter01.ipynb b/sample_notebooks/ebbygeorge/Chapter01.ipynb new file mode 100644 index 00000000..c13357ca --- /dev/null +++ b/sample_notebooks/ebbygeorge/Chapter01.ipynb @@ -0,0 +1,74 @@ +{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "#Chapter 1:General Introduction"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "##Example number 1.1, Page number 1.21"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 18,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "ionization current is 2.000000 *10**-11 amp \n"
+ ]
+ }
+ ],
+ "source": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "C =20/(9*10^11) #converting cms to farads\n",
+
+
+ "\n",
+ "#Calculation\n",
+ "F=154-100 #fall in potential\n",
+ "R=F/60 #rate of fall in potential\n",
+ "I=C*R #ionization current\n",
+ "\n",
+ "#Result\n",
+ "print\"ionization current is \",(I),\"amp\""
+ ]
+ },
+
+ ],
+ "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
+}
|