On Nov 5, 2009, at 1:09 PM, David Holmes wrote:

>
> Hi,
>
> I am trying to write a subclass of the class of hypereliptic curves
> over QQ, for example:
>
> class test
> (sage
> .schemes
> .hyperelliptic_curves
> .hyperelliptic_rational_field.HyperellipticCurve_rational_field):
>    def __init__(self,C):
>        self.C = C
>
>
> then in sage I type
>
> R.<x> = QQ[]
> H = HyperellipticCurve(x^9+1)
> test(H)
>
> the last lline gives a long string of error traceback

It would help if we understood exactly what you are trying to do. Are  
you trying to extend the class or wrap it? (The code above is doing  
both, though because HyperellipticCurve_rational_field.__init__ is not  
getting called with the initalizing data, everything you try to do  
with it (even printing it out) is likely to break.)

- Robert


--~--~---------~--~----~------------~-------~--~----~
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-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to