JavaScript中的Math.asin()函数
asin()Math对象的函数接受一个数字,并以弧度返回其反正弦值。要将结果值转换为度数,请将其乘以180,然后将结果除以3.14159(pi值)。
语法
其语法如下
Math.asin(0.5)
示例
<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
<script type="text/javascript">
var result = Math.asin(0.5);
document.write("arcsine value: "+result);
document.write("<br>");
document.write("arcsine value in degrees: "+result*180/Math.PI);
</script>
</body>
</html>输出结果
arcsine value: 0.5235987755982989 arcsine value in degrees: 30.000000000000004
热门推荐
10 新年门口花束祝福语简短
11 盘锦结婚祝福语大全简短
12 父母生日祝福语 简短独特
13 家庭恩爱祝福语简短英文
14 高考俄语祝福语大全简短
15 虎年祝福语 诗句唯美简短
16 生日婚礼祝福语简短精辟
17 虎年喝酒拜年祝福语简短
18 教师闺蜜祝福语简短