<< Prev        Next >>

ID : 3814

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.

Related Terms

Sin, Cos, Tan, Asin, Atn, Atn2

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 : 3814

<< Prev        Next >>