#5739: changed from zeta(CDF(1)) go boom! + zeta of 1 return value be consistent
in different rings
----------------------------------------------------+-----------------------
Reporter: was | Owner: fredrik
Type: defect | Status: needs_review
Priority: major | Milestone: sage-4.5.2
Component: number theory | Keywords:
Author: Mike Hansen | Upstream: N/A
Reviewer: Karl-Dieter Crisman, Robert Bradshaw | Merged:
Work_issues: |
----------------------------------------------------+-----------------------
Changes (by robertwb):
* status: needs_work => needs_review
Comment:
It's really sad we still have this trivial-to-fix hard crash after over a
year!
I've attached a patch that fixes the behavior of CDF(1).zeta() and
CC(1).zeta(). It leaves the real fields alone, which I think is fine
'cause they have reasonable representations of (an) infinity, and we
usually try to return something of the same type. (IN the complex case,
infinity is a lot messier without a lot of special casing that's beyond
the scope of this ticket...)
{{{
sage: RR(1).zeta(), RDF(1).zeta(), CC(1).zeta(), CDF(1).zeta()
(+infinity, +infinity, Infinity, Infinity)
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5739#comment:13>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.