Indexing in for loop

Indexing in for loop - 消息

#1 已发布: 2023/8/16 11:24:25
Oichi

Oichi

4个赞,共35个帖子。

组: 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)已下载 1439 次。
#2 已发布: 2023/8/16 17:30:53
Oscar Campo

Oscar Campo

135个赞,共309个帖子。

组: 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)已下载 1485 次。
#3 已发布: 2023/8/17 10:36:38
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Companion matrix associated with Eigen code.

Maths eigenAll Companion.sm (63.72 KiB)已下载 1499 次。
#4 已发布: 2023/8/18 10:25:53
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Please check yourself the math:


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

eigen_modified.sm (39.67 KiB)已下载 1450 次。

#5 已发布: 2023/10/6 11:06:19
Oichi

Oichi

4个赞,共35个帖子。

组: User

Thank you all for help !! and sorry for the late reply, yes your solutions are working ^^
  • 有新帖
  • 无新帖