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

Better plotting for elliptic curves #12766

Closed
roed314 opened this issue Mar 28, 2012 · 10 comments
Closed

Better plotting for elliptic curves #12766

roed314 opened this issue Mar 28, 2012 · 10 comments

Comments

@roed314
Copy link
Contributor

roed314 commented Mar 28, 2012

The plot for EllipticCurve('448c6') looks like a vertical line. The reason is that plot contains

    d = 4*x**3 + (a1**2 + 4*a2)*x**2 + (2*a3*a1 + 4*a4)*x + (a3**2 + 4*a6)
    r = d.roots(multiplicities=False)
    r.sort()
    if xmax is None:
        xmax = r[-1] + 2
    xmax = max(xmax, r[-1]+2)
    if xmin is None:
        xmin = r[0]  - 2
    xmin = min(xmin, r[0]-2)

When d has only one real root, this approach doesn't work that well. One suggestion would be to also require that the plot contains the flex points, which can be found from the 3-division polynomial.

CC: @williamstein @JohnCremona @kedlaya

Component: elliptic curves

Author: David Roe

Reviewer: Kiran Kedlaya

Merged: sage-5.0.beta14

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

@roed314

This comment has been minimized.

@roed314
Copy link
Contributor Author

roed314 commented Mar 28, 2012

Attachment: 12766.patch.gz

@roed314
Copy link
Contributor Author

roed314 commented Mar 28, 2012

Author: David Roe

@roed314
Copy link
Contributor Author

roed314 commented Mar 28, 2012

comment:2

Ready for review. You can find a worksheet for testing at http://sagenb.org/home/pub/4639. It's all using the old code, but you can see some of the problems. Compare with the new code by downloading your own copy and running locally. This would be nicer if we had branches on sagenb already....

@roed314
Copy link
Contributor Author

roed314 commented Mar 29, 2012

Attachment: 12766_2.patch.gz

@kedlaya
Copy link
Sponsor Contributor

kedlaya commented Mar 29, 2012

Reviewer: Kiran Kedlaya

@kedlaya
Copy link
Sponsor Contributor

kedlaya commented Mar 29, 2012

comment:4

Patchbot says all tests pass when applied against 5.0beta3, and looks good otherwise. Positive review.

@jdemeyer
Copy link

jdemeyer commented Apr 4, 2012

comment:5

I'm assuming both patches have to be applied...?

@roed314
Copy link
Contributor Author

roed314 commented Apr 4, 2012

comment:6

Correct.

@jdemeyer
Copy link

Merged: sage-5.0.beta14

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

4 participants