Answer:
If you open your python-3 console and execute the following .py code you will have the following output. (Inputing 20 e.g)
Write the angles in degrees: 20
radian angles is: 0.3490658503988659
cosene( 0.3490658503988659 ) = 0.9396926207859084
sine( 0.3490658503988659 ) = 0.3420201433256687
sin^2( 0.3490658503988659 ) + cos^2( 0.3490658503988659 ) = 1.0
Explanation:
Code
import math
for i in range(1,4):
angle = int(input('Write the angles in degrees: '))
#mat library better works with radians
angle_radians = (angle*math.pi)/180
#print output
print('radian angles is: ',angle_radians)
print('cosene(',angle_radians,') = ',math.cos(angle_radians))
print('sine(',angle_radians,') = ',math.sin(angle_radians))
res = (math.sin(angle_radians))**2 + (math.cos(angle_radians))**2
print('sin^2(',angle_radians,') + cos^2(',angle_radians,') = ',res)