If pi is a permutation, e.g. defined by pi=permutations(4)[3], then
pi.signature() returns what I have always called the "sign" of pi, and
none of pi.sign(), pi.sgn(), sign(pi), sgn(pi) work.

Is there a good reason for not having, at least, the alias   pi.sign =
pi.signature?

I cannot remember often having heard people talk of a permutations's
signature (let alone its parity, pace wikipedia) but I am prepared to
be over-ruled by an expert in combinatorics.  However I still think
that the abbreviation "sign" would be reasonable to have too.

Perhaps number-theorists are just lazy:

sage: a = QuadraticField(101).gen()
sage: a.minimal_polynomial() # fails
sage: a.minimum_polynomial()  # fails
sage: a.minpoly()
x^2 - 101

John

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.


Reply via email to