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 <rep...@bugs.python.org>
<http://bugs.python.org/issue12345>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to