diff options
author | Trupti Kini | 2016-07-14 23:30:27 +0600 |
---|---|---|
committer | Trupti Kini | 2016-07-14 23:30:27 +0600 |
commit | 90764d9db0d42c0eca890ef10945c31d1bf8a108 (patch) | |
tree | b43a5034c1bab2fa5cb53e2efee847207f6b3ca5 /sample_notebooks/MeenaChandrupatla | |
parent | 6c05a634e2c081f1dd4b733d340c98ae3426d243 (diff) | |
download | Python-Textbook-Companions-90764d9db0d42c0eca890ef10945c31d1bf8a108.tar.gz Python-Textbook-Companions-90764d9db0d42c0eca890ef10945c31d1bf8a108.tar.bz2 Python-Textbook-Companions-90764d9db0d42c0eca890ef10945c31d1bf8a108.zip |
Added(A)/Deleted(D) following books
A Electronic_Communication_by_D._Roddy/README.txt
A Electronics_Devices_And_Circuits_by_S._Salivahanan,_N._S._Kumar_And_A._Vallavaraj/README.txt
A Energy_Management_by_W._R._Murphy_and_G._A._Mckay/README.txt
A Higher_Engineering_Mathematics_by_B._S._Grewal/README.txt
D Introductory_Methods_Of_Numerical_Analysis__by_S._S._Sastry/.chapter2.ipynb.swp
A Numerical_Methods_For_Engineers_by_S._C._Chapra_And_R._P._Canale/README.txt
A SURVYNG_AND_LEVELLING__by_N.N.BASAK/chap10_Curves_1.ipynb
A SURVYNG_AND_LEVELLING__by_N.N.BASAK/chap1_Introduction_1.ipynb
A SURVYNG_AND_LEVELLING__by_N.N.BASAK/chap2_Chain-Surveying_1.ipynb
A SURVYNG_AND_LEVELLING__by_N.N.BASAK/chap3_Compass-Traversing_1.ipynb
A SURVYNG_AND_LEVELLING__by_N.N.BASAK/chap5_Levelling_1.ipynb
A SURVYNG_AND_LEVELLING__by_N.N.BASAK/chap7_Computation-of-Area_1.ipynb
A SURVYNG_AND_LEVELLING__by_N.N.BASAK/chap8_Computation-of-Volume_1.ipynb
A SURVYNG_AND_LEVELLING__by_N.N.BASAK/chap9_Theodolite-Traversing_1.ipynb
A SURVYNG_AND_LEVELLING__by_N.N.BASAK/chapter11_Tacheometric-Traversing_1.ipynb
A SURVYNG_AND_LEVELLING__by_N.N.BASAK/screenshots/1.png
A SURVYNG_AND_LEVELLING__by_N.N.BASAK/screenshots/2.png
A SURVYNG_AND_LEVELLING__by_N.N.BASAK/screenshots/3.png
A sample_notebooks/MeenaChandrupatla/Chapter2_Gases.ipynb
A sample_notebooks/ShantanuBhosale/chapter40_1.ipynb
Diffstat (limited to 'sample_notebooks/MeenaChandrupatla')
-rw-r--r-- | sample_notebooks/MeenaChandrupatla/Chapter2_Gases.ipynb | 187 |
1 files changed, 187 insertions, 0 deletions
diff --git a/sample_notebooks/MeenaChandrupatla/Chapter2_Gases.ipynb b/sample_notebooks/MeenaChandrupatla/Chapter2_Gases.ipynb new file mode 100644 index 00000000..88d5cb73 --- /dev/null +++ b/sample_notebooks/MeenaChandrupatla/Chapter2_Gases.ipynb @@ -0,0 +1,187 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 2 Gases" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.1,Page no.9" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "volume occupied by 20 grams of carbon dioxide= 11.61 liter\n" + ] + } + ], + "source": [ + "import math\n", + "#given\n", + "G= 20 #in grams\n", + "R= 0.08205 #l−atm/mole K\n", + "T= 30 #in Celsius\n", + "P= 740 #in mm\n", + "M= 44.01 \n", + "#CALCULATIONS\n", + "V= G*R*(273.15+T)*760/(P*M)\n", + "#RESULTS\n", + "V=round(V,2)\n", + "print 'volume occupied by 20 grams of carbon dioxide=',V,'liter'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.2, Page no.9" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "molecular weight of hydrocarbon= 102.32 g.mole\n" + ] + } + ], + "source": [ + "import math\n", + "#given\n", + "G= 0.110 #in grams\n", + "R= 0.08205 #l−atm /mole K\n", + "T= 26.1 #Celsius\n", + "P= 743 #in mm\n", + "V= 0.0270\n", + "#CALCULATIONS\n", + "M= G*R*(273.15+T)*760/(P*V)\n", + "#RESULTS\n", + "M=round(M,2)\n", + "print 'molecular weight of hydrocarbon=',M,'g.mole'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.4,Pg.no.10" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "pressure calculated using ideal gas law= 48.93 atm\n", + "pressure calculated using vander wals equation= 39.12 atm\n" + ] + } + ], + "source": [ + "import math\n", + "#given\n", + "R= 0.08205 #l−atm degˆ−1 moleˆ−1\n", + "T= 25 #in K\n", + "n= 1 #mole\n", + "V= 0.5 #liter \n", + "b= 0.04267 #lit moleˆ−1\n", + "a= 3.592 #lit ˆ2 atm molˆ−2\n", + "#CALCULATIONS\n", + "P= R*(273.15+T)/V\n", + "P1= (R*(273.15+T)/(V-b))-(a/V**2)\n", + "#RESULTS\n", + "P=round(P,2)\n", + "P1=round(P1,2)\n", + "print 'pressure calculated using ideal gas law=',P,'atm'\n", + "print 'pressure calculated using vander wals equation=',P1,'atm'" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 2.5,Pg.no.10" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "volume occupied by mole of oxygen= 0.272 litre moleˆ−1\n" + ] + } + ], + "source": [ + "import math\n", + "#given\n", + "T= -88 #in Celsius\n", + "Tc= 154.4 #in Kelvin\n", + "Pc= 49.7 #pressure in atm\n", + "P= 44.7 #pressure in atm\n", + "R= 0.08205 #atm mˆ3 moleˆ−1 Kˆ−1\n", + "r= 0.8\n", + "#CALCULATIONS\n", + "V= r*R*(273.15+T)/P\n", + "#RESULTS\n", + "V=round(V,3)\n", + "print 'volume occupied by mole of oxygen=',V,'litre moleˆ−1'" + ] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python [Root]", + "language": "python", + "name": "Python [Root]" + }, + "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.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} |