Méthode Python cmath.atan()
Exemple
Trouver l'arc tangente d'un nombre complexe :
#import cmath for complex number operations
import cmath
#find
the arc tangent of a complex number
print (cmath.atan(2 + 3j))
Définition et utilisation
La cmath.atan()
méthode renvoie l'arc tangente d'un nombre complexe.
Il existe principalement deux coupes de branches :
- S'étendant de 1j le long de l'axe imaginaire à ∞j vers la droite
- S'étendant de -1j le long de l'axe imaginaire à -∞j vers la gauche
Syntaxe
cmath.atan(x)
Valeurs des paramètres
Parameter | Description |
---|---|
x | Required. A number to find the arctangent of |
Détails techniques
Valeur de retour : | Une complex valeur, représentant l'arc tangente d'un nombre complexe |
---|---|
Version Python : | 2.6 |