cosh Function

Retrieves the hyperbolic cosine of a real number.

NoteNote

Argument values outside of the range –250 to 250 result in the following run-time error: "Argument for trigonometric function out of range."



real cosh(real arg)

Parameter

Description

arg

The hyperbolic number to calculate the cosine of. Specify arg in radians.

The hyperbolic cosine of arg.

static void coshExample(Args _arg)
{
    real r;
    ;
    r = cosh(0.1);
    print "The hyperbolic cosine of 0.1 is " + num2Str(r, 2, 2, 1, 1);
    pause;
}

Community Additions

ADD
Show: