Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type inconsistency in rational points on elliptic curves #4820

Closed
JohnCremona opened this issue Dec 17, 2008 · 4 comments
Closed

Type inconsistency in rational points on elliptic curves #4820

JohnCremona opened this issue Dec 17, 2008 · 4 comments

Comments

@JohnCremona
Copy link
Member

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.

Component: number theory

Issue created by migration from https://trac.sagemath.org/ticket/4820

@JohnCremona
Copy link
Member Author

comment:1

Attachment: trac-4820.patch.gz

@ncalexan
Copy link
Mannequin

ncalexan mannequin commented Jan 21, 2009

comment:2

Looks fine by me. I checked that (0 : 1 : 0) over a non-standard ring had the correct types.

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Jan 23, 2009

comment:3

Merged in Sage 3.3.alpha1

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin assigned sagetrac-mabshoff and unassigned williamstein Jan 23, 2009
@sagetrac-mabshoff sagetrac-mabshoff mannequin modified the milestones: sage-3.4.1, sage-3.3 Jan 23, 2009
@sagetrac-mabshoff sagetrac-mabshoff mannequin assigned williamstein and unassigned sagetrac-mabshoff Jan 23, 2009
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Jan 23, 2009

comment:5

Merged in Sage 3.3.alpha1

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Jan 23, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants