#9415: sorting points on elliptic curves over number fields silently fails
-------------------------------+--------------------------------------------
Reporter: rkirov | Owner: cremona
Type: defect | Status: new
Priority: major | Milestone:
Component: elliptic curves | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-------------------------------+--------------------------------------------
Over QQ everything works fine:
{{{
sage: E = EllipticCurve([-1,0])
sage: L = [E(0,0),E(1,0)]
sage: L2 = [L[1],L[0]]
sage: print sorted(L)
[(0 : 0 : 1), (1 : 0 : 1)]
sage: print sorted(L2)
[(0 : 0 : 1), (1 : 0 : 1)]
}}}
But over number fields, sorting quietly returns the same list as input,
with no warnings.
{{{
sage: K2.<b> = NumberField(x^2+2)
sage: E2 = EllipticCurve(K2,[-16,16])
sage: L = [E2(4*b - 10 ,18*b + 28) , E2(4*b - 4 , 20 )]
sage: L2 = [L[1],L[0]]
sage: print sorted(L)
[(4*b - 10 : 18*b + 28 : 1), (4*b - 4 : 20 : 1)]
sage: print sorted(L2)
[(4*b - 4 : 20 : 1), (4*b - 10 : 18*b + 28 : 1)]
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9415>
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.