Reply to topic

How to compute the roots of complex polynimials with eigen?

pengjie
Registered Member
Posts
1
Karma
0
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

Bookmarks



Who is online

Registered users: Alexa [Bot], Artmessiah, Baidu [Spider], barrypicker, Bing [Bot], eagleton, Exabot [Bot], garthecho, ggael, ghevan, Google [Bot], google01103, Hans, jsirek, ken300, koriun, Majestic-12 [Bot], mcaceres, mutlu, nezumi, pinguin74, private_lock, samuelig, scummos, Tepee, TheraHedwig, tparrott, Yahoo [Bot], zabastodwa