Chapter 12:Trigonometry and Vectors

Problem no:12.1, Page no:134

In [1]:
from __future__ import division

#Expressing the degree in radians

#Initialization

d=8                   #Given degree

#Calculation

theta=d*0.01745       #Converting degree to radians

print "theta=",round(theta,2),"rad"
theta= 0.14 rad

Problem no:12.12, Page no:137

In [13]:
#Initialization

import math

#Cal of sin(120 degrees)

theta=120 

print "sin 120=",round(math.sin(math.radians(theta)),3)
sin 120= 0.866

Problem no:12.13, Page no:137

In [14]:
#Initialization

import math

#Cal of cos(250 degrees)

theta=250 

print "cos 250=",round(math.cos(math.radians(theta)),3)
cos 250= -0.342

Problem no:12.14, Page no:137

In [15]:
#Initialization

import math

#Cal of tan(342 degrees)

theta=342 

print "tan 342=",round(math.tan(math.radians(theta)),3)
tan 342= -0.325

Problem no:12.15, Page no:138

In [2]:
from __future__ import division

import math

#Cal of length of hypotenuse

#initialization

a=6                   #Length of one side in in

b=12                  #Length of other side in in

#Calculation

c=math.sqrt((a**2)+(b**2))

print "c=",round(c,1),"in"
c= 13.4 in

Problem no:12.16, Page no:138

In [3]:
from __future__ import division

import math

#Cal of length of other side

#initialization

c=8                   #Length of hypotenuse in m

b=6                   #Length of other side in m

#Calculation

a=math.sqrt((c**2)-(b**2))

print " a=",round(a,1),"m"
 a= 5.3 m