Asin function, Atan function, Asin( a ) – Delta RMC151 User Manual
Page 361: Atan( a )
5 Programming
Examples
ASHR(16#FFFF0008, 2) returns 16#FFFFC0002
5.14.2.6. ASIN Function
ASIN(a)
Returns the arcsine 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
ASIN(0.5) returns 0.5235988
ASIN(0.5) * 180 / M_PI returns 30.0
5.14.2.7. ATAN Function
ATAN(a)
Returns the arctangent 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
π
.
Examples
ATAN(0.5) returns 0.4636476
ATAN(0.5) * 180 / M_PI returns 26.56505
deltamotion.com
341