COSH

COSH is a mathematical function in SQL that returns the hyperbolic cosine of a given float expression. It is commonly used in trigonometry-based calculations.

Example

SELECT COSH(1);

Output

1.5430806348152437

Explanation

In the example, the COSH() function is used to compute the hyperbolic cosine of a number. The function takes as an input the number 1 and returns the hyperbolic cosine of that number as the output.

Example

SELECT COSH(1) AS HyperbolicCosine;

Output

HyperbolicCosine
-----------------
1.54308063481524

Explanation

The given code demonstrates the use of the COSH function in SQL Server. This function calculates the hyperbolic cosine of the specified number. Here, it calculates the hyperbolic cosine of 1 and the result is 1.54308063481524.

Example

SELECT COSH(1) FROM dual;

Output

1.5430806348152437

Explanation

The COSH function returns the hyperbolic cosine of a number. In the example, the hyperbolic cosine of 1 is computed, which approximately equates to 1.5430806348152437.

For in-depth explanations and examples SQL keywords where you write your SQL, install our extension.