Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Previous sectionNext section


Returns the hyperbolic cosine of an angle.




number An expression that resolves to a number that expresses an angle in degrees.


The COSH function takes an angle in degrees and returns the ratio of two sides of a right triangle. The ratio is the length of the side adjacent to the angle divided by the length of the hypotenuse. This ratio is in the range of 1 to -1 (inclusive).


The following example uses the COSH function to return the hyperbolic cosine of an angle:

Dim MyAngle
MyAngle = 1.3;        ! Define angle in degrees.
PRINT COSH(MyAngle);  ! Returns hyperbolic cosine ratio.
Copy code to clipboard

See Also