Python math.tan() Metodo
Esempio
Trova la tangente di diversi numeri (angoli):
# 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))
Definizione e utilizzo
Il math.tan()
metodo restituisce la tangente di un numero.
Sintassi
math.tan(x)
Valori dei parametri
Parameter | Description |
---|---|
x | Required. A number to find the tangent of. If the value is not a number, it returns a TypeError |
Dettagli tecnici
Valore di ritorno: | Un float valore, che rappresenta la tangente di un numero |
---|---|
Versione Python: | 1.4 |