#4820: Type inconsistency in rational points on elliptic curves
---------------------------+------------------------------------------------
Reporter: cremona | Owner: was
Type: defect | Status: new
Priority: minor | Milestone: sage-3.4
Component: number theory | Keywords: elliptic curves
---------------------------+------------------------------------------------
Points on elliptic curves over Q which are not [0:1:0] have their last
coordinate =1 but sometimes this is an int (not even an Integer) which
breaks some code:
{{{
sage: E=EllipticCurve('37a1')
sage: [type(c) for c in E(0)]
[<type 'sage.rings.rational.Rational'>,
<type 'sage.rings.rational.Rational'>,
<type 'sage.rings.rational.Rational'>]
sage: [type(c) for c in E.gen(0)]
[<type 'sage.rings.rational.Rational'>,
<type 'sage.rings.rational.Rational'>,
<type 'sage.rings.rational.Rational'>]
sage: [type(c) for c in 2*E.gen(0)]
[<type 'sage.rings.rational.Rational'>,
<type 'sage.rings.rational.Rational'>,
<type 'int'>]
}}}
I am tracking this down and will post a patch soon.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4820>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---