Re: [sympy] Re: Help: simple univariate polynomial, sympy solve gives no results

2016-01-20 Thread Denis Akhiyarov
Oscar, you need to click on "more roots" in wolfram alpha to see the algebraic solution, which is definitely confusing. On Wednesday, January 20, 2016 at 3:55:37 AM UTC-6, Oscar wrote: > > On 20 January 2016 at 05:46, Denis Akhiyarov > wrote: > > On Tuesday, January 19,

Re: [sympy] Re: Help: simple univariate polynomial, sympy solve gives no results

2016-01-20 Thread Oscar Benjamin
On 20 January 2016 at 15:05, Denis Akhiyarov wrote: > > Oscar, you need to click on "more roots" in wolfram alpha to see the > algebraic solution, which is definitely confusing. Unless I'm misreading all of the additional roots are for the case where A=0. IOW Wolfram

Re: [sympy] Re: Help: simple univariate polynomial, sympy solve gives no results

2016-01-20 Thread Oscar Benjamin
On 20 January 2016 at 15:11, Aaron Meurer wrote: > SymPy has algorithms to find roots of quintics in radicals (when they > exist). I don't recall if the algorithms work for symbolic inputs. > > One can take a general quintic (x**5 + a*x**4 + b*x**3 + c*x**2 + d*x + e) > and

Re: [sympy] Re: Help: simple univariate polynomial, sympy solve gives no results

2016-01-20 Thread Aaron Meurer
On Wed, Jan 20, 2016 at 10:30 AM, Oscar Benjamin wrote: > On 20 January 2016 at 15:11, Aaron Meurer wrote: > > SymPy has algorithms to find roots of quintics in radicals (when they > > exist). I don't recall if the algorithms work for symbolic

Re: [sympy] Re: Help: simple univariate polynomial, sympy solve gives no results

2016-01-20 Thread Aaron Meurer
SymPy has algorithms to find roots of quintics in radicals (when they exist). I don't recall if the algorithms work for symbolic inputs. One can take a general quintic (x**5 + a*x**4 + b*x**3 + c*x**2 + d*x + e) and shift it by y (replace x with x - y). Then expand and collect terms in x. The

Re: [sympy] Re: Help: simple univariate polynomial, sympy solve gives no results

2016-01-20 Thread Denis Akhiyarov
I missed A=0 on wolfram, sorry for confusion On Wed, Jan 20, 2016, 9:38 AM Aaron Meurer wrote: > On Wed, Jan 20, 2016 at 10:30 AM, Oscar Benjamin < > oscar.j.benja...@gmail.com> wrote: > >> On 20 January 2016 at 15:11, Aaron Meurer wrote: >> > SymPy has

Re: [sympy] Re: Help: simple univariate polynomial, sympy solve gives no results

2016-01-20 Thread Aaron Meurer
WolframAlpha is solving for all five variables at once. The roots in radicals that it gives are when A = 0 (in which case, you have a quartic, which are solvable in radicals). Aaron Meurer On Wed, Jan 20, 2016 at 10:05 AM, Denis Akhiyarov wrote: > Oscar, you need to

[sympy] Re: Help: simple univariate polynomial, sympy solve gives no results

2016-01-20 Thread Kalevi Suominen
On Wednesday, January 20, 2016 at 4:37:18 AM UTC+2, Junwei Huang wrote: > > Hello, I am new to sympy and try to solve the following equation > > import sympy as sy > A,B,C,D,x=sy.var('A,B,C,D,x',positive=True) > sy.solve(A*x**5+B*x**4+C*x-D,x) > > but got no result. There are no roots, or I used

Re: [sympy] Re: Help: simple univariate polynomial, sympy solve gives no results

2016-01-20 Thread Oscar Benjamin
On 20 January 2016 at 05:46, Denis Akhiyarov wrote: > On Tuesday, January 19, 2016 at 11:41:47 PM UTC-6, Denis Akhiyarov wrote: >> >> no algebraic roots according to this theorem: >> https://en.wikipedia.org/wiki/Abel%E2%80%93Ruffini_theorem The theorem only shows that

[sympy] Re: Help: simple univariate polynomial, sympy solve gives no results

2016-01-19 Thread Denis Akhiyarov
no algebraic roots according to this theorem: https://en.wikipedia.org/wiki/Abel%E2%80%93Ruffini_theorem On Tuesday, January 19, 2016 at 8:37:18 PM UTC-6, Junwei Huang wrote: > > Hello, I am new to sympy and try to solve the following equation > > import sympy as sy >

[sympy] Re: Help: simple univariate polynomial, sympy solve gives no results

2016-01-19 Thread Denis Akhiyarov
actually this case looks like has some special properties and hence has some roots according to Wolfram: http://www.wolframalpha.com/input/?i=A*x%5E5%2BB*x%5E4%2BC*x-D%3D0 On Tuesday, January 19, 2016 at 11:41:47 PM UTC-6, Denis Akhiyarov wrote: > > no algebraic roots according to this theorem: