#19567: Using elements of universal cyclotomic field and symbolic ring silently
produces garbage
-------------------------------------------------+-------------------------
Reporter: switzel | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.10
Component: number fields | Resolution:
Keywords: cyclotomic field, symbolic | Merged in:
ring | Reviewers:
Authors: | Work issues:
Report Upstream: N/A | Commit:
Branch: | Stopgaps:
Dependencies: |
-------------------------------------------------+-------------------------
Comment (by nbruin):
It's an off-by-one error in loop bounds:
{{{
sage: 1+UCF.4
1 + E(4)
sage: (1+UCF.4)._symbolic_(SR)
I
}}}
The routine lives in `sage/rings/universal_cyclotomic_field.py` and the
range should be `range(k)` rather than `range(1,k)` there.
--
Ticket URL: <http://trac.sagemath.org/ticket/19567#comment:1>
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/d/optout.