Everyone,

Many apologies, false alarm.  This problem does indeed exist in Sage
4.7, but is fixed by patch trac_11316.  I assumed this patch was part
of 4.7, but apparently it's not.

Jeff


On Jun 5, 12:25 pm, Jeff Stroomer <jstroom...@hotmail.com> wrote:
> I installed sage 4.7 a moment ago, and am running into a problem with
> term orders defined using matrices.  The following works correctly:
>
>     T = TermOrder(identity_matrix(2))
>     R = PolynomialRing(GF(101), names = 'x, y', order = T)
>     print R.term_order().matrix()
>
> But if I negate the matrix, I run into a problem:
>
>     T = TermOrder(-identity_matrix(2))
>     R = PolynomialRing(GF(101), names = 'x, y', order = T)
>     print R.term_order().matrix()
>
>     Traceback (most recent call last):
>       File "yyy.py", line 6, in <module>
>         print R.term_order().matrix()
>       File "/Applications/sage/local/lib/python2.6/site-packages/sage/
> rings/polynomial/term_order.py", line 1160, in matrix
>         return matrix(self.__matrix)
>       File "/Applications/sage/local/lib/python2.6/site-packages/sage/
> matrix/constructor.py", line 650, in matrix
>         raise ValueError, "Invalid matrix constructor.  Type matrix?
> for help"
>     ValueError: Invalid matrix constructor.  Type matrix? for help
>
> Thanks for the help,
>
> Jeff Stroomer

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to