diff options
author | root | 2014-07-14 15:53:15 +0530 |
---|---|---|
committer | root | 2014-07-14 15:53:15 +0530 |
commit | 6afb92451dd82bc61f5042e0b8df5eb51ccde9bb (patch) | |
tree | 87e01839219383b5fdd77c87da8196189b9da41c /Textbook_of_Engineering_Chemistry/dChapter_6.ipynb | |
parent | cea77a632f1b20598ba2a1be1b77e6587920c2a0 (diff) | |
download | Python-Textbook-Companions-6afb92451dd82bc61f5042e0b8df5eb51ccde9bb.tar.gz Python-Textbook-Companions-6afb92451dd82bc61f5042e0b8df5eb51ccde9bb.tar.bz2 Python-Textbook-Companions-6afb92451dd82bc61f5042e0b8df5eb51ccde9bb.zip |
adding book & removing unwanted files
Diffstat (limited to 'Textbook_of_Engineering_Chemistry/dChapter_6.ipynb')
-rwxr-xr-x | Textbook_of_Engineering_Chemistry/dChapter_6.ipynb | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/Textbook_of_Engineering_Chemistry/dChapter_6.ipynb b/Textbook_of_Engineering_Chemistry/dChapter_6.ipynb new file mode 100755 index 00000000..7428ce43 --- /dev/null +++ b/Textbook_of_Engineering_Chemistry/dChapter_6.ipynb @@ -0,0 +1,92 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 6:Lubricants"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example no:1,Page no:141"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Variable declaration\n",
+ "d=760.0 #viscocity of Pennysylvanian oil in s at 37C#\n",
+ "a=528.0 #viscocity of lubricating oil in s at 37C#\n",
+ "c=480.0 #viscocity of Gulf oil in s at 37C#\n",
+ "\n",
+ "#Calculation\n",
+ "V=((d-a)/(d-c))*(100) #formula of viscocity index#\n",
+ "\n",
+ "#Result\n",
+ "print\"Viscocity index of the lubricating oil is \",round(V ,1)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Viscocity index of the lubricating oil is 82.9\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example no:2,Page no:144"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Variable declaration\n",
+ "s=0.86 #specific gravity of lubricating oil#\n",
+ "\n",
+ "#Calculation\n",
+ "A=(141.5/s)-131.5 #formula of API gravity#\n",
+ "\n",
+ "#Result\n",
+ "print\"The gravity of lubricating oil is \",round(A)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The gravity of lubricating oil is 33.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file |