Re: [sage-devel] Re: AlgebraicReal.minpoly slow

2016-09-20 Thread Clemens Heuberger
Am 2016-09-20 um 20:22 schrieb Marc Mezzarobba: > Clemens Heuberger wrote: >> x = polygen(QQ) >> equation = -96000*x^7 + 41600*x^6 - 6640*x^5 + 560*x^4 >> - 28*x^3 + 8400*x^2 - 140*x + 1 roots = equation.roots(QQbar) >> a_root = roots[-1][0] >> abs_root = abs(a_root) > [...] >>

Re: [sage-devel] Re: AlgebraicReal.minpoly slow

2016-09-20 Thread Jonas Jermann
Hi Factoring first and then calculating the roots of the factors (you don't need the multiplicity of the factor) worked fast for me... Side note: In AA I noticed that most operations become much faster after a num.simplify(). But in this case the simplify operation is slow itself... Best

Re: [sage-devel] Re: AlgebraicReal.minpoly slow

2016-09-20 Thread Vincent Delecroix
Hi, This thread would better be on ask.sagemath.org or sage-support. 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.

[sage-devel] Re: AlgebraicReal.minpoly slow

2016-09-20 Thread Marc Mezzarobba
Clemens Heuberger wrote: > x = polygen(QQ) > equation = -96000*x^7 + 41600*x^6 - 6640*x^5 + 560*x^4 > - 28*x^3 + 8400*x^2 - 140*x + 1 roots = equation.roots(QQbar) > a_root = roots[-1][0] > abs_root = abs(a_root) [...] > Is this expected behaviour? Well, QQbar has a number of w