ATan
(Engine-Level Function)
Description: | Returns the trigonometric arc tangent in radians. |
Returns: | Numeric |
Usage: | Script or steady state. |
Function Groups: | Trigonometric Math |
Related to: | ACos | ASin | Cos | Sin | Tan |
Format: | ATan(X) |
Parameters: |
X |
Required. Any numeric expression. |
Comments: |
The returned angle is in radians. To convert an angle from radians to degrees, divide by \Pi / 180 or (approximately) 0.0174533. (\Pi is a defined constant in VTScada.) |
Example:
RadAngle = ATan(1); DegAngle = RadAngle / \Pi / 180;
The value of DegAngle will be 45.