<< Prev        Next >>

ID : 3818

Cos

Function

To return cosine.

Syntax

Cos(angle)

Guaranteed Entry

Angle
Designate by Double Precision Real Number Type data. The unit is [Degree].

Return Value

Return Double Precision Real Number Type data.

Description

Cosine is returned.

Related Terms

Sin, Tan, Asin, Acos, Atn, Atn2

Attention

The return value unit is [Degree].

Example

'!TITLE "Calculation of Cosine"
' Calculation of cosine of 0 degree
Sub Sample_Cos

  Dim aaa As Integer

  ' Assign the cosine value of 0 degree to aaa
  aaa = Cos( 0 )

  ' Display "1" on the message output window
  PrintDbg aaa

End Sub

ID : 3818

<< Prev        Next >>