Collabora Office 24.04 Help
각도의 코사인을 계산합니다. 각도는 라디안으로 지정됩니다. 결과는 -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.
Cos(Alpha) = Adjacent/Hypotenuse
Cos (Number As Double) As Double
Double
Number: 코사인을 계산할 각도를 라디안으로 지정하는 숫자 식입니다.
도를 라디안으로 변환하려면 도에 pi/180을 곱합니다. 라디안을 도로 변환하려면 라디안에 180/pi를 곱합니다.
degree=(radian*180)/pi
radian=(degree*pi)/180
Pi is here the fixed circle constant with the rounded value 3.14159...
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
d1 = InputBox$ (""Enter the length of the adjacent side: ","Adjacent")
dAngle = InputBox("Enter the angle Alpha (in degrees): ","Alpha")
Print "The length of the hypotenuse is"; (d1 / cos (dAngle * Pi / 180))
End Sub