Skip to content

Commit

Permalink
Polynomial eigenvalue problem solution in double precision
Browse files Browse the repository at this point in the history
  • Loading branch information
dutykh authored Feb 20, 2024
1 parent ad6dd3a commit 1085908
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions findeigsdp.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
% The double precision version

clear
close all
format longG

M0 = readmatrix('data/M0_200.mat', 'FileType', 'text');
M1 = readmatrix('data/M1_200.mat', 'FileType', 'text');
M2 = readmatrix('data/M2_200.mat', 'FileType', 'text');

e = polyeig(M0, 1i*M1, M2);

figure(1);
plot(real(e), imag(e), 'bx'), grid off, hold off
xlabel('$\mathrm{Re}\Omega$', 'interpreter', 'LaTeX', 'fontsize', 14);
ylabel('$\mathrm{Im}\Omega$', 'interpreter', 'LaTeX', 'fontsize', 14);
axis([-6 6 -5 1]);
title('Worm hole QNMs');
set(gcf, 'color', 'w');

0 comments on commit 1085908

Please sign in to comment.