Function - Sets the unit for angles in all trigonometric functions.

Inputs

Input

Data type

Description

IN

BOOL

If TRUE, turn all trigonometric functions to use degrees.
If FALSE, turn all trigonometric functions to use radians (default).

Outputs

Output

Data type

Description

Q

BOOL

TRUE if functions use degrees before the call.

Remarks

This function sets the working unit for the following functions:

Code

Function

SIN
COS
TAN
ASIN
ACOS
ATAN
ATAN2

sine
cosine
tangent
arc-sine
arc-cosine
arc-tangent
arc-tangent of Y / X

ST Language

Q := UseDegrees (IN);

FBD Language

Fixed_Image

LD Language

Input is the rung. The rung is the output.

Fixed_Image


Created with the Personal Edition of HelpNDoc: Easily create EBooks