[sage-devel] Re: Checking new code with an entire database (isogenies)

2009-09-22 Thread J. Cooley
Hi Tim, Thanks for the response, > You'll probably want to use an iterator instead. It should be much > less memory-intensive. Additionally, ``xrange``s are especially > optimized for iteration. > > database = CremonaDatabase().iter(xrange(1, 130001)) Yes, the code I wrote took a really long ti

[sage-devel] Re: Checking new code with an entire database (isogenies)

2009-09-17 Thread J. Cooley
Hi William, Thank you for all the information. I have spent time this morning going through it all, the alarm thing is really useful ~ I also discovered Ctl-C, which seems to be quite handy! (I am REALLY new to this! John had shown me, but I forgot.) >   * check out the @parallel decorator  (not

[sage-devel] Checking new code with an entire database (isogenies)

2009-09-16 Thread J. Cooley
Hi, I've written with my supervisor some code that computes the isogeny class of a curve over QQ. I would like to check it with the entire Cremona database overnight, but I'm not sure how to do that! To do it case by case I would do something like: sage: isogs, matrix = E.isogeny_class() sage:

[sage-devel] j_invariants of different types for different fields

2009-09-10 Thread J. Cooley
Hi I'm trying to write some code involving isogenies that will work over different types of fields (at least rational and finite and hopefully number fields too.) Part of the code includes the line: fp.numerator()-j*fp.denominator() where fp is a polynomial in t over Qt = FractionField(Polynomia

[sage-devel] Re: EllipticCurveIsogeny: problems with entering a kernel polynomial to "E.isogeny(kernel)

2009-09-09 Thread J. Cooley
Problem resolved! Cheers, Jenny --~--~-~--~~~---~--~~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.go

[sage-devel] Re: EllipticCurveIsogeny: problems with entering a kernel polynomial to "E.isogeny(kernel)

2009-09-09 Thread J. Cooley
Hi, Here is an example: sage: Qt = Frac(PolynomialRing(QQ,'t')) sage: t = Qt.gen() sage: R = PolynomialRing(Qt,'X') sage: X = R.gen() sage: k2 = X^2 -732*X + 94752 sage: E = EllipticCurve('11a1') sage: E.isogeny(kernel=k2, model = "minimal") Result: horrible, horrible error! Thanks, Jenny --

[sage-devel] EllipticCurveIsogeny: problems with entering a kernel polynomial to "E.isogeny(kernel)

2009-09-08 Thread J. Cooley
I am new to developing Sage, so sorry if I am missing something minor. I am trying to use a polynomial in X as the kernel, with R = PolynomialRing(Qt,'X') X = R.gen() The error I'm getting is: TypeError: unsupported operand parent(s) for '+': 'Multivariate Polynomial Ring in x, y over Rational F

[sage-devel] Applying a patch to a clone

2009-08-26 Thread J. Cooley
I would like to apply the patches from ticket #6384 to the clone I'm using. I have not done this before and I want to make sure that I apply it to the clone and not the main. I'm not entirely sure how to do this. Also, this patch seems to rely upon another from ticket #6672, so do I need to add t