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

Ad: Are you a blogger? Join our Blogging forum.
Learn PCB Designing: PCB DESIGNING TUTORIAL







Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing » Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.