Math.sinh()

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

概述

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

规范

Specification
ECMAScript® 2025 Language Specification
# sec-math.sinh

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
Node.js
sinh

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

参见