acos Function

Retrieves the arc cosine of a real number.

NoteNote

Argument values outside the –1 to 1 range generate the following run-time error, "Argument for trigonometric function out of range."



real acos(real arg)

Parameter

Description

arg

The number for which to retrieve the arc cosine.

The arc cosine of the specified number.

static void acosExample(Args _args)
{
    real r;
    str  s;
    ;
    r = acos(0.0);
    s = strFmt("The arc cosine of 0.0 is %1 ", r);
    print s;
    pause;
}

Community Additions

ADD
Show: