On Thu, 23 Oct 2014, Nathann Cohen wrote:

sage: gcd([5])
5
sage: gcd([5,7])
1

This is good argument to support (only) []-style argument for several elements. Be consistent within same program. Or in Sage terms, "Build a car, don't let it look like bicycle combined to tractor." :=)

Btw, why gcd([]) returns zero? At least there is inconsistency with lcm([]) returning one. I guess they should both return one or raise an exception.

--
Jori Mäntysalo

--
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