ID : 225
Acos
Function
To return arccosine.
Syntax
Acos(cosine value)
Guaranteed entry
- Cosine value
- Designate Double Precision Real Number Type data. Value must be within the range of -1 to +1.
Return value
Return Double Precision Real Number Type data between 0 and 180. The unit is [Degree].
Description
Arccosine is returned.
Attention
The return value unit is [Degree].
An error occurs if the cosine value is out of the range -1 to +1.
Example
'!TITLE "Calculation of Arccosine"
' Acquire arccosine of 0.5
Sub Sample_ACos
Dim aaa As Integer
' Assign the arccosine value of 0.5 to aaa
aaa = ACos( 0.5 )
' Display "60" on the message output window
PrintDbg aaa
End Sub
ID : 225