COSH DAX Function (Math and Trig)

Returns the hyperbolic cosine of a number.

Syntax

COSH ( <Number> )
Parameter Attributes Description
Number

Any real number for which you want to find the hyperbolic cosine.

Return values

Scalar A single decimal value.

The hyperbolic cosine of a number.

Remarks

COSH ( Number ) returns the same value as ( EXP ( Number ) + EXP ( -Number ) ) / 2. For example, COSH ( 4 ) returns about 27.308.

The result is always 1 or more. COSH ( 0 ) returns 1. A BLANK argument is treated as 0, so it also returns 1.

COSH returns an error when the absolute value of Number is more than about 709.78, because the result is too large. COSH also returns an error when Number is text that cannot be converted to a number.

» 1 related function

Examples

--  SINH, COSH, ASINH, ACOSH, TANH, ATANH, COTH, ACOTH
--  are the standard hyperbolic trigonometrical functions.
--
--  Where required, the arguments are specified in radians.
DEFINE
    VAR Vals = GENERATESERIES ( -PI()+0.001, PI(), PI()/4 )
EVALUATE
    ADDCOLUMNS (
        Vals,
        "Value (nπ)",
            VAR ImproperQuartersOfPi = ROUND ( ABS ( [Value] / PI () * 4 ), 0 )
            VAR WholePis = ROUNDDOWN ( ImproperQuartersOfPi / 4, 0 )
            VAR ProperQuartersOfPi = MOD ( ImproperQuartersOfPi, 4 )
            RETURN
                IF ( ROUND ( [Value], 0 ) < 0, "-" )
                    & IF ( WholePis <> 0 && ImproperQuartersOfPi <> 4, WholePis )
                    & IF ( ProperQuartersOfPi <> 0, UNICHAR ( 187 + ProperQuartersOfPi ) )
                    & IF ( ImproperQuartersOfPi = 0, "0", "π" ),
        "SINH",      SINH ( [Value] ),
        "ASINH",     ASINH ( SINH ( [Value] ) ),
        "COSH",      COSH ( [Value] ),
        "ACOSH",     ACOSH ( COSH ( [Value] ) ),
        "TANH",      TANH ( [Value] ),
        "ATANH",     ATANH ( TANH ( [Value] ) ),
        "COTH",      COTH ( [Value] ),
        "ACOTH",     ACOTH ( COTH ( [Value] ) )
    )
Value Value (nπ) SINH ASINH COSH ACOSH TANH ATANH COTH ACOTH
-3.14 -π -11.54 -3.14 11.58 3.14 -1.00 -3.14 -1.00 -3.14
-2.36 -¾π -5.22 -2.36 5.32 2.36 -0.98 -2.36 -1.02 -2.36
-1.57 -½π -2.30 -1.57 2.51 1.57 -0.92 -1.57 -1.09 -1.57
-0.78 -¼π -0.87 -0.78 1.32 0.78 -0.66 -0.78 -1.53 -0.78
0.00 0 0.00 0.00 1.00 0.00 0.00 0.00 1,000.00 0.00
0.79 ¼π 0.87 0.79 1.33 0.79 0.66 0.79 1.52 0.79
1.57 ½π 2.30 1.57 2.51 1.57 0.92 1.57 1.09 1.57
2.36 ¾π 5.23 2.36 5.33 2.36 0.98 2.36 1.02 2.36

Related functions

Other related functions are:

Last update: Nov 9, 2026   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo, Kenneth Barber

Microsoft documentation: https://learn.microsoft.com/en-us/dax/cosh-function-dax

2018-2026 © SQLBI. All rights are reserved. Information coming from Microsoft documentation is property of Microsoft Corp. » Contact us   » Privacy Policy & Cookies

Context Transition

This function performs a Context Transition if called in a Row Context. Click to read more.

Row Context

This expression is executed in a Row Context. Click to read more.

Passed by Expression

This parameter is passed by expression and can be evaluated multiple times in different evaluation contexts.

Iterator

Not recommended

The use of this function is not recommended. See Remarks and Related functions for alternatives.

Not recommended

The use of this parameter is not recommended.

Deprecated

This function is deprecated. Jump to the Alternatives section to see the function to use.

Volatile

A volatile function may return a different result every time you call it, even if you provide the same arguments. Click to read more.

Deprecated

This parameter is deprecated and its use is not recommended.

DirectQuery compatibility

Limitations are placed on DAX expressions allowed in measures and calculated columns.
The state below shows the DirectQuery compatibility of the DAX function.

Contribute

Want to improve the content of COSH? Did you find any issue?
Please, report it us! All submissions will be evaluated for possible updates of the content.