Chapter 6:Lubricants

Example no:1,Page no:141

In [1]:
#Variable declaration
d=760.0 #viscocity of Pennysylvanian oil in s at 37C#
a=528.0 #viscocity of lubricating oil in s at 37C#
c=480.0 #viscocity of Gulf oil in s at 37C#

#Calculation
V=((d-a)/(d-c))*(100) #formula of viscocity index#

#Result
print"Viscocity index of the lubricating oil is ",round(V ,1)
Viscocity index of the lubricating oil is  82.9

Example no:2,Page no:144

In [2]:
#Variable declaration
s=0.86 #specific gravity of lubricating oil#

#Calculation
A=(141.5/s)-131.5 #formula of API gravity#

#Result
print"The gravity of lubricating oil is ",round(A)
The gravity of lubricating oil is  33.0