Skip to main content
5-Regular Member
October 7, 2013
Question

Matrix Power Method - Subscript (n-1) into programing

  • October 7, 2013
  • 1 reply
  • 2132 views

Hello,

I am having issues in getting a subscript of n-1 to work in the programing of a matrix power method. Primarily, I'm wanting to express a function of just one number or variable (say n). By doing this, I want to take the norm of v(n) divided by the norm of v(n-1), with the output being that division. However, I'm uncertain in how to get the proper labeling of subscripts to get my output I'm wanting.

1 reply

25-Diamond I
October 7, 2013

I am not sure what you are searching for. Are you after something like this?

07.10.png

Or are you trying to create vectors (which ones)?

BTW, your function r() could be written that way, too

07.10.png

Please state which version of Prime you are using. PTC in its wisdom has decided that Prime 2 and Prime 3 files have the same extensions but the formats are incompatible. P2 would not be able to read P3 files and P3 is not able to write in P2 format. So if you still use Prime 2 its very likely you get an answer file in P3 format your version cannot read.

jroth5-Regular MemberAuthor
5-Regular Member
October 9, 2013

I solved it. I went the route you were mentioning and used the function twice with a step lower. I was hoping for a logic in the summation itself, but that neatly ties it up.

25-Diamond I
October 9, 2013

Still not sure what you tried to find, but glad you found a solution.