Using Math sinh() function to coding in Javascript/JS

This JavaScript tutorial explains how to use the math function called sinh() with syntax and examples.

Description

In JavaScript, sinh() is a feature that is used to return the hyperbolic sine of a number. Because the sinh() feature is a static function of the Math object, it have to be invoked through the placeholder object referred to as Math.

Syntax

In JavaScript, the syntax for the sinh() feature is:

Math.sinh(number);

Parameters or Arguments

number The range used to calculate the hyperbolic sine.

Returns

The sinh() function returns the hyperbolic sine of a number.

Note

Math is a placeholder object that includes mathematical features and constants of which sinh() is one of these functions.

Example

Let’s take a look at an instance of how to use the sinh() feature in JavaScript.

For example:

console.log(Math.sinh(0.8));
console.log(Math.sinh(1));
console.log(Math.sinh(-5));

In this example, we have invoked the sinh() characteristic the use of the Math class.

We have written the output of the sinh() characteristic to the web browser console log, for demonstration purposes, to show what the sinh() feature returns.

The following will be output to the net browser console log:

0.888105982187623
1.1752011936438014
-74.20321057778875

In this example, the first output to the console log back 0.888105982187623 which is the hyperbolic sine of 0.8.

The 2nd output to the console log back 1.1752011936438014 which is the hyperbolic sine of 1.

The third output to the console log lower back -74.20321057778875 which is the hyperbolic sine of -5.