Eigenvalue and eigenvector solver

Eigenvalue and eigenvector solver - Messages

#1 Posted: 3/26/2021 2:49:32 PM
coeur_de_lion

coeur_de_lion

0 likes in 18 posts.

Group: User

Dear to all,
I found some topics in the forum, but I'm a little bit confused.
Someone could help me?
Thank
D
#2 Posted: 3/26/2021 3:17:47 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi. You can try maple or Maxima plugin. Or dot numerics plugin and your own code and check when each one it's better, like in the attached.

MEigen.sm (78 KiB) downloaded 91 time(s).
MEigen.pdf (154 KiB) downloaded 72 time(s).

Best regards.
2 users liked this post
sergio 3/26/2021 5:20:00 PM, coeur_de_lion 3/29/2021 4:35:00 PM
#3 Posted: 3/27/2021 9:30:03 AM
coeur_de_lion

coeur_de_lion

0 likes in 18 posts.

Group: User

Dear Razonar and Giraud,
thank you very much!!!
D
#4 Posted: 3/28/2021 11:40:53 AM
coeur_de_lion

coeur_de_lion

0 likes in 18 posts.

Group: User

Dear all,
I tried both version proposed, but with my matrix they don't work.
Where is the mistake?

Natural frequencies.sm (219 KiB) downloaded 53 time(s).

On the other hand I tried to use MAPLE, but I don't understand how to use it....

Thanks
D
#5 Posted: 3/28/2021 12:57:44 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote

Dear all,
I tried both version proposed, but with my matrix they don't work.
Where is the mistake?



Hi. You found with dot numerics eigenvalues and vectors, or at least something probably useful answer. About the code in MEigen, don't expect too much, with that few code lines.

From the book Numerical Recipes in C:

Clipboard07.jpg

and

Clipboard01.jpg

About the use of maple it returns eigenvalues into an structure, which could be complicated to get in SMath: Maple help

Finally, even the eigenvectors are very powerful theoretically given that you can get the Jordan Canonical Form with them and thus study any lineal system with it, from the numerical point of view it's better study the same system using singular value decomposition, which it's more stable and have procedures for know the error and stability of the answers.

Best regards.
Alvaro.
1 users liked this post
coeur_de_lion 3/29/2021 4:36:00 PM
#6 Posted: 3/29/2021 4:50:12 PM
coeur_de_lion

coeur_de_lion

0 likes in 18 posts.

Group: User

Dear Jean,
I apologize, but I'm not so expert and I don't understand too much.

1) I tried with the suggestion from Razonar: eigenvalue is ok, eigenvector seem yes, but the part below aren't solved and I the message is "Result is above max allowed positive number"

1.png

2) Also, with your file: eigenvalue is ok, eigenvector seem yes, but the calculation is "locked" and don't proceed over the point below:

2.png

and if wait the time running...

Thanks
Davide

#7 Posted: 3/29/2021 10:53:02 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote


1) I tried with the suggestion from Razonar: eigenvalue is ok, eigenvector seem yes, but the part below aren't solved and I the message is "Result is above max allowed positive number"



Hi. This version try to avoid the numerical issue. Notice that the eigenvalues (obtained with the SMath polyroots function, which can't be the better method) are different from those from dot numerics.

Although surprisingly I get a decomposition that does not differ from the expected one, that is norme (A * MM * diag (λ)) = 0, I would not rely too much on the twelve lines of code of my function to calculate something as unstable as eigenvalues and eigenvectors and I would put more hope in the dot numerics results.

Natural frequencies.sm (243 KiB) downloaded 80 time(s).
Natural frequencies.pdf (876 KiB) downloaded 83 time(s).

Best regards.
Alvaro.
1 users liked this post
coeur_de_lion 4/17/2021 6:30:00 PM
#8 Posted: 4/17/2021 6:31:17 PM
coeur_de_lion

coeur_de_lion

0 likes in 18 posts.

Group: User

Dear Jean and Razonar,
as first I apologize for my late answer.
Thank for the support
Bye
Davide
  • New Posts New Posts
  • No New Posts No New Posts