Python cmath.infj Konstante
Beispiel
Drucken Sie komplexe Unendlichkeit:
#Import cmath Library
import cmath
# Print complex infinity
print (cmath.infj)
Definition und Verwendung
Die cmath.infj
Konstante gibt eine komplexe positive Unendlichkeit zurück. Die Rückkehr hat einen 0-Realteil und positiv unendlich als Imaginärteil.
Die Konstante cmath.infj entspricht
complex(0.0, float("inf"))
.
Syntax
cmath.infj
Technische Details
Rückgabewert: | Ein complex Wert, der den Wert der komplexen Unendlichkeit darstellt |
---|---|
Python-Version: | 3.6 |