LibreOffice 24.8 Help
RaÄuna kosinus kuta. Kut je oznaÄen u radijanima. Rezultat se nalazi izmeÄu -1 i 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: Numeric expression that specifies an angle in radians that you want to calculate the cosine for.
Da bi pretvorili stupnjeve u radijane, pomnoĆŸite stupnjeve s pi/180. Da bi pretvorili radijane u stupnjeve pomnoĆŸite radijane sa 180/pi
degree=(radian*180)/pi
radian=(degree*pi)/180
Pi is here the fixed circle constant with the rounded value 3.14159...
REM sljedeÄi primjer omoguÄava unoĆĄenje desno orijentiranog kuta u trokuta
REM sekantu i kut (u stupnjevima) i izraÄunava duĆŸinu hipotenuze
Sub ExampleCosinus
REM zaokruĆŸi Pi = 3.14159
Dim d1 As Double, dAngle As Double
d1 = InputBox$ (""Unesi duĆŸinu susjedne stranice: ","Adjacent")
dAngle = InputBox("Unesi kut alpha (u stupnjevima): ","Alpha")
Print "The length of the hypotenuse is"; (d1 / cos (dAngle * Pi / 180))
End Sub