SQL Server COSH Function
Updated 2023-10-13 14:39:44.260000
Description
Use the scalar function COSH to calculate the hyperbolic cosine of a number.
Syntax
SELECT [westclintech].[wct].[COSH] (
<@Number, float,>)
Arguments
@Number
is any real number. @Number is an expression of type float or of a type that can be implicitly converted to float.
Return Type
float
Remarks
COSH = (EXP(@Number) + EXP(-@Number)) / 2.
Examples
SELECT wct.COSH(PI());
Here is the result set.
| column 1 |
|---|
| 11.5919532755215 |