Reply to topic

How to compute the roots of complex polynimials with eigen?

Registered Member
Hi all

I am a newer in eigen, I find it very easy to compute the roots of real polynomials. But I have no idea of complex polynomials.
I want to know is it possible to compute the roots of complex polynomials with eigen? and how?
Thanks for your help!

----------------------Code begin--------------------------------
Vector3d poly(-1, 0, 1);
PolynomialSolver<double, 2> PolySolve(poly);
Vector2cd VecRoots(2);
VecRoots = PolySolve.roots();
----------------------Code end--------------------------------

Reply to topic


Who is online

Registered users: apater, areid, Baidu [Spider], Bing [Bot], braystacey, edmael, einar, Exabot [Bot], garthecho, Google [Bot], google01103, ivan, jensreuterberg, joaob, jpwhiting, jstaniek, La Ninje, lazyit, Majestic-12 [Bot], mmistretta, MSN [Bot], pedrorodriguez, salvochea, scottpetrovic, scummos, SeaJey, SecretCode, slangkamp, slawekk, Sogou [Bot], SysGhost, TheraHedwig, tienhung, Tioz, VP1986, Yahoo [Bot], šumski