1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
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": {}
}
]
}
|