Método Python math.tan()
Ejemplo
Encuentra la tangente de diferentes números (ángulos):
# Import math Library
import math
# Return the tangent of
different numbers
print (math.tan(90))
print (math.tan(-90))
print
(math.tan(45))
print
(math.tan(60))
Definición y uso
El math.tan()
método devuelve la tangente de un número.
Sintaxis
math.tan(x)
Valores paramétricos
Parameter | Description |
---|---|
x | Required. A number to find the tangent of. If the value is not a number, it returns a TypeError |
Detalles técnicos
Valor devuelto: | Un float valor, que representa la tangente de un número. |
---|---|
Versión de Python: | 1.4 |