nh() - JavaScript - MDN - Mozilla

  • Skip to main content
  • Skip to search
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⁩.

  • Learn more
  • See full compatibility
  • Report feedback

The Math.sinh() static method returns the hyperbolic sine of a number. That is,

𝙼𝚊𝚝𝚑.𝚜𝚒𝚗𝚑(𝚡)=sinh(x)=ex−e−x2\mathtt{\operatorname{Math.sinh}(x)} = \sinh(x) = \frac{\mathrm{e}^x - \mathrm{e}^{-x}}{2}

In this article

  • Try it
  • Syntax
  • Description
  • Examples
  • Specifications
  • Browser compatibility
  • See also

Try it

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

Syntax

jsMath.sinh(x)

Parameters

x

A number.

Return value

The hyperbolic sine of x.

Description

Because sinh() is a static method of Math, you always use it as Math.sinh(), rather than as a method of a Math object you created (Math is not a constructor).

Examples

Using Math.sinh()

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

Specifications

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

Browser compatibility

See also

  • Polyfill of Math.sinh in core-js
  • Math.acosh()
  • Math.asinh()
  • Math.atanh()
  • Math.cosh()
  • Math.tanh()

Help improve MDN

Was this page helpful to you? Yes No Learn how to contribute

This page was last modified on ⁨Jul 10, 2025⁩ by MDN contributors.

View this page on GitHub • Report a problem with this content Filter sidebar
  1. Standard built-in objects
  2. Math
  3. Static methods
    1. abs()
    2. acos()
    3. acosh()
    4. asin()
    5. asinh()
    6. atan()
    7. atan2()
    8. atanh()
    9. cbrt()
    10. ceil()
    11. clz32()
    12. cos()
    13. cosh()
    14. exp()
    15. expm1()
    16. f16round()
    17. floor()
    18. fround()
    19. hypot()
    20. imul()
    21. log()
    22. log1p()
    23. log2()
    24. log10()
    25. max()
    26. min()
    27. pow()
    28. random()
    29. round()
    30. sign()
    31. sin()
    32. sinh()
    33. sqrt()
    34. sumPrecise()
    35. tan()
    36. tanh()
    37. trunc()
  4. Static properties
    1. E
    2. LN2
    3. LN10
    4. LOG2E
    5. LOG10E
    6. PI
    7. SQRT1_2
    8. SQRT2

Từ khóa » Sinh Log(2+sqrt(5)) =