chapter 17:Linear Motion

Example 17.1, Page no.363

In [1]:
#variable declaration
u=0    #initial velocity
a=0.4  #acceleration in m/s**2
t=20   #Time taken in s

#calculation
s=(u*t)+((a*t**2)/2)

#Result
print"The distance covered by the car, s=",int(s),"m"
The distance covered by the car, s= 80 m

Example 17.2, Page no.363

In [2]:
#variable declaration
u=7.5  #on coverting km.p.h to m/s
a=0.5  #acceleration in m/s**2
t=12   #Time taken in s

#calculation
s=(u*t)+((a*t**2)/2)

#Result
print"The distance travelled by the train, s=",int(s),"m"
The distance travelled by the train, s= 126 m

Example 17.3, Page no.363

In [5]:
import math
#variable declaration
u=0    #initial velocity
a=1.2  #acceleration in m/s**2
s=60   #distance travelled in m

#calculation
v=math.sqrt(u**2+(2*a*s))

#Result
print"v=",round((v*3600)/1000,1),"km.p.h."
v= 43.2 km.p.h.

Example 17.9, Page no.368

In [6]:
#variable declaration
u=-4.9   #initial velocity in m/s
t=2      #time taken in s
g=9.8    #gravity in m/s**2

#calculation
h=(u*t)+((g*t**2)/2)

#Result
print"Height of the bridge, h=",round(h,1),"m"
Height of the bridge, h= 9.8 m

Example 17.10, Page no.368

In [7]:
#variable declaration
u=-12    #velocity of balloon when packet is dropped in m/s
t=2      #time in s
g=9.8    #gravity in m/s**2

#calculation
v=u+(g*t)

#Result
print"Velocity of packet after 2 sec, v=",round(v,1),"m/s"
Velocity of packet after 2 sec, v= 7.6 m/s

Example 17.11, Page no.368

In [8]:
#variable declaration
u=0     #initial velocity
t=2.8   #Time taken in s
g=9.8   #gravity in m/s**2

#calculation
s=(u*t)+((g*t**2)/2)

#Result
print"The height of the buiding, s=",round(s,1),"m"
The height of the buiding, s= 38.4 m

Example 17.12, Page no.368

In [9]:
#variable declaration
u=0    #initial velocity
s=65   #height of the building in s
g=9.8  #gravity in m/s**2

#calculation
v=math.sqrt(u**2+(2*g*s))

#Result
print"v=",round(v,1),"m/s"
v= 35.7 m/s

Example 17.13, Page no.368

In [10]:
#variable declaration
u=-28   #initial velocity in m/s
t=2     #time taken in s
g=9.8   #gravity in m/s**2

#calculation
s=(u*t)+((g*t**2)/2)

#Result
print"Distance covered by the body in 2 seconds, s=",round(s,1),"m"
Distance covered by the body in 2 seconds, s= -36.4 m

Example 17.14, Page no.368

In [11]:
#variable declaration
u=-80    #initial velocity in m/s
v=0      #Final velocity
g=9.8    #gravity in m/s**2

#calculation
s=(v**2-u**2)/(2*g)

#Result
print"Height to which the bullet will rise above the point of projection, s=",round(s,1),"m"
Height to which the bullet will rise above the point of projection, s= -326.5 m

Example 17.15, Page no.369

In [12]:
#variable declaration
u=0     #initial velocity
t_1=3   #Time taken by the first body in s
t_2=2   #Time taken by the second body in s

#calculation
h_1=(u*t_1)+((g*t_1**2)/2)
h_2=(u*t_2)+((g*t_2**2)/2)

#Result
print"Separation between the bodies=",round(h_1-h_2,1),"m"
Separation between the bodies= 24.5 m
In [ ]: