ASIN, ACOS, and ATAN
These instructions perform inverse trigonometric calculations on real numbers.
ASIN:
Finds the arc sine of a number.
ACOS: Finds the arc cosine of a number.
ATAN:
Finds the arc tangent of a number.
Instruction
ASIN
Principal Arc Sine
ACOS
Principal Arc
Cosine
ATAN
Principal Arc
Tangent
Variables
Name
Meaning
In
Number to
process
Out
Calculation
result
* If you omit the input parameter, the default value is not applied. A building error will occur.
Bit strings
In
Out
Function
These instructions perform inverse trigonometric calculations on real numbers. The calculation result
Out is an angle in radians (rad).
ASIN
The ASIN instruction finds the arc sine of In. Out is between −π/2 and π/2.
NY-series Instructions Reference Manual (W560)
Name
FB/FUN
FUN
FUN
FUN
I/O
Description
Input
Number to process
Output
Calculation result
Graphic expression
(@)ASIN
EN
ENO
In
Out
(@)ACOS
EN
ENO
In
Out
(@)ATAN
EN
ENO
In
Out
Valid range
Depends on data type.
• ASIN
−π
π
/2 to
/2
• ACOS
π
0
to
• ATAN
−π
π
/2 to
/2
Integers
OK OK
OK OK
2 Instruction Descriptions
ST expression
Out:=ASIN(In);
Out:=ACOS(In);
Out:=ATAN(In);
Unit
Default
*
---
rad
---
Times, durations, dates,
and text strings
2
2-201