描述
Python3 asin() 返回x的反云计正弦弧度值。
语法
以下是 asin() 方法的语法:
i算开mport math
math.asin(x)
注意:a发:sin()是不能直接访问的,需要导入 math 模Py块,然后通过 math 静态对象调用该方法。
参th数
x -- -1到1之间的数值。如果x是大于1,会产生on一个错误。
返回值
返回x的反正弦弧度值。
实例
以下展3三示了使用 asin() 方法的实例:
以上实例运行后输出角函结果为:
邮箱:[email protected]
电话:020-123456789
传真:020-123456789
Copyright © 2026 Powered by 善善恶恶网 http://1anchorsaway.com/