Python中的sin和cos函数

 

 

 

 

 

 

1 1 第一次使用math.sin()和math.cos(),可是发现结果不对,比如Math.sin(90)=0.893996663600,奇怪?
2 2 
3 3 一查,原来sin(x) \n\n Return the sine of x (measured in radians) 以弧度作为参数
4 4 
5 5 math.sin(math.radians(90))这样就对了
6  

 

posted @ 2017-09-08 14:07  byteH  阅读(10980)  评论(0编辑  收藏  举报