此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

Math.sinh()

基线 广泛可用

自 2015年7月 起,此特性已在主流浏览器中得到支持,可在大多数设备和浏览器版本中正常使用。

Math.sinh() 函数返回一个数字 (单位为角度) 的双曲正弦值。

语法

Math.sinh(x)

参数

x

任意数字 (单位为度).

描述

双曲正弦的图像如下:

示例

js
Math.sinh(-Infinity); // -Infinity
Math.sinh(-0); // -0
Math.sinh(0); // 0
Math.sinh(1); // 1.1752011936438014
Math.sinh(Infinity); // Infinity

规范

规范
ECMAScript® 2027 Language Specification
# sec-math.sinh

浏览器兼容性

参见