ASIN
Arc sine function.
WebVue support - Yes.
Syntax
DblVal = ASIN(Arc);
Return type: DOUBLE.
Argument |
Meaning |
Arc |
Any numeric type but must be in the range -1 to 1. |
Execution
Returns the inverse sinus of the value Arc as an angle in degrees, or 0 if Arc is out-of-range.
Example
'variables required:
' @ARC - type REGISTER, value range -1 to +1
' @ANGLE - type REGISTER, value range 0° to 360°
SUB Main()
DIM dblarc As Double;
DIM dblangle As Double;
'Register used as type double
dblarc = @SB_EXAMPLES.TRIG.ARC;
'Apply arc sine function
dblangle = ASIN (sngarc);
@SB_EXAMPLES.TRIG.ANGLE = dblangle;
Delay(0.1);
PRINT (@SB_EXAMPLES.TRIG.ANGLE);
END SUB