LibreOffice 7.4 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 hypothenuse is"; (d1 / cos (dAngle * Pi / 180))
End Sub