Indexing in for loop

Indexing in for loop - Messaggi

#1 Pubblicato: 16/08/2023 11:24:25
Oichi

Oichi

4 apprezzamenti in 35 post.

Gruppo: User

Hello Smath community, I have a problem that I can't fix. In this worksheet I want to create a matrix "R" that contains the roots of a polynomial for different values of the parameter "w". I created a for loop that should be able to do this but I dont know how to index inside the for loop for different columns of "R" (Each column should be the roots for each value of the parameter).eigen.sm (10,76 KiB) scaricato 1423 volta(e).
#2 Pubblicato: 16/08/2023 17:30:53
Oscar Campo

Oscar Campo

135 apprezzamenti in 309 post.

Gruppo: Moderator

Hi,
Here a solution:
Captura.PNG

I must modifiy your file for show the solutions on each column of matrix R.
Please check yourself the math:

eigen~modified.sm (16,42 KiB) scaricato 1470 volta(e).
#3 Pubblicato: 17/08/2023 10:36:38
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Companion matrix associated with Eigen code.

Maths eigenAll Companion.sm (63,72 KiB) scaricato 1487 volta(e).
#4 Pubblicato: 18/08/2023 10:25:53
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

Please check yourself the math:


Polynomials explorer added.
Originator ... Please confirm your project works.
Cheers ... Jean.

eigen_modified.sm (39,67 KiB) scaricato 1434 volta(e).

#5 Pubblicato: 06/10/2023 11:06:19
Oichi

Oichi

4 apprezzamenti in 35 post.

Gruppo: User

Thank you all for help !! and sorry for the late reply, yes your solutions are working ^^
  • Nuovi post
  • Nessun nuovo post