On Nov 11, 6:52 pm, Tom Boothby <tomas.boot...@gmail.com> wrote: > The empty matrix is NOT the Sylvester matrix of (0,0), (0,1) or (1,0). > > The degree of the zero polynomial is usually taken to be -infinity, > though Sage uses -1 for some reason. In either case, the Sylvester > matrix needs to have negative dimensions. > > That is to say, return a ValueError in these cases.
Yeah, that is my opinion too. However I disagree a little here about the degree of zero polynomial. I would expect SylvesterMatrix(x^2, 0) To be [0 0] [0 0] rather than a ValueError ( If I take the degree of zero to be - Infinity) or [0] (If I take the degree of zero to be -1) -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org