JavaScript 中的 Math.tanh() 函数
htmljavascriptweb developmentfront end technology更新于 2024/10/13 6:36:17
Math 对象的 tanh() 函数接受一个角度(以弧度为单位)并返回其双曲正切值。
语法
其语法如下
Math.tanh(90)
示例
<html>
<head>
<title>JavaScript 示例</title>
</head>
<body>
<script type="text/javascript">
var result = Math.tanh(90);
document.write("给定角度的双曲正切值:"+result);
</script>
</body>
</html>
输出
给定角度的双曲正切值:1