Oracle Number Function - Oracle/PLSQL COSH Function






This Oracle tutorial explains how to use the Oracle/PLSQL COSH function.

COSH returns the hyperbolic cosine of a value. It takes arguments in radians where,

radians = (angle * 2 * 3.1416 / 360)

Syntax

The syntax for the Oracle/PLSQL COSH function is:

COSH( number )

number is the number used to calculate the hyperbolic cosine.

Example

Using the COSH function to find the hyperbolic cosine of 30 degrees:


SQL>--   w  w w . j  av a  2 s  . c o  m
SQL> SELECT COSH(30*2*3.1416/360) FROM dual;

COSH(30*2*3.1416/360)
---------------------
           1.14023899

SQL>
SQL>
SQL>
SQL> select COSH(3.1415926) from dual;

COSH(3.1415926)
---------------
     11.5919527

SQL>