tan Function

Retrieves the tangent of a real number.


real tan(real arg)

Parameter

Description

arg

The real number for which to calculate the tangent.

The tangent of the specified real number.

Values for the arg parameter that are outside the range of –250 to 250 result in the, "Argument for trigonometric function out of range" run-time error.

The following example illustrates the tan function.

static void tanExample(Args _arg)
{
    real r;
    ;
    r = tan(250);
    print strFmt("Tan of 250 is %1", r);
    pause;
} 

Community Additions

ADD
Show: