Home » Python

math.tau constant with example in Python

Python math.tau constant: Here, we are going to learn about the math.tau constant of math module with example in Python.
Submitted by IncludeHelp, on April 19, 2019

Python math.tau constant

math.tau constant is a predefined constant, which is defined in math module, it returns the value of mathematical constant "τ" (Tau), the value is 6.283185307179586

Note: math.tau constant is available from Python 3.6

Syntax of math.tau constant:

    math.tau

Return value: float – that is the value of mathematical constant "τ".

Example:

    Input:
    print(math.tau)

    Output:
    6.283185307179586

Python code to demonstrate example of math.tau constant

# python code to demonstrate example of 
# math.tau constant

# importing math module
import math 

# printing value of TAU
print("value of tau = ", math.tau)

Output

value of tau = 6.283185307179586

Reference: Python math library



Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.