diff options
author | Trupti Kini | 2016-10-03 23:30:50 +0600 |
---|---|---|
committer | Trupti Kini | 2016-10-03 23:30:50 +0600 |
commit | a83bd28f0f2ede4c5ff0fabceef738b1b7cd4147 (patch) | |
tree | bb16b62c062d990790d0f0329bf1a39ee414f721 /f_by_df/abhishek.ipynb | |
parent | 35ad114063db70a8ecae0bf3db27bc3d94f91edf (diff) | |
download | Python-Textbook-Companions-a83bd28f0f2ede4c5ff0fabceef738b1b7cd4147.tar.gz Python-Textbook-Companions-a83bd28f0f2ede4c5ff0fabceef738b1b7cd4147.tar.bz2 Python-Textbook-Companions-a83bd28f0f2ede4c5ff0fabceef738b1b7cd4147.zip |
Added(A)/Deleted(D) following books
A f_by_df/abhishek.ipynb
A f_by_df/abhishek_1.ipynb
A f_by_df/screenshots/anshul.png
A f_by_df/screenshots/blank1.png
A f_by_df/screenshots/blog.png
A f_by_df/screenshots/sai.png
A f_by_df/screenshots/snippet1.png
A f_by_df/screenshots/srinivas.png
A hfgd_by_Gayakwad/README.txt
A hfgd_by_Gayakwad/abhishek.ipynb
A hfgd_by_Gayakwad/screenshots/anshul.png
A hfgd_by_Gayakwad/screenshots/anshul_1.png
A hfgd_by_Gayakwad/screenshots/anshul_2.png
A rewrew_by_J._B._Gupta/README.txt
A rewrew_by_J._B._Gupta/aviral.ipynb
A rewrew_by_J._B._Gupta/screenshots/array_factor.png
A rewrew_by_J._B._Gupta/screenshots/book.png
A rewrew_by_J._B._Gupta/screenshots/error.png
A sample_notebooks/JeevanLal/aditya.ipynb
Diffstat (limited to 'f_by_df/abhishek.ipynb')
-rw-r--r-- | f_by_df/abhishek.ipynb | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/f_by_df/abhishek.ipynb b/f_by_df/abhishek.ipynb new file mode 100644 index 00000000..3f7271ea --- /dev/null +++ b/f_by_df/abhishek.ipynb @@ -0,0 +1,112 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:cda4775b9259e49c042e3120b0a25eb239766f3373696622080f812fe1f53fa9"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 01:Introduction"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1.1:pg-20"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Given Data\n",
+ "d_r = 13640 # Density of mercury in kg/m^3\n",
+ "g = 9.79 # Acceleration due to gravity in m/s^2\n",
+ "z = 562e-03 # Difference in height in m\n",
+ "z0 = 761e-03 # Reading of barometer in m\n",
+ "P = (d_r*g*(z+z0))*(0.987/1e05) # Gas Pressure in atm\n",
+ "\n",
+ "print \"\\n Example 1.1\\n\"\n",
+ "print \"\\n Gas Pressure is \",round(P,2),\" atm\"\n",
+ "#The answers vary due to round off error\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "\n",
+ " Example 1.1\n",
+ "\n",
+ "\n",
+ " Gas Pressure is 1.74 atm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex1.2:pg-21"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given Data\n",
+ "d_r = 13.6e03 # Density of mercury in kg/m^3\n",
+ "g = 9.81 # Acceleration due to gravity in m/s^2\n",
+ "z = 710e-03 # Steam flow pressure in m\n",
+ "z0 = 772e-03 # Reading of barometer in m\n",
+ "P = 1.4e06 # Gauge pressure of applied steam in Pa\n",
+ "P0 = d_r*g*z0 # Atmospheric pressure in Pa\n",
+ "Pi = P+P0 # Inlet steam pressure in Pa\n",
+ "Pc = d_r*g*(z0-z) # Condenser pressure in Pa\n",
+ "\n",
+ "print \"\\n Example 1.2\\n\"\n",
+ "print \"\\n Inlet steam pressure is\",round(Pi/1e6,2),\" MPa\"\n",
+ "print \"\\n Condenser pressure is\",round(Pc/1e3,2),\" kPa\"\n",
+ "#The answers vary due to round off error\n",
+ "\n",
+ "\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "\n",
+ " Example 1.2\n",
+ "\n",
+ "\n",
+ " Inlet steam pressure is 1.5 MPa\n",
+ "\n",
+ " Condenser pressure is 8.27 kPa\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file |