On 2014-12-06 05:39, kcrisman wrote:
I think in this case because

 > Write the integer n as a sum of two integer squares if possible;

and it doesn't give a full list of *all* ways to do so, the ValueError
is appropriate.  But if it returned a list of all such squares (warning:
don't try this at home), then an empty list would make sense.  Does that
seem like a reasonable argument?
Absolutely, consider the following analogy:

sage: GF(5)(3).sqrt(extend=False)
[...]
ValueError: self must be a square

sage: GF(5)(3).sqrt(extend=False, all=True)
[]

--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to