Opened 8 years ago
Closed 7 years ago
#15118 closed defect (fixed)
ZeroDivisionError in MPF_pow not propagated in Cython mpmath
Reported by: | eviatarbach | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | sage-5.12 |
Component: | numerical | Keywords: | |
Cc: | fredrik.johansson | Merged in: | sage-5.12.rc0 |
Authors: | Eviatar Bach | Reviewers: | Burcin Erocal |
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
Currently, the following occurs:
sage: import mpmath sage: mpmath.mpf(0)^(-2) Exception ZeroDivisionError: ZeroDivisionError() in 'sage.libs.mpmath.ext_impl.MPF_pow' ignored mpf('0.0')
This also causes problems in other functions (this should be a singularity of the function):
sage: mpmath.zeta(2r,-4r) Exception ZeroDivisionError: ZeroDivisionError() in 'sage.libs.mpmath.ext_impl.MPF_pow' ignored mpf('3.0685451779593373')
This is because the MPF_pow
Cython function does not declare an exception value.
Attachments (1)
Change History (5)
Changed 8 years ago by
comment:1 Changed 8 years ago by
- Status changed from new to needs_review
comment:2 Changed 8 years ago by
comment:3 Changed 7 years ago by
- Reviewers set to Burcin Erocal
- Status changed from needs_review to positive_review
Looks good to me.
comment:4 Changed 7 years ago by
- Merged in set to sage-5.12.rc0
- Resolution set to fixed
- Status changed from positive_review to closed
Note: See
TracTickets for help on using
tickets.
Patchbot apply trac15118.patch