JavaScript中的Math.atanh()函数
atanh()Math对象的函数接受一个数字,并以弧度返回其双曲弧反正切值。要将结果值转换为度数,请将其乘以180,然后将结果除以3.14159(pi值)。
语法
其语法如下
Math.atanh(0.5)
示例
<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
<script type="text/javascript">
var result = Math.atanh(0.5);
document.write("arctangent value: "+result);
document.write("<br>");
document.write("hyperbolic arctangent value in degrees: "+result*180/Math.PI);
</script>
</body>
</html>输出结果
arctangent value: 0.5493061443340548 arctangent value in degrees: 31.47292373094538
热门推荐
10 祝女儿简短祝福语大全
11 大学新年祝福语简短创意
12 元旦适合的祝福语简短
13 朋友出远门祝福语简短
14 初六简短的祝福语
15 祝男孩生日祝福语简短
16 同事调离的祝福语简短
17 拜年红包的祝福语简短
18 妈妈生日祝福语简短励志