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() 함수(쌍곡선 함수)는 사인값을 반환합니다 이 값은 아래와같은 식을통해서 표현할 수 있습니다.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® 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

같이 보기