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