Mark Dickinson <dicki...@gmail.com> added the comment:

> Exposing exp2 in the math library would be less interesting

I disagree: a libm exp2 is likely to be significantly accurate than pow(2.0, 
x). The latter is unlikely to be special-cased by the libm pow.

> The latter can call exp2() internally if it provides more accuracy than 
> exp(log(x)*y).

It would be a very poor pow implementation that used exp(log(x)*y).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31980>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to