Table of Contents

Search

  1. Preface
  2. The Transformation Language
  3. Constants
  4. Operators
  5. Variables
  6. Dates
  7. Functions
  8. Creating Custom Functions
  9. Custom Function API Reference

Transformation Language Reference

Transformation Language Reference

COSH

COSH

Returns the hyperbolic cosine of a numeric value (expressed in radians).

Syntax

COSH(
numeric_value
)
The following table describes the argument for this command:
Argument
Required/
Optional
Description
numeric_value
Required
Numeric datatype. Numeric data expressed in radians (degrees multiplied by pi divided by 180). Passes the values for which you want to calculate the hyperbolic cosine. You can enter any valid transformation expression.

Return Value

Double value.
NULL if a value passed to the function is NULL.

Example

The following expression returns the hyperbolic cosine for the values in the Angles port:
COSH( ANGLES )
ANGLES   
RETURN VALUE
1.0
1.54308063481524
2.897
9.0874465864177
3.66
19.4435376920294
5.45
116.381231106176
0
1.0
0.345
1.06010513656773
NULL
NULL
You can perform arithmetic on the values passed to COSH before the function calculates the hyperbolic cosine. For example:
COSH( MEASURES.ARCS / 360 )