LibreOffice 7.3 Help
Trigonometrische functie die de boogtangens van een numerieke expressie teruggeeft. De teruggegeven waarde ligt in het bereik van -Pi/2 tot +Pi/2.
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
Dubbel
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).
Vermenigvuldig de radialen met 180/Pi om radialen naar graden om te zetten.
graad=(radiaal*180)/pi
radiaal=(graad*pi)/180
Pi is here the fixed circle constant with the rounded value 3.14159. Pi is a Basic mathematical constant.
' Het volgende voorbeeld berekent voor een rechthoekige driehoek
' de hoek Alfa uit de tangens van de hoek Alfa:
Sub ExampleAtn
' afgeronde Pi = 3,14159 is een voorgedefinieerde constante
Dim d1 As Double
Dim d2 As Double
d1 = InputBox("Voer de lengte van de aanliggende zijde in: ","Aanliggend: ")
d2 = InputBox("Voer de lengte van de overstaande zijde in: ","Tegenoverliggend")
Print "De Alfa hoek is"; (Atn (d2/d1) * 180 / Pi); " graden"
End Sub