Hi everyone,

I just noticed that the default basis ring for ambient space has been
changed to cyclotomic field. I don't know the reason behind that but
it doesn't seem handy !

In my case, I use the elements of the ambient space to index another
combinatorial free module and it is a pain that their basis ring
elements are not number.

Here is an example:

sage: R = RootSystem("A3")
sage: A3 = R.ambient_space()
sage: key = A3.an_element()
sage: key
(2, 2, 3, 0)
sage: key[0]
2
sage: type(key[0])
<class 
'sage.rings.universal_cyclotomic_field.universal_cyclotomic_field.UniversalCyclotomicField_with_category.element_class'>
sage: xrange(key[0])
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

/home/pons/sage-5.0.rc0/devel/sage-combinat/<ipython console> in <module>()

TypeError: an integer is required

This type of thing just broke my entire patch on multivariate
polynomials. I had to fix it by changing the field to ZZ or QQ but I
wonder why the default field has been changed...


Cheers

Viviane

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to