Javatpoint Logo
Javatpoint Logo

C++ Math cosh()

The function finds the hyperbolic cosine of an angle given in radian.


coshx = ex+ e-x/2


Suppose the hyperbolic angle is 'x':


x: The value of angle whose hyperbolic cosine is to be calculated.

Return value

It returns the hyperbolic cosine of angle given in radian.

Example 1

Let's see a simple example when the value of x is of integral type.


Value of degree is :45
cosh(radian): 1.32426 

In this example, cosh() computes the hyperbolic cosine of an angle 45 and returns the value 1.324.

Example 2

Let's see another simple example.


Value of degree is: 25.5
cosh(radian): 1.10058   

Next TopicC++ Math Functions

Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA