> Jason Bandlow has been working on this - see his patches (on top of > David Roe's) at #2291. I don't know in which state that code is, but > it would be nice if somebody could play with it so we can shake out > the bugs and merge this once it is ready. There is certainly demand > for this feature ;)
I applied all five patches to sage-2.10.4. R.<x,y> = LaurentPolynomialRing(QQ,2); R This works and is what I need immediately. Not everything works for me and I have some comments on the documentation. > 1. LaurentPolynomialRing(base_ring, name, sparse=False): > sage: PolynomialRing(QQ, 'w') > Univariate Laurent Polynomial Ring in w over Rational Field Should the second line read LaurentPolynomialRing ? > INPUT: > base_ring -- a commutative ring > name -- a string > names -- a list or tuple of names, or a comma separated string > n -- a positive integer Perhaps it should be stated explicitly somewhere that n is the number of generators. > Use the diamond brackets notation to make the variable > ready for use after you define the ring: > sage: R.<w> = LaurentPolynomialRing(QQ) > sage: (1 + w)^3 > w^3 + 3*w^2 + 3*w + 1 This doesn't work for me. I get: sage: R.<w> = LaurentPolynomialRing(QQ) [snip] 261 break 262 R = _single_variate_poly(base_ring, name, sparse) --> 263 RR = _multi_variate_poly(base_ring, (name, prepend_string + name), 2, False, 'degrevlex') 264 P = LaurentPolynomialRing_generic(base_ring, 1, R, RR, prepend_string, (name,)) 265 _save_in_cache(key, P) <type 'exceptions.TypeError'>: cannot concatenate 'str' and 'tuple' objects I realize that I'm commenting on work in progress (that is immediately useful to me). I won't list more failures like this since they're turned up by sage -t laurent_polynomial_ring.py. Thanks, Dan --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---