次の方法で共有


ACOS( ) Function

Returns the arc cosine of a specified numeric expression.

ACOS(nExpression)

Return Value

Numeric

Parameters

  • nExpression
    Specifies a numeric expression whose arc cosine ACOS( ) returns. The value of nExpression can range from –1 through +1. The value returned by ACOS( ) ranges from 0 through pi (3.141592). The number of decimal places ACOS( ) returns is determined by SET DECIMALS.

    Use RTOD( ) to convert radians to degrees.

Remarks

The arc cosine is returned in radians.

Example

CLEAR
? RTOD(ACOS(0))  && Displays 90.00
STORE -1 to gnArcAngle
? RTOD(ACOS(gnArcAngle))  && Displays 180.00
? RTOD(ACOS(SQRT(2)/2))  && Displays 45.00

See Also

Reference

ASIN( ) Function

ATAN( ) Function

ATN2( ) Function

ACOS( ) Function

DTOR( ) Function

RTOD( ) Function

SET DECIMALS Command

SIN( ) Function

TAN( ) Function

Other Resources

Functions

Language Reference (Visual FoxPro)