Python Tutorial Python Advanced Python References Python Libraries

Python cmath - tau Constant



The Python cmath.tau constant returns the value of Τ = 6.283185…, to the available precision. Tau is a circle constant equal to 2𝜋, the ratio of a circle’s circumference to its radius.

Syntax

cmath.tau

Parameters

No parameter is required.

Return Value

Returns the value of Τ to the available precision.

Example:

In the example below, cmath.tau constant is used to return the value of Τ to the available precision.

import cmath

print(cmath.tau)

The output of the above code will be:

6.283185307179586

❮ Python cMath Module