Syntax
Public Function MathCos(Number As Double)As Double
Description
This function is used to return the cosine value for a given angle.
Parameters
Key | Description |
Number | The angel value to get the cos,value of type Double. |
Return value
Returns the cosine of the specified angle as a numeric value of type double.
Sample
Public Sub main()AlertMessage (MathCos(0)) ' Cos (0) = 1 . the Alert Message will return 1 'pi = 3.1415926535 cosine function takes values from ( 0 to pi/2 )End Sub
See Also