#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_work
Priority: major | Milestone: sage-4.5
Component: number theory | Keywords:
Author: Mike Hansen | Upstream: N/A
Reviewer: Karl-Dieter Crisman, Robert Bradshaw | Merged:
Work_issues: |
----------------------------------------------------+-----------------------
Changes (by davidloeffler):
* status: needs_review => needs_work
Comment:
Patch applies cleanly to 4.5.alpha1 and builds fine, but some doctests
fail:
{{{
sage -t sage/rings/real_mpfr.pyx
**********************************************************************
File "/storage/masiao/sage-4.5.alpha1/devel/sage-
reviewing/sage/rings/real_mpfr.pyx", line 4487:
sage: R(1).zeta()
Expected:
Infinity
Got:
+infinity
**********************************************************************
1 items had failures:
1 of 12 in __main__.example_149
***Test Failed*** 1 failures.
For whitespace errors, see the file
/home/masiao/.sage//tmp/.doctest_real_mpfr.py
[10.2 s]
**********************************************************************
File "/storage/masiao/sage-4.5.alpha1/devel/sage-
reviewing/sage/rings/complex_number.pyx", line 2093:
sage: zeta(1)
Expected:
Infinity
Got:
zeta(1)
**********************************************************************
1 items had failures:
1 of 8 in __main__.example_72
***Test Failed*** 1 failures.
For whitespace errors, see the file
/home/masiao/.sage//tmp/.doctest_complex_number.py
[8.6 s]
}}}
Moreover, it doesn't seem to live up to the promise in the title of making
the return value of zeta(1) consistent:
{{{
sage: zeta(RR(1))
+infinity
sage: zeta(RDF(1))
Infinity
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5739#comment:11>
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.