tau nb
Python math.tau常数 (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
math.tau常数是在数学模块中定义的预定义常数,它返回数学常数“ τ ” ( Tau )的值,该值为6.283185307179586
Note: math.tau constant is available from Python 3.6
注意: math.tau常数可从Python 3.6获得
Syntax of math.tau constant:
math.tau常数的语法:
math.tau
Return value: float – that is the value of mathematical constant "τ".
返回值: float –这是数学常数“τ”的值。
Example:
例:
Input:
print(math.tau)
Output:
6.283185307179586
Python代码演示math.tau常量示例 (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
参考: Python数学库
翻译自: https://www.includehelp.com/python/math-tau-constant-with-example.aspx
tau nb