On Tue, Apr 3, 2018 at 6:10 AM, Alex Thorne <a...@thorne.io> wrote:
> Hi all. I think I have found a bug in Sage, but have not reported bugs
> before and would appreciate confirmation that it's actually reproducible
> (and not something broken with my own setup) before I make a ticket on trac.
>
> When finding roots of a polynomial with coefficients in SR having only a
> single root up to multiplicity, the return value is of the form
> [value, multiplicity]
> instead of the expected
> [(value, multiplicity)]
>
> Minimal working example:
> sage: Rq.<u> = QQ[]
> sage: Rs.<v> = SR[]
> sage: poly_rat = ((u-1)^2)
> sage: poly_sym = ((v-1)^2)
> sage: poly_rat.roots()
> [(1, 2)]
> sage: poly_sym.roots()
> [1, 2]
> sage: version()
> 'SageMath version 8.1, Release Date: 2017-12-07'
>

In SageMath version 7.6, the outputs are both of the form [(value,
multiplicity)].


> --
> 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 https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to