Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I think I wrote this function, and exactly for the reasons you are asking I allowed for two alternataives foms of output, controlled by the parameter "all" which defaults to False. For the documentation, as usual do this: {{{ sage: E = EllipticCurve([0,0,0,0,1]) sage: E.lift_x? }}}

I would use the default in situations where you know that x is a valid x-coordinate, otherwise use all=True, for example: {{{ sage: [E.lift_x(x,all=True) for x in [-5..5]] [[], [], [], [], [(-1 : 0 : 1)], [(0 : 1 : 1), (0 : -1 : 1)], [], [(2 : 3 : 1), (2 : -3 : 1)], [], [], []] }}}