# Función Atn

Función trigonométrica que devuelve el arcotangente de una expresión numérica. El valor de retorno está en el intervalo de −Pi/2 a +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

### Sintaxis:

``````
Atn (Number As Double) As Double
``````

Double

### Parámetros:

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).

Pi is here the fixed circle constant with the rounded value 3.14159. Pi is a Basic mathematical constant.

### Códigos de error:

5 Llamada a procedimiento no válida

### Ejemplo:

``````
' El ejemplo siguiente calcula para un triángulo rectángulo
' el ángulo Alfa desde la tangente del ángulo Alfa:
Sub ExampleAtn
' Pi redondeado = 3,14159 es una constante predefinida
Dim d1 As Double
Dim d2 As Double