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 โจ2015๋ 7์โฉ.
Math.sinh()
ํจ์(์๊ณก์ ํจ์)๋ ์ฌ์ธ๊ฐ์ ๋ฐํํฉ๋๋ค ์ด ๊ฐ์ ์๋์๊ฐ์ ์์ํตํด์ ํํํ ์ ์์ต๋๋ค.constant e:
์๋ํด ๋ณด๊ธฐ
console.log(Math.sinh(0));
// Expected output: 0
console.log(Math.sinh(1));
// Expected output: 1.1752011936438014
console.log(Math.sinh(-1));
// Expected output: -1.1752011936438014
console.log(Math.sinh(2));
// Expected output: 3.626860407847019
๊ตฌ๋ฌธ
js
Math.sinh(x);
Parameters
x
-
์ซ์.
๋ฐํ ๊ฐ
์ฌ์ธ๊ฐ.
์ค๋ช
sinh()
๋ Math
์ ์ ์ ํจ์์ด๊ธฐ ๋๋ฌธ์, JavaScript ์ด๋๋ Math.sinh()
๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค, ๋ฐ๋ผ์ Math
์ค๋ธ์ ํธ๋ฅผ ์์ฑํด์๋ ์๋ฉ๋๋ค. (Math
๋ constructor(์์ฑ์) ๊ฐ ์๋๋๋ค.).
์์
Math.sinh()
์ฌ์ฉํ๊ธฐ
js
Math.sinh(0); // 0
Math.sinh(1); // 1.1752011936438014
ํด๋ฆฌํ
This can be emulated with the help of the Math.exp()
function:
js
Math.sinh =
Math.sinh ||
function (x) {
return (Math.exp(x) - Math.exp(-x)) / 2;
};
or using only one call to the Math.exp()
function:
js
Math.sinh =
Math.sinh ||
function (x) {
var y = Math.exp(x);
return (y - 1 / y) / 2;
};
๋ช ์ธ์
Specification |
---|
ECMAScriptยฎ 2026 Language Specification # sec-math.sinh |
๋ธ๋ผ์ฐ์ ํธํ์ฑ
Loadingโฆ