summaryrefslogtreecommitdiff
path: root/sample_notebooks
diff options
context:
space:
mode:
authorTrupti Kini2016-06-17 23:30:26 +0600
committerTrupti Kini2016-06-17 23:30:26 +0600
commit567954f0f9089a76901da46619e67bcaa8eaf0d4 (patch)
tree858915d4288eface33845038a5f9336b00d319ff /sample_notebooks
parent4baa71f0e976a1bee2eac530f2f463641abc7309 (diff)
downloadPython-Textbook-Companions-567954f0f9089a76901da46619e67bcaa8eaf0d4.tar.gz
Python-Textbook-Companions-567954f0f9089a76901da46619e67bcaa8eaf0d4.tar.bz2
Python-Textbook-Companions-567954f0f9089a76901da46619e67bcaa8eaf0d4.zip
Added(A)/Deleted(D) following books
A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap10_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap11_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap12_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap13_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap16_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap17_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap18_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap19_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap20_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap21_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap22_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap23_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap24_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap25_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap26_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap27_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap28_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap29_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap30_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap31_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap32_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap33_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap34_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap3_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap5_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap7_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap8_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/Chap9_1.ipynb A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/screenshots/Ch28Capacitance_1.png A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/screenshots/Ch28OpFreq_1.png A A_Textbook_of_Electronic_Circuits_by_R._S._Sedha/screenshots/Ch28VoltageGain_1.png A Electronics_Circuits_and_Systems_by_Y._N._Bapat/README.txt A Engineering_Mechanics_of_Solids_by_Popov_E_P/Chapter1_6.ipynb A Engineering_Mechanics_of_Solids_by_Popov_E_P/chapter10_6.ipynb A Engineering_Mechanics_of_Solids_by_Popov_E_P/chapter11_6.ipynb A Engineering_Mechanics_of_Solids_by_Popov_E_P/chapter12_6.ipynb A Engineering_Mechanics_of_Solids_by_Popov_E_P/chapter13_5.ipynb A Engineering_Mechanics_of_Solids_by_Popov_E_P/chapter2_6.ipynb A Engineering_Mechanics_of_Solids_by_Popov_E_P/chapter4_6.ipynb A Engineering_Mechanics_of_Solids_by_Popov_E_P/chapter5_6.ipynb A Engineering_Mechanics_of_Solids_by_Popov_E_P/chapter6_6.ipynb A Engineering_Mechanics_of_Solids_by_Popov_E_P/chapter7_6.ipynb A Engineering_Mechanics_of_Solids_by_Popov_E_P/chapter8_6.ipynb A Engineering_Mechanics_of_Solids_by_Popov_E_P/chapter9_6.ipynb A Engineering_Mechanics_of_Solids_by_Popov_E_P/charpter_3_7.ipynb A Engineering_Mechanics_of_Solids_by_Popov_E_P/screenshots/1_4.PNG A Engineering_Mechanics_of_Solids_by_Popov_E_P/screenshots/2_4.PNG A Engineering_Mechanics_of_Solids_by_Popov_E_P/screenshots/3_4.PNG M Fluid_Flow_For_The_Practicing_Chemical_Engineer_by_J._P._Abulencia_And_L._Theodore/Chapter-27.ipynb M Fluid_Flow_For_The_Practicing_Chemical_Engineer_by_J._P._Abulencia_And_L._Theodore/Chapter-27_1.ipynb A Higher_Engineering_Mathematics_by_B._S._Grewal/chapter10_1.ipynb A Higher_Engineering_Mathematics_by_B._S._Grewal/chapter13_1.ipynb A Higher_Engineering_Mathematics_by_B._S._Grewal/chapter1_1.ipynb A Higher_Engineering_Mathematics_by_B._S._Grewal/chapter21_1.ipynb A Higher_Engineering_Mathematics_by_B._S._Grewal/chapter22_1.ipynb A Higher_Engineering_Mathematics_by_B._S._Grewal/chapter23_1.ipynb A Higher_Engineering_Mathematics_by_B._S._Grewal/chapter24_1.ipynb A Higher_Engineering_Mathematics_by_B._S._Grewal/chapter26_1.ipynb A Higher_Engineering_Mathematics_by_B._S._Grewal/chapter27_1.ipynb A Higher_Engineering_Mathematics_by_B._S._Grewal/chapter28_1.ipynb A Higher_Engineering_Mathematics_by_B._S._Grewal/chapter2_1.ipynb A Higher_Engineering_Mathematics_by_B._S._Grewal/chapter34_1.ipynb A Higher_Engineering_Mathematics_by_B._S._Grewal/chapter35_1.ipynb A Higher_Engineering_Mathematics_by_B._S._Grewal/chapter4_1.ipynb A Higher_Engineering_Mathematics_by_B._S._Grewal/chapter5_1.ipynb A Higher_Engineering_Mathematics_by_B._S._Grewal/chapter6_1.ipynb A Higher_Engineering_Mathematics_by_B._S._Grewal/chapter9_1.ipynb A Higher_Engineering_Mathematics_by_B._S._Grewal/screenshots/screen1_1.png A Higher_Engineering_Mathematics_by_B._S._Grewal/screenshots/screen2_1.png A Higher_Engineering_Mathematics_by_B._S._Grewal/screenshots/screen3_1.png A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/Chapter10_1.ipynb A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/Chapter11_1.ipynb A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/Chapter13_1.ipynb A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/Chapter14_1.ipynb A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/Chapter15_1.ipynb A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/Chapter17_1.ipynb A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/Chapter18_1.ipynb A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/Chapter19_1.ipynb A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/Chapter1_1.ipynb A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/Chapter21_1.ipynb A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/Chapter22_1.ipynb A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/Chapter23_1.ipynb A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/Chapter25_1.ipynb A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/Chapter26_1.ipynb A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/Chapter3_1.ipynb A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/Chapter4_1.ipynb A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/Chapter5_1.ipynb A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/Chapter6_1.ipynb A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/Chapter7_1.ipynb A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/Chapter9_1.ipynb A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/screenshots/Ch14PathOfAscent_1.png A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/screenshots/Ch14RandomNumberGenerator_1.png A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/screenshots/Ch26EulerMethod_1.png A "sample_notebooks/GundlaKeerthi vani/J.B.Gupta_Chapter_6_(1).ipynb"
Diffstat (limited to 'sample_notebooks')
-rw-r--r--sample_notebooks/GundlaKeerthi vani/J.B.Gupta_Chapter_6_(1).ipynb196
1 files changed, 196 insertions, 0 deletions
diff --git a/sample_notebooks/GundlaKeerthi vani/J.B.Gupta_Chapter_6_(1).ipynb b/sample_notebooks/GundlaKeerthi vani/J.B.Gupta_Chapter_6_(1).ipynb
new file mode 100644
index 00000000..eeabf53b
--- /dev/null
+++ b/sample_notebooks/GundlaKeerthi vani/J.B.Gupta_Chapter_6_(1).ipynb
@@ -0,0 +1,196 @@
+{
+ "metadata": {
+ "name": "J.B.Gupta Chapter 6"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": "Chapter 6 Extension of Instrument Range"
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": "Example 6.1,Page No 165"
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": "import math\n \n#variable declaration\nIm = 50*10**-6; #full scale deflection current in A\nRm = 1000; #instrument resistance in \u03a9\nI = 1; #total current to be measured in A\n \n#calculations\nRs = (Rm/float((I/float(Im))-1)); #resistance of ammeter in \u03a9\n \n \n#result\nprint'resistance of ammeter shunt required Rs = %3.7f'%Rs,'\u03a9';\n \n ",
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": "resistance of ammeter shunt required Rs = 0.0500025 \u03a9\n"
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": "Example 6.2,Page No 165"
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": "import math\n \n#variable declaration\nRm = 1; #instrument resistance in \u03a9\nRse = 4999; #series resistance in \u03a9\nV = 250; #full-scale deflection voltage in V\nRs = 0.002004; #Shunt resistance in \u03a9(Rs =1/float(499))\nI1 = 50; #full-scale defelction current in A\n \n#calculations\nIm = V/float(Rm+Rse); #full-scale deflection current in A\nx = 1/float(Rse);\nI = Im*(1+(Rm/float(x))); #current in A\nN = I1/float(Im); \nRsh = Rm/float(N-1); #shunt resistance in \u03a9\n \n#result\nprint'full-scale defelction current in Im = %3.2f'%Im,'A';\nprint'current range of instrument when used as an ammeter with coil connected across shunt is I = %3.2f'%I,'A';\nprint'Shunt resistance for the instrument to give a full-scale deflection of 50A is Rsh = %3.2e'%Rsh,'\u03a9';\n \n ",
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": "full-scale defelction current in Im = 0.05 A\ncurrent range of instrument when used as an ammeter with coil connected across shunt is I = 250.00 A\nShunt resistance for the instrument to give a full-scale deflection of 50A is Rsh = 1.00e-03 \u03a9\n"
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": "Example 6.3,Page No 167"
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": "import math\n \n#variable declaration\nRm = 10; #instrument resistance in \u03a9\nIm = 0.05; #instrument current in A\nV = 750; #voltage to be measured in V\nI = 100; #current to be measured in A\n \n#calculations\nR = (V/float(Im))-Rm; #External resistance in \u03a9\nN = I/float(Im); #power of shunt\nRs = Rm/float(N-1); #resistance in \u03a9\n \n \n#result\nprint'external resistance to be connected in sereis to enable the instrument to measure voltage upto 750V is %3.1f'%R,'\u03a9';\nprint'shunt resistance required %3.4f'%Rs,'\u03a9';",
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": "external resistance to be connected in sereis to enable the instrument to measure voltage upto 750V is 14990.0 \u03a9\nshunt resistance required 0.0050 \u03a9\n"
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": "Example 6.4,Page No 167"
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": "import math\n \n#variable declaration\nRm = 5; #instrument resistance in \u03a9\nIm = 15*10**-3; #full scale defelection current in A\nI =1; #current to be measured in A\nV = 10; #voltage to be measured in V\n \n#calculations\nN = I/float(Im); #power of shunt\nRs = Rm/float(N-1); #resistance in \u03a9\nR = (V/float(Im))-Rm; #series resistance in \u03a9\n \n \n#result\nprint'resistance to be connected in parallel to enable the instrument to measure current upto 1A is %3.4f'%Rs,'\u03a9';\nprint'shunt resistance required for full-scale defelction with 10v is %3.4f'%R,'\u03a9';\n ",
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": "resistance to be connected in parallel to enable the instrument to measure current upto 1A is 0.0761 \u03a9\nshunt resistance required for full-scale defelction with 10v is 661.6667 \u03a9\n"
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": "Example 6.5,Page No 167"
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": "import math\n \n#variable declaration\nRm = 2; #instrument coil resistance in \u03a9\nV = 250; #full-scale reading in V\nRs = 5000; #series resistance in \u03a9\nRsh = 2*10**-3; #shunt resistance in \u03a9\n \n \n#calculations\nIm = V/float(Rm+Rs); #current flowing through the instrument for full-scale deflection in A\nIs = (Im*Rm)/float(Rsh); #current through shunt resistance in A \nI = Im+Is; #current range of instrument in A\n \n#result\nprint'current flowing through the instrument for full-scale deflection is %3.4f'%(Im*10**3),'mA';\nprint'current through shunt resistance is %3.2f'%Is,'A';\nprint'current range of instrumentis %3.1f'%I,'A'\n ",
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": "current flowing through the instrument for full-scale deflection is 49.9800 mA\ncurrent through shunt resistance is 49.98 A\ncurrent range of instrumentis 50.0 A\n"
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": "Example 6.6,Page No 168"
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": "import math\n \n#variable declaration\nRsh = 0.02; #shunt resistance in \u03a9\nV = 0.5; #potential difference across the shunt in V\nRm = 1000; #resistance in \u03a9\nI1 = 10; #current in A\nI2 = 75; #current in A\nI = 100;\t\t\t #current in A\nx = 40;\t\t\t #deflection %\n \n#calculations\nIs = V/float(Rsh); #current through shunt in A\nIm = V/float(Rm); #current through ammeter for full-scale defelction in A\nV1 = I1*Rsh; #voltage across shunt for 10A in V\nR1 = V1/float(Im);\t\t\t #resistance for the ammeter for a current of 10 A for full-scale defelction in \u03a9\nV2 = I2*Rsh; #voltage across shunt for 75A in V\nR2 = V2/float(Im);\t\t\t #resistance for the ammeter for a current of 75 A for full-scale defelction in \u03a9\nI3 = I*(100/float(x));\t\t\t #full-scale defelction current when 100 A gives 40% defelction\nV3 = I3*Rsh; #voltage across shunt for 250 A in V\nR3 = V3/float(Im);\t\t\t #resistance for the ammeter for a current of 250 A for full-scale defelction in \u03a9\n\n\n#result\nprint'current through ammeter for full-scale defelction is %3.1f'% (Im*10**3),' A'\nprint'Resistance for the ammeter for a current of 10 A for full-scale defelction is %3.2f'%R1,' \u03a9';\nprint'Resistance for the ammeter for a current of 75 A for full-scale defelction is %3.2f'%R2,' \u03a9';\nprint'Resistance for the ammeter for a current of 250 A for full-scale defelction is %3.2f'%R3,' \u03a9';\n",
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": "current through ammeter for full-scale defelction is 0.5 A\nResistance for the ammeter for a current of 10 A for full-scale defelction is 400.00 \u03a9\nResistance for the ammeter for a current of 75 A for full-scale defelction is 3000.00 \u03a9\nResistance for the ammeter for a current of 250 A for full-scale defelction is 10000.00 \u03a9\n"
+ }
+ ],
+ "prompt_number": 39
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": "Example 6.7,Page No 168"
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": "import math\n\n#variable declaration\nB = 0.5;\t\t\t #flux density of the magnetic field in Wb/m**2\nN = 100;\t\t\t #number of turns in coil\nl = 0.04;\t\t #length in m\nr =0.03;\t\t\t #width in m\nTc = 120*10**-6;\t #controlling torque in N-m\nv = 1; \t\t\t #volts per division in V\nn = 100;\t\t\t #number of division on full-scale\nRm = 0;\n\n#calculations\nI = Tc/float(B*N*l*r);\t\t #current for full-scale deflection in A\nV = n*v;\t\t\t #full-scale reading of instrument in V\nR = (V/float(I))-Rm;\t\t\t #External resistance required to be put in series with the coil in \u03a9\n\n#result\nprint'current for full-scale deflection is %3.4f'%I,'A';\nprint'External resistance required to be put in series with the coil is %3.3f'%R,' \u03a9';\n\n",
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": "current for full-scale deflection is 0.0020 A\nExternal resistance required to be put in series with the coil is 50000.000 \u03a9\n"
+ }
+ ],
+ "prompt_number": 48
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": "Example 6.8,Page No 169"
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": "import math\n\n\n#variable decalaration\nRm = 5;\t\t #coil resistance in \u03a9\nRm1 = 0.00075;\t\t #coil resistance in \u03a9\nIm = 0.015;\t\t #full-scale defelction current in A\nI = 100; \t\t #current to be measured in A\nT1 = 0.004;\t\t #temperature coeficient of copper in \u03a9/\u03a9/\u00b0C\nT2 = 0.00015;\t\t #temperature coeficient of manganin in \u03a9/\u03a9/\u00b0C\nT =10; \t\t #rise in temperature in \u00b0C\n#calculations\nN = I/float(Im);\t\t #multiplying power of shunt\nRs = Rm/float(N-1);\t #resistance of manganin shunt in \u03a9\nRc = Rm*(1+(T1*T));\t #coil resitance with 10\u00b0C in temperature in \u03a9\nRsh = Rm1*(1+(T2*T));\t #shunt resitance with 10\u00b0C in temperature in \u03a9\nIn = (Rsh/float(Rc+Rsh))*100;\t#new instrument current in A\nr = (In/float(Im))*100;\t\t#new instrument reading in A\ne = ((r-I)/float(I))*100;\t\t#percentage error in %\n\n\n#result\nprint'percentage error %3.5f'%e,'%';",
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": "percentage error -3.71583 %\n"
+ }
+ ],
+ "prompt_number": 83
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": "",
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file