Python cmath.tau Konstante
Beispiel
Drucken Sie den Wert von tau:
#Import cmath Library
import cmath
#Print the value of tau
print (cmath.tau)
Definition und Verwendung
Die cmath.tau
Konstante gibt Tau zurück, das ist 6,283185307179586.
Sie ist definiert als das Verhältnis des Umfangs zum Radius eines Kreises. Tau ist eine Kreiskonstante und der Wert entspricht 2π.
Hinweis: Mathematisch wird Tau durch τ dargestellt.
Syntax
cmath.tau
Technische Details
Rückgabewert: | Ein float Wert, 6,283185307179586, der die mathematische Konstante Tau darstellt |
---|---|
Python-Version: | 3.6 |