tan Function

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Retrieves the tangent of a real number.

real tan(real arg)

Parameters

Parameter

Description

arg

The real number for which to calculate the tangent.

Return Value

The tangent of the specified real number.

Remarks

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.

Example

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;
} 

See also

acos Function

asin Function

atan Function

cos Function

cosh Function

sin Function

sinh Function

tanh Function

Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).