#15118: ZeroDivisionError in MPF_pow not propagated in Cython mpmath
---------------------------+-----------------------------
   Reporter:  eviatarbach  |            Owner:
       Type:  defect       |           Status:  new
   Priority:  major        |        Milestone:  sage-5.12
  Component:  numerical    |         Keywords:
  Merged in:               |          Authors:
  Reviewers:               |  Report Upstream:  N/A
Work issues:               |           Branch:
     Commit:               |     Dependencies:
   Stopgaps:               |
---------------------------+-----------------------------
 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.

--
Ticket URL: <http://trac.sagemath.org/ticket/15118>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to