d=int(raw_input('Enter the angle in degree:'))

x= math.radians(d)

print 'Corresponding Radians is:',x #Converts angle from degrees to radians.

f1=math.acos(x) # Return the arc cosine of x

print 'acos',f1

f2=math.asin(x) #Return the arc sine of x

print 'asin',f2

f3=math.atan(x) #Return the arc tangent of x

print 'atan',f3

f4=math.cos(x) #Return the cosine of x

print 'cos',f4

f5=math.sin(x) #Return the sine of x

print 'sin',f5

f6= math.tan(x) # Return the tangent of x

print 'tan',f6

u=int(raw_input('Enter the value of x:'))

v=int(raw_input('Enter the value of y:'))

e=math.hypot(u, v) #Return the Euclidean norm, sqrt(u*u + v*v)

print 'The Euclidean norm:',e

## No comments:

Post a Comment