On 1 December 2012 19:29, Eviatar <eviatarb...@gmail.com> wrote: > Hmm, I think I agree. > > Why does leading_coefficient() behave backwards anyway? >
Here's a plausible guess: think of polynomials which are determined by a list of coefficients in which te i'th element of the list, starting at 0, gives the coefficient of x^i. Then the leading coefficient will be the last nonzero entry while the trailing coefficient will be the first. This makes it hard to see why projective coordinates are normalised the way they are: sage: v = vector([2,3,5]) sage: v.normalize() (1, 3/2, 5/2) sage: ProjectiveSpace(QQ,2)(list(v)) (2/5 : 3/5 : 1) but that was probably a very early design decision based on compatibility with Magma. 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.