Python asin() 函数
Python 教程
· 2019-02-02 07:11:40
描述
asin() 返回x的反正弦弧度值。
语法
以下是 asin() 方法的语法:
import math math.asin(x)
注意:asin()是不能直接访问的,需要导入 math 模块,然后通过 math 静态对象调用该方法。
参数
- x : -1 到 1 之间的数值。如果 x 是大于 1,会产生一个错误。
返回值
返回x的反正弦弧度值。
实例
以下展示了使用 asin() 方法的实例:
#!/usr/bin/python import math print "asin(0.64) : ", math.asin(0.64) print "asin(0) : ", math.asin(0) print "asin(-1) : ", math.asin(-1) print "asin(1) : ", math.asin(1)
以上实例运行后输出结果为:
asin(0.64) : 0.694498265627 asin(0) : 0.0 asin(-1) : -1.57079632679 asin(1) : 1.57079632679
点击查看所有 Python 教程 文章: https://codercto.com/courses/l/8.html
Spring Boot实战
[美]克雷格·沃斯 / 丁雪丰 / 人民邮电出版社 / 2016-9 / 59.00元
本书以Spring应用程序开发为中心,全面讲解如何运用Spring Boot提高效率,使应用程序的开发和管理更加轻松有趣。作者行文亲切流畅,以大量示例讲解了Spring Boot在各类情境中的应用,内容涵盖起步依赖、Spring Boot CLI、Groovy、Grails、Actuator。对于Spring Boot开发应用中较为繁琐的内容,附录奉上整理完毕的表格,一目了然,方便读者查阅。一起来看看 《Spring Boot实战》 这本书的介绍吧!