This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | mark.dickinson |
|---|---|
| Recipients | Rhamphoryncus, christian.heimes, gmcastil, mark.dickinson, tim.peters |
| Date | 2008年01月21日.19:29:33 |
| SpamBayes Score | 0.016576124 |
| Marked as misclassified | No |
| Message-id | <1200943781.56.0.365314737021.issue1640@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
The problem with atanh is that it should be using absx throughout, rather than x.
So in "if (absx < 0.5)" branch and the following branch, replace all occurrences of x with
absx, and it should work.
One other comment: asinh shouldn't directly set errno for a NaN. It should do the same as
acosh and atanh: return x+x.
This makes asinh(float("nan")) return a nan, which makes it consistent with acosh and
atanh, consistent with the way that Linux and OS X behave, and consistent with the other
single-argument functions in math.
I think asinh should also return x+x for x an infinity. This again should make it
consistent with the way that the libm asinh works on OS X and Linux. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年01月21日 19:29:41 | mark.dickinson | set | spambayes_score: 0.0165761 -> 0.016576124 recipients: + mark.dickinson, tim.peters, Rhamphoryncus, christian.heimes, gmcastil |
| 2008年01月21日 19:29:41 | mark.dickinson | set | spambayes_score: 0.0165761 -> 0.0165761 messageid: <1200943781.56.0.365314737021.issue1640@psf.upfronthosting.co.za> |
| 2008年01月21日 19:29:33 | mark.dickinson | link | issue1640 messages |
| 2008年01月21日 19:29:33 | mark.dickinson | create | |