[issue12345] Add math.tau
Mark Dickinson
report at bugs.python.org
Fri Aug 12 05:06:08 EDT 2016
Mark Dickinson added the comment:
BTW, if we're talking about useless constants in the math module, it's hard to get more useless than `math.e`: it's rare for `e` to turn up in formulas except in the form `e**<something>`, and the latter case is better catered for by the more accurate (and usually faster) expression `exp(<something>`. I'd even go so far as to call `math.e` *worse* than useless, since its presence leads people astray by encouraging them to write `math.e**x` instead of `exp(x)`.
To give just one example, on my machine, the result of `exp(500)` has an error of 0.42 ulps, while `math.e**500` gives an error of over 150 ulps.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12345>
_______________________________________
More information about the Python-bugs-list
mailing list