#7276: Fix PPC issues in totallyreal_rel.py
-----------------------------+----------------------------------------------
Reporter: kcrisman | Owner: davidloeffler
Type: defect | Status: needs_work
Priority: blocker | Milestone: sage-4.2.1
Component: number fields | Keywords: PPC, powerpc, lattice
Work_issues: | Author:
Reviewer: | Merged:
-----------------------------+----------------------------------------------
Changes (by kcrisman):
* status: needs_review => needs_work
Comment:
You're gonna love this... on Intel Mac 10.5:
{{{
number_field/totallyreal_rel.py", line 76:
sage: sorted(v)
Expected:
[-1/2*a + 2, 1/4*a^2 + 1/2*a, 0, 1, 2, 3, 4, -1/4*a^2 - 1/2*a + 5,
1/2*a + 3, -1/4*a^2 + 5]
Got:
[-1/2*a + 2, 1/4*a^2 + 1/2*a, 0, 1, 2, 3, 4, 5, -1/4*a^2 - 1/2*a + 5,
1/2*a + 3, -1/4*a^2 + 5]
}}}
This is from the cubic field example.
Also, probably it would be good to directly confirm that the original
bugbear is fixed, at the end of the first doctest:
{{{
sage: C = [[0-eps,5+eps],[0-eps,5+eps]]
sage: v =
sage.rings.number_field.totallyreal_rel.integral_elements_in_box(K, C)
sage: sorted(v) [-alpha + 2, -alpha + 3, 0, 1, 2, 3, 4, 5, alpha + 2,
alpha + 3]
}}}
The documentation clarifies things a lot, so +1 on that!
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7276#comment:8>
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
-~----------~----~----~----~------~----~------~--~---