Python math.tau-Konstante

Python math 模块Python math-Modul

Python math.tauGibt die mathematische Konstante τ = 6.283185... zurück, tau ist eine Kreiskonstante gleich 2π, das Verhältnis des Umfangs eines Kreises zu seinem Radius.

Der Wert von tau ist 6.283185307179586.

Syntax

Die Syntax der math.tau-Konstante lautet wie folgt:

math.tau

Rückgabewert

Gibt eine Gleitkommazahl 6.283185307179586 zurück, die das Verhältnis des Umfangs eines Kreises zu seinem Radius darstellt.

Beispiel

Das folgende Beispiel gibt tau zurück:

Beispiel

# Importiere das math-Paket
import math

# tau ausgeben
print (math.tau)

Ausgabeergebnis:

6.283185307179586

Python math 模块Python math-Modul

Andere Erweiterungen