ASIN¶
Returns the arc sine (inverse sine) of a numeric input.
Signature¶
┌─────────┐
IN ─┤ ASIN ├─ OUT
└─────────┘
FUNCTION ASIN : ANY_REAL
VAR_INPUT
IN : ANY_REAL;
END_VAR
END_FUNCTION
The return type matches the input type. ASIN accepts REAL,
LREAL.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
Value in the range [-1.0, 1.0]. |
Outputs
Name |
Type |
Description |
|---|---|---|
Return value |
|
The arc sine of IN in radians, in the range [-pi/2, pi/2]. Same type as IN. |
Description¶
Returns the arc sine of IN in radians. The input must be in the range [-1.0, 1.0]. The result is in the range [-pi/2, pi/2].
Example¶
result := ASIN(REAL#0.0); (* result = 0.0 *)
value := ASIN(LREAL#1.0); (* value ~ 1.5707963 *)
See Also¶
References¶
IEC 61131-3 §2.5.1.5.2