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.5430806348152437Explanation
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.54308063481524Explanation
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.5430806348152437Explanation
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.