LibreOffice 24.2 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
ចំនួន ៖ កន្សោមលេខដែលបញ្ជាក់មុំជារ៉ាដ្យង់ ដែលអ្នកចង់គណនាកូស៊ីនុស ។
ដើម្បីបម្លែងដឺក្រេជារ៉ាដ្យង់ គុណដឺក្រេជាមួយនឹង 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 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
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