COSH
Hyperbolic cosine of the number: (e^x + e^-x) / 2.
Group: Math. Compatible with DAX.
Syntax
COSH ( <number> )
| Parameter | Type | Description |
|---|---|---|
number | Number | Any number. |
Returns
Number. A number of 1 or more; exactly 1 for 0.
Remarks
- It is half of e to the number plus e to minus the number, and even:
COSH ( -1 )isCOSH ( 1 ). - A blank counts as 0, so the result is 1.
- From about 710 either way the result no longer fits in a number, and the call is an error.
COSH ( x ) ^ 2 - SINH ( x ) ^ 2is 1, up to the last digit.
Examples
Hyperbolic cosines
EVALUATE
ROW (
"Of 0", COSH ( 0 ),
"Of 1", COSH ( 1 ),
"Of -1", COSH ( -1 ),
"Of blank", COSH ( BLANK () )
)
| Of 0 | Of 1 | Of -1 | Of blank |
|---|---|---|---|
| 1 | 1.54308063481524 | 1.54308063481524 | 1 |