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 for which to calculate the cosine.

The hyperbolic cosine of the specified number.

The value of the arg parameter must be in radians.

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: