LibreOffice 7.3 laguntza
Zenbakizko adierazpenaren arku tangentea itzultzen duen funtzio trigonometrikoa. Itzulera-balioa -Pi/2 eta +Pi/2 bitartekoa da.
The arctangent is the inverse of the tangent function. The Atn Function returns the angle "Alpha", expressed in radians, using the tangent of this angle. The function can also return the angle "Alpha" by comparing the ratio of the length of the side that is opposite of the angle to the length of the side that is adjacent to the angle in a right-angled triangle.
Atn(side opposite the angle/side adjacent to angle)= Alpha
Atn (Number As Double) As Double
Double
Number: Any numerical expression that represents the ratio of two sides of a right triangle. The Atn function returns the corresponding angle in radians (arctangent).
Radianak gradu bihurtzeko, egin radianak bider 180/pi.
graduak=(radianak*180)/pi
radianak=(graduak*pi)/180
Pi is here the fixed circle constant with the rounded value 3.14159. Pi is a Basic mathematical constant.
' Ondorengo adibidean triangelu angeluzuzen baten Alfa angelua
' Alfa angeluaren tangentetik kalkulatzen da:
Sub ExampleAtn
' Pi biribildua = 3,14159 aurrez definitutako konstantea da
Dim d1 As Double
Dim d2 As Double
d1 = InputBox("Sartu angeluaren alboko aldearen luzera: ","Albokoa")
d2 = InputBox("Sartu angeluaren aurkako aldearen luzera: ","Aurkakoa")
Print "Alfa angelua:"; (atn (d2/d1) * 180 / Pi); " gradu"
End Sub