COSH Function in Oracle SQL – PLSQL

The COSH function in Oracle SQL / PLSQL is used to calculate hyperbolic cosine of numeric value where numeric value is provided in radian format.

It’s mathematically equal to COSH(N).

Syntax for the COSH function in Oracle SQL / PLSQL is:

SELECT COSH(radian)
FROM table_name;

Let’s take an example for understanding:

Suppose we want to get the hyperbolic cosine of 30 degree.

SELECT COSH(30*22/(7*180))
FROM dual;

The output of the above statement will be:

COSH(30*22/(7*180))
1.14035380553865

Notice that we have changed 30 degrees into radians while passing it in COSH function.


Tagged , , , , , , , , , , , . Bookmark the permalink.