在python中引入数学函数的方法
python中使用数学函数时需要引入math数学模块
1.math.radians()函数
math.sqrt()函数可以将角度转弧度
用法:
>>>import math
>>>math.radians(57.29578)
>>>0.9948376736367679
2. math.pi函数
math.pi函数的功能是计算圆周率
用法:
>>>import math
>>>math.pi
>>>3.141592653589793
了解更多python如何引入数学函数相关的解答,就上多想派(www.duoxiangpai.com)。
本文章由用户懂得网分享,版权归原作者,如侵犯,请联系(点这里联系),经核实,我们将第一时间删除。如若转载,请注明出处:https://www.duoxiangpai.com/65360.html