Python cmath.tau Constant
Example
Print the value of tau:
#Import cmath Library
import cmath
#Print the value of tau
print (cmath.tau)
Try it Yourself »
Definition and Usage
The cmath.tau
constant returns 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
cmath.tau
Technical Details
Return Value: | A float value, 6.283185307179586, representing the mathematical constant tau |
---|---|
Python Version: | 3.6 |
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.