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