sin Function

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

Retrieves the sine of a real number.

real sin(real _arg)

Parameters

Parameter

Description

_arg

The number for which to calculate the sine.

Return Value

The sine of the specified real number.

Remarks

The value of the _arg parameter must be in radians.

Example

static void sinExample(Args _arg)
{
    real angleDegrees = 15.0;
    real angleRadians;
    real pi = 3.14;
    real r;
    ;
    angleRadians = pi * angleDegrees / 180;
    r = sin(angleRadians);
    print "sin of a " 
        + num2Str(angleDegrees, 2, 2, 1, 1) 
        + " degree angle is " 
        + num2Str(r, 2, 10, 1, 1);
    pause;
}

See also

acos Function

asin Function

atan Function

cos Function

cosh Function

sinh Function

tan Function

tanh Function

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