SQL Server ACOSH Function
Updated 2023-10-13 14:26:31
Description
Use the scalar function ACOSH to calculate the inverse hyperbolic cosine of a number. The number must be greater than or equal to 1.
Syntax
SELECT [westclintech].[wct].[ACOSH] (
<@Number, float,>)
Arguments
@Number
is any real number greater than or equal to 1. @Number is an expression of type float or of a type that can be implicitly converted to float.
Return Type
float
Remarks
ACOSH = Log(@Number + (@Number * @Number - 1) ^ (1 / 2)).
Examples
SELECT wct.ACOSH(PI());
Here is the result set.
| column 1 |
|---|
| 1.81152627246085 |