Méthode Python math.tan()
Exemple
Trouvez la tangente de différents nombres (angles):
# 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))
Définition et utilisation
La math.tan()
méthode renvoie la tangente d'un nombre.
Syntaxe
math.tan(x)
Valeurs des paramètres
Parameter | Description |
---|---|
x | Required. A number to find the tangent of. If the value is not a number, it returns a TypeError |
Détails techniques
Valeur de retour : | Une float valeur, représentant la tangente d'un nombre |
---|---|
Version Python : | 1.4 |