On Jan 15, 2008, at 9:39 AM, Nick Alexander wrote:

>
>> Perhaps something like
>>
>> P, Q = generic_points(2)
>> P+Q # this works (assuming we can do the fraction field arithmetic
>> efficiently enough)
>>
>> where P and Q are defined over the same ring large enough to make
>> them independent. (I'm not returning the new curve here because with
>> a variable number of points I think this would be more cumbersome,
>> but one can always do E.parent()).
>
> Do it like objgens():
>
> E, (P, Q) = generic_points(2)

That would work too, though I personally would probably ignore the  
returned curve most of the time, and don't find the above notation as  
intuitive.

- 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-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to