MATLAB Solving Polynomial Eigenvalue Problem

Click For Summary
The discussion revolves around solving the polynomial eigenvalue problem represented by the equation M λ² + Φ λ + K, with specific matrices provided for M, Φ, and K. The user is verifying the eigenvalue output but encounters an unexpected result with a non-zero imaginary component. A suggestion is made that the arguments for the polyeig function may be in the wrong order, which could be causing the issue. The user acknowledges the feedback and expresses gratitude. The conversation highlights the importance of correctly ordering function arguments in numerical computations.
member 428835
Hi PF!

I'm trying to solve the polynomial eigenvalue problem ##M \lambda^2 + \Phi \lambda + K## such that
Code:
K = [5.92 -.9837;-0.3381 109.94];
I*[14.3 24.04;24.04 40.4];
M = [1 0;0 1];
[f lambda cond] = polyeig(M,Phi,K)
I verify the output of the first eigenvalue via
Code:
(M*lambda(1)^2 + Phi*lambda(1) + K)*f(:,1)
and the output has zero real component but non-zero imaginary: ##[44i,88i]##. Any ideas what's happening? Condition number is 5, which is evidently sufficiently low to output accurate answers?
 
Physics news on Phys.org
I think you are giving polyeig the arguments in the wrong order.

Jason
 
  • Like
Likes member 428835
jasonRF said:
I think you are giving polyeig the arguments in the wrong order.

Jason
Thanks!
:doh:
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
11
Views
6K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
13
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K