Python math.tau Constant
Example
Print the value of tau:
# Import math Library
import math
# Print the value of tau
print (math.tau)
Try it Yourself »
import math
# Print the value of tau
print (math.tau)
Definition and Usage
The math.tau constant returns the value of tau, which is 6.283185307179586.
It is defined as the ratio of the circumference to the radius of a circle. Tau is a circle constant and the value is equivalent to 2π.
Note: Mathematically tau is represented by τ.
Syntax
math.tau
Technical Details
| Return Value: | A float value, 6.283185307179586, representing the mathematical constant
tau |
|---|---|
| Python Version: | 3.6 |