# Cos Function

ααααΆβααΌαααΈαα»αβααβαα»αβαα½αβΒ α αα»αβααααΌαβααΆαβαααααΆααβββααΆβαααΆαααααΒ α ααααααβαααα·αβααβαααααα -1 αα·α 1Β α

Using the angle Alpha, the Cos function calculates the ratio of the length of the side that is adjacent to the angle, divided by the length of the hypotenuse in a right-angled triangle.

### Syntax:

``````
Cos (Number As Double) As Double
``````

Double

### Parameters:

αααα½αβ α ααααααβαααβαααβαααααΆααβαα»αββααΆβαααΆααααα αααβα’αααβαααβααααΆβααΌαααΈαα»αΒ α

ααΎααααΈβααααααβααΊααααβααΆβαααΆααααα αα»αβααΊααααβααΆαα½αβααΉα pi/180Β α ααΎααααΈβααααααβαααΆαααααβααΆβααΊαααα αα»αβαααΆαααααβααΆαα½αβααΉα 180/piΒ α

Pi is here the fixed circle constant with the rounded value 3.14159...

### Error codes:

5 ααΆαβα αβαααααβαα·αβααααΉαααααΌα

### Example:

``````
REM The following example allows for a right-angled triangle the input of
REM secant and angle (in degrees) and calculates the length of the hypotenuse:
Sub ExampleCosinus
REM rounded Pi = 3.14159
Dim d1 As Double, dAngle As Double