Méthode Python cmath.tan()
Exemple
Trouver la tangente d'un nombre complexe :
#Import cmath Library
import cmath
#Return the tangent of a
complex number
print (cmath.tan(2 + 3j))
Définition et utilisation
La cmath.tan()
méthode renvoie la tangente d'un nombre complexe.
Syntaxe
cmath.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 complex valeur, représentant la tangente d'un nombre complexe |
---|---|
Version Python : | 1.5 |