Sage folks,

I'm running into an error when I convert a polynomial from one ring to
another.  Here's an example.

    R = PolynomialRing(GF(101), names = 'x, y')
    x, y = R.gens()
    g = x**5 - x*y**6
    print g.degree()

    M = Matrix([
      [ 1,  0,  0,  0],
      [ 0,  1,  1,  1],
      [ 0,  0,  1,  0],
      [ 0,  0,  0,  1],
    ])
    Rt = PolynomialRing(GF(101), order = TermOrder(M), names = 'e, t,
x, y')
    print Rt(g).degree()

The first print reports that the degree of g is 7, which is correct,
but the second reports the degree is 0.

I've seen this in sage-4.6.2, and in sage-4.7.  If it makes a
difference, I've applied patch trac_11316 to each.

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