Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#9415 closed defect (duplicate)

sorting points on elliptic curves over number fields silently fails

Reported by: rkirov Owned by: cremona
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: elliptic curves Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

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)]

Change History (2)

comment:1 Changed 10 years ago by rkirov

  • Resolution set to duplicate
  • Status changed from new to closed

culprit is in #10583

comment:2 Changed 10 years ago by mvngu

  • Milestone set to sage-duplicate/invalid/wontfix
Note: See TracTickets for help on using tickets.