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

Number: ์ฝ์ฌ์ธ์ ๊ณ์ฐํ  ๊ฐ๋๋ฅผ ๋ผ๋์์ผ๋ก ์ง์ ํ๋ ์ซ์ ์์๋๋ค.

๋๋ฅผ ๋ผ๋์์ผ๋ก ๋ณํํ๋ ค๋ฉด ๋์ 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 ์์ปจํธ ๋ฐ ๊ฐ๋(๋ ๋จ์)๋ ๋น๋ณ์ ๊ธธ์ด๋ฅผ ๊ณ์ฐํฉ๋๋ค.
Sub ExampleCosinus
REM rounded Pi = 3.14159
Dim d1 As Double, dAngle As Double