[issue1640] Enhancements for mathmodule

George Castillo report at bugs.python.org
Sun Jan 20 23:24:42 CET 2008


George Castillo added the comment:

Just a quick addition here regarding the singularities to these
functions.  The atanh(x) is only defined for |x| < 1, so atanh(1) or
atanh(-1) isn't singular there so much as simply isn't defined.  So,
even though the function approaches infinite as x -> 1, it wouldn't
really be correct to return a value at |x| = 1.  I think raising an
exception at those points would be more correct.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1640>
__________________________________


More information about the Python-bugs-list mailing list