Mye*_* JO -1 python math trigonometry
的tan(pi)是0,但是当我计算tan(math.pi)与Python.答案是-1.2246467991473532e-16.
tan(pi)
0
tan(math.pi)
-1.2246467991473532e-16
我无法理解.
Kir*_*gin 6
e-16意思是* 10^-16,非常接近零(不完美,部分因为pi不完美).在计算器上,它只是舍入到零.
e-16
* 10^-16
pi
归档时间:
9 年,5 月 前
查看次数:
152 次
最近记录:
7 年,10 月 前