Dear all,

While rewriting part of sage.rings.arith I modified the behavior of
the binomial functions with respect to the output type (see #17852):

old version (sage-6.5):

sage: type(binomial(4/1, 2))
<type 'sage.rings.integer.Integer'>
sage: type(binomial(4, 2/1))
<type 'sage.rings.integer.Integer'>

new version (#17852):

sage:  type(binomial(4/1,2))
<type 'sage.rings.rational.Rational'>
sage: type(binomial(4,2/1))
<type 'sage.rings.rational.Rational'>

This is just an example and actually plenty of output types are now
correctly handled.

As a consequence of this, there is a failing doctest in
multi_polynomial_ideal in the function random_element! I figured that
the .basis() method of ideals does not return the same thing in both
versions. I am not familiar at all with that code (which is very dirty
by the way). So if somebody cares to debug, please have a look.
Otherwise, I just used a trivial fix that amounts to change the output
in a doctest. I am quite sure that something is broken and already
spent several hours trying to see what may have happened.

Best
Vincent

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to