ACOS Function

ACOS(a)

Returns the arccosine of a.

Parameters

a(REAL)

The input value.

Return Value

Returns a REAL in radians.

Remarks

Notice that the return value is in radians. To convert a value from radians to degrees, multiply the radians value by 180/π. The RMC has an M_PI constant for π. For a < -1.0 or a > 1.0, the task will fault. An error will be logged in the Event Log and the user program running on the task will stop.

Examples

ACOS(0.5) returns 1.0471976

ACOS(0.5) * 180 / M_PI returns 60.0

 

See Also

COS Function | ASIN Function | ATAN Function | Standard Functions


Send comments on this topic.

Copyright © 2024 Delta Computer Systems, Inc. dba Delta Motion