Home » JavaScript Math cosh() Method

JavaScript Math cosh() Method

by Online Tutorials Library

JavaScript Math cosh() method

The JavaScript math cosh() method returns the hyperbolic cosine of the given number.

Syntax

The cosh() method is represented by the following syntax:

Parameter

num – A number.

Return

The hyperbolic cosine of a number.

JavaScript Math cosh() method example

Here, we will understand cosh() method through various examples.

Example 1

Let’s see a simple example of cosh() method.

Test it Now

Output:

1.5430806348152437  1  1.1276259652063807  3.7621956910836314  

Example 2

Here, you can test cosh() method with your own test cases.

Test it Now

Next TopicJavaScript Math

You may also like