Cosh function, Crv_exists function, Cosh( a ) – Delta RMC151 User Manual

Page 365: Crv_exists( id)

Advertising
background image

5 Programming

COS(a)
Returns the cosine of a.

Parameters

a (REAL)
The input value in radians.

Return Value

Returns a REAL.

Remarks

Notice a is in radians. To convert a value from degrees to radians, multiply the degrees

value by

π

/180. The RMC has an M_PI constant for

π

.

Due to the 32-bit floating point limitations, COS(M_PI / 2) returns -43.71139E-9 instead

of zero. For complex calculations, you may need to check for an exact zero and code the

return value as needed.

Examples

COS(M_PI) returns -1.0
COS(45 * M_PI / 180) returns 0.70710677

5.14.2.11. COSH Function

COSH(a)
Returns the hyperbolic cosine of a.

Parameters

a (REAL)
The input value.

Return Value

Returns a REAL.

5.14.2.12. CRV_EXISTS Function

CRV_EXISTS (id)
Returns TRUE if the curve with the specified id exists, otherwise returns FALSE.

Parameters

id (DINT)
The curve ID.

Return Value

Returns a BOOL.

deltamotion.com

345

Advertising
This manual is related to the following products: