This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

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:

Math.sinh(x)=ex-e-x2\mathtt{\operatorname{Math.sinh(x)}} = \frac{e^x - e^{-x}}{2}

์‹œ๋„ํ•ด ๋ณด๊ธฐ

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

๋ธŒ๋ผ์šฐ์ € ํ˜ธํ™˜์„ฑ

๊ฐ™์ด ๋ณด๊ธฐ