[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug on solve symbolic package?

From: bliss
Subject: bug on solve symbolic package?
Date: Tue, 21 Jan 2020 03:38:29 -0600 (CST)

Hi all.

I'm trying to solve a simple fourth order symbolic polynomial equation
x^4+2x^3+3=0 with /solve/. Oddly, I'm only getting back two roots (one
complex and its conjugate), while missing another two.

>> pkg load symbolic
>> syms x
>> ps=x^4+2*x^3+3;
>> d=double(solve(ps==0,x))
d =

  -1.6050 - 0.4949i
  -1.6050 + 0.4949i

Whereas using roots to obtain the roots of the polynomial gives (as
expected) four solutions:

>> p=[1 2 0 0 3];
>>v= roots(p)
v =

  -1.60504 + 0.49486i
  -1.60504 - 0.49486i
   0.60504 + 0.83508i
   0.60504 - 0.83508i

What am I missing? I've search and found no report of similar problems...

Sent from:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]