×

Index

JavaScript Tutorial

JavaScript Examples

CSS Tutorial

CSS Examples

Math.sinh() Method with Example in JavaScript

JavaScript | Math.sinh() Method: Here, we are going to learn about the sinh() method of Math class in JavaScript with Examples.
Submitted by Shivang Yadav, on December 21, 2019

JavaScript | Math.sinh() Method

Math.sinh() is a function in math library of JavaScript that is used to find the value of hyperbolic sine of a number.

Syntax

    Math.sinh(p);

Parameters

  • p – It represents the value whose hyperbolic sine value to be found.

Return Value

The return type of this method is number, it returns the hyperbolic sine value of the given p.

Example 1: Find the sinh of numeric values

console.log(Math.sinh(0));
console.log(Math.sinh(7));
console.log(Math.sinh(-5));
console.log(Math.sinh(4.52));

Output

0
548.3161232732465
-74.20321057778875
45.912354477244094

Example 2: Find the sinh of non-numeric values

console.log(Math.sinh("IncludeHelp"));
// Output: NaN

console.log(Math.sinh(3 + 5i));
// Output: Uncaught SyntaxError: Invalid or unexpected token

JavaScript Math Object Methods »




Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.