On Sat, Apr 18, 2015 at 7:44 PM, Volker Braun <vbraun.n...@gmail.com> wrote:

> x.cardinality().factor() should always work (unless it is inifinite).
>

Or zero. :) If we mention one pitfall, let's not forget about the other.

def add_two_numbers(x,y):
>     return x+y   # no need to convert explicitly to ZZ
>

Ah, because we can essentially assume that the inputs are already Sage
objects.

Hmm. This sounds like a lot of work is needed and speed might suffer... Any
second opinions?

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

Reply via email to