Método Python math.atan()
Ejemplo
Devuelve el arco tangente de diferentes números:
#Import math Library
import math
#fReturn the arc tangent of
different numbers
print (math.atan(0.39))
print (math.atan(67))
print (math.atan(-21))
Definición y uso
El math.atan()
método devuelve el arco tangente de un número ( x ) como un valor numérico entre -PI/2 y PI/2 radianes.
El arco tangente también se define como una función tangente inversa de x , donde x es el valor del arco tangente que se va a calcular.
Sintaxis
math.atan(x)
Valores paramétricos
Parameter | Description |
---|---|
x | Required. A positive or negative number. If x is not a number, it returns error a TypeError |
Detalles técnicos
Valor devuelto: | Un float valor, de -PI/2 a PI/2, que representa el arco tangente de un número |
---|---|
Versión de Python: | 1.6.1 |