[sage-support] Re: Converting a Singular list to a Sage list

2011-06-05 Thread Simon King
Hi Francisco, On 5 Jun., 08:26, Simon King wrote: > Anyway, IMHO it *should* work to do > sage: P*[p.sage_poly(P) for p in I]  # not implemented My fault: Singular has an optional parameter, determining whether a short or a long polynomial representation is used. So, I should have done: sage: s

[sage-support] Re: Incorrect degree on polynomial after ring change

2011-06-05 Thread Simon King
Hi Jeff, On 6 Jun., 04:33, Jeff Stroomer wrote: >     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 f

[sage-support] Incorrect degree on polynomial after ring change

2011-06-05 Thread Jeff Stroomer
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], [

[sage-support] Re: Problem extracting matrix from term order

2011-06-05 Thread Jeff Stroomer
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 wrote: > I installed sage 4.7 a moment ago, and am running into a problem

[sage-support] Problem extracting matrix from term order

2011-06-05 Thread Jeff Stroomer
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,