SQL Server ATANH Function
Updated 2024-03-23 22:07:39.277000
Description
Use the scalar function ATANH to calculate the inverse hyperbolic tangent of a number. The number must be between -1 and 1 (excluding -1 and 1).
Syntax
SELECT [westclintech].[wct].[ATANH] (
<@Number, float,>)
Arguments
@Number
is any real number greater than -1 and less than 1. @Number is an expression of type float or of a type that can be implicitly converted to float.
Return Type
float
Remarks
ATANH = Log((1 + @Number) / (1 - @Number)) / 2.
Examples
SELECT wct.ATANH(cos(45));
Here is the result set.
| column 1 |
|---|
| 0.583662051991022 |