[issue42886] math.log and math.log10 domain error on very large Fractions
Guido van Rossum
report at bugs.python.org
Sun Jan 10 22:33:35 EST 2021
Guido van Rossum <guido at python.org> added the comment:
The problem with that formulation of the feature request is that it would require the math.log function to recognize rationals, or at least the Fraction type. Since the numeric tower and the fractions module are implemented in pure Python that would be somewhat problematic.
I think people who work a lot with fractions and want to compute their logarithm just need to use the formula that the OP gave.
----------
resolution: -> wont fix
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42886>
_______________________________________
More information about the Python-bugs-list
mailing list